A PEP 518 build backend that uses setuptools_scm to generate a version file from your version control system, then flit to build the package.
Project description
flit_scm
A PEP 518 build backend that uses setuptools_scm
to generate a version file from your version control system, then flit_core
to build the package.
To use it, set the build-system
table in your pyproject.toml
to as follows:
[build-system]
requires = ["flit_scm"]
build-backend = "flit_scm:buildapi"
Flit and setuptools_scm
can be configured as normal (refer to their documentation). Example:
[build-system]
requires = ["flit_scm"]
build-backend = "flit_scm:buildapi"
[tool.flit.sdist]
exclude = [".gitignore"]
[tool.setuptools_scm]
write_to = "src/_version.py"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flit_scm-1.6.2.tar.gz
(2.4 kB
view hashes)