Go to file
su-fang a894f9e0c7 changed debian/source/format to native 2023-02-10 14:23:02 +08:00
debian changed debian/source/format to native 2023-02-10 14:23:02 +08:00
flit_scm Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00
.gitignore Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00
.gitlab-ci.yml Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00
LICENSE Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00
README.md Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00
pyproject.toml Import Upstream version 1.6.2 2023-02-10 14:23:01 +08:00

README.md

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"