This is the monorepo for the setuptools-scm ecosystem, containing two main projects:
The main package that extracts Python package versions from Git or Mercurial metadata and provides setuptools integration.
Read setuptools-scm documentation →
Core VCS versioning functionality extracted as a standalone library that can be used independently of setuptools.
Read vcs-versioning documentation →
This workspace uses uv for dependency management.
# Install all packages with all dependency groups (tests, docs, etc.)
uv sync --all-packages --all-groups# Run all tests
uv run pytest -n12
# Run tests for setuptools-scm only
uv run pytest setuptools-scm/testing_scm -n12
# Run tests for vcs-versioning only
uv run pytest vcs-versioning/testing_vcs -n12Documentation is shared across projects:
uv run mkdocs serve- Documentation: https://setuptools-scm.readthedocs.io/
- Repository: https://github.com/pypa/setuptools-scm/
- Issues: https://github.com/pypa/setuptools-scm/issues
Both projects are distributed under the terms of the MIT license.