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.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file flit_scm-1.6.1.tar.gz
.
File metadata
- Download URL: flit_scm-1.6.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15d9ea75cf74ddbeea85ac112482e2b020969bb41180d2b19d8301a24220cad3 |
|
MD5 | dfd3822bdfa83ae4a2ab1a05a1a81f7a |
|
BLAKE2b-256 | 13bd1954d91d661a0f0bf1ef3893064350a22b3fdd9b15ef7091c97df13d76d7 |
File details
Details for the file flit_scm-1.6.1-py3-none-any.whl
.
File metadata
- Download URL: flit_scm-1.6.1-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.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a07ea7a7c632821f732c0b85a3efd3c9607b2aebc142d4300721a81bd6b1856 |
|
MD5 | ba422ca7a65a4adaaea04d9c7d472f37 |
|
BLAKE2b-256 | 86d7216fa5d621704b58566ffe887dde0478eabda587a3603bdfb8b3c1d43305 |