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.7.0.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file flit_scm-1.7.0.tar.gz
.
File metadata
- Download URL: flit_scm-1.7.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 961bd6fb24f31bba75333c234145fff88e6de0a90fc0f7e5e7c79deca69f6bb2 |
|
MD5 | 591a310a0cb7488094f7f8e0d041195f |
|
BLAKE2b-256 | e299961b062461652435b6ad9042d2ffdd75e327b36936987c2073aa784334d5 |
File details
Details for the file flit_scm-1.7.0-py3-none-any.whl
.
File metadata
- Download URL: flit_scm-1.7.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e864caa8a63f708f5bb2f1b5b53eedcd4da75ec2cc6221a64cea7aa5c9eae1a |
|
MD5 | 22a2d59f54f77e57a7eac92938fc776e |
|
BLAKE2b-256 | b8c38d97318eeca2cf41e2a59e3af3e79d5fd23d56eed56ef1c34866d3b0a435 |