python-setuptools-scm
Port variant py311
Summary Package to manage versions by scm tags (3.11)
Package version 7.1.0
Homepage https://github.com/pypa/setuptools_scm/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 23 DEC 2022, 18:26:42 UTC
Port created 20 APR 2020, 15:00:59 UTC
Subpackage Descriptions
single setuptools_scm ============== setuptools_scm extracts Python package versions from git or hg metadata instead of declaring them as the version argument or in a SCM managed file. Additionally setuptools_scm provides setuptools with a list of files that are managed by the SCM (i.e. it automatically adds all of the SCM-managed files to the sdist). Unwanted files must be excluded by discarding them via ``MANIFEST.in``. setuptools_scm supports the following scm out of the box: * git * mercurial ``pyproject.toml`` usage ------------------------ The preferred way to configure setuptools_scm is to author settings in a ``tool.setuptools_scm section of pyproject.toml``. This feature requires Setuptools 42 or later, released in Nov, 2019. If your project needs to support build from sdist on older versions of Setuptools, you will need to also implement the ``setup.py usage`` for those legacy environments. First, ensure that setuptools_scm is present during the project's built step by specifying it as one of the build requirements. .. code:: toml # pyproject.toml [build-system] requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] That will be sufficient to require setuptools_scm for projects that support PEP 518 ([pip] and [pep517]). Many tools, especially those that invoke ``setup.py`` for any reason, may continue to rely on setup_requires. For maximum compatibility with those uses, consider also including a setup_requires directive (described below in ``setup.py usage and setup.cfg``). To enable version inference, you need to set the version dynamically in the project section of ``pyproject.toml``: .. code:: toml # pyproject.toml [project] # version = "0.0.1" # Remove any existing version parameter. dynamic = ["version"] Then add this section to your ``pyproject.toml``: .. code:: toml # pyproject.toml [tool.setuptools_scm] Including this section is comparable to supplying ``use_scm_version=True in setup.py``. Additionally, include arbitrary keyword arguments in that section to be supplied to ``get_version()``. For example: .. code:: toml # pyproject.toml [tool.setuptools_scm] write_to = "pkg/_version.py" Where pkg is the name of your package. If you need to confirm which version string is being generated or debug the configuration, you can install `setuptools-scm `_ directly in your working environment and run: .. code-block:: shell $ python -m setuptools_scm # To explore other options, try: $ python -m setuptools_scm --help ``setup.py`` usage (deprecated) ------------------------------- .. warning:: setup_requires has been deprecated in favor of ``pyproject.toml The following settings are considered legacy behavior and superseded by the pyproject.toml`` usage, but for maximal compatibility, projects may also supply the configuration in this older form. To use setuptools_scm just modify your project's ``setup.py`` file
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY311 ON Build using Python 3.11
Package Dependencies by Type
Build (only) python-pip:single:py311
autoselect-python:single:standard
Build and Runtime python311:single:standard
Runtime (only) python-packaging:single:py311
python-setuptools:single:py311
python-typing-extensions:single:py311
Download groups
main mirror://PYPIWHL/1d/66/8f42c941be949ef2b22fe905d850c794e7c170a526023612aad5f3a121ad
Distribution File Information
73988b6d848709e2af142aa48c986ea29592bbcfca5375678064708205253d8e 43829 setuptools_scm-7.1.0-py3-none-any.whl
Ports that require python-setuptools-scm:py311
python-borgbackup:py311 Deduplicated, encrypted, compressed backups (3.11)
python-cffsubr:py311 CFF subroutinizer based on AFDKO tx tool (3.11)
python-compreffor:py311 CFF subroutinizer for fontTools (3.11)
python-lazy-object-proxy:py311 Fast and thorough lazy object proxy (3.11)
python-psautohint:py311 Wrapper for Adobe's PostScript autohinter (3.11)
python-pyclipper:py311 Cython wrapper for the AJ Clipper library (3.11)
python-pyocr:py311 Wrapper for OCR engines (Tesseract, etc) (3.11)
python-skia-pathops:py311 Skia library bindings (3.11)