Registry / devops / flit-scm

flit-scm

JSON →
library1.7.0pypypiunverified

A PEP 517/518 compliant build backend that combines setuptools_scm (to derive package version from VCS tags) with Flit (to build source distributions and wheels). Version 1.7.0 is the latest, supporting Python >= 3.6. Release cadence is low; no active development in the last few years.

pip install flit-scm
INSTALL
IMPORT
SIG · FLIT-SCM
F
flit-scm
devopspythonv1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Add this to pyproject.toml to use flit-scm as your build backend. Then run 'pip install .' to build and install, or 'python -m build' to create distributions.

# pyproject.toml [build-system] requires = ["flit-scm"] build-backend = "flit_scm:api" [tool.flit_scm] version_from = "git" # or "hg"
Debug
Known issues
deprecatedflit-scm has been superseded by PDM and Hatch; consider migrating to a more modern build backend.
fix
Use pdm-backend or hatchling with setuptools_scm directly.
affects: all
gotchaThe version derived by setuptools_scm may not match your expectations if tags are missing or not formatted as PEP 440.
fix
Ensure Git tags follow PEP 440 (e.g., v1.0.0) and that you are on a tag for stable releases.
affects: all
breakingflit-scm requires Python >= 3.6; Python 2 is not supported.
fix
Upgrade Python to 3.6+.
affects: all
Errors
Common errors & fixes
ValueError: unknown or unsupported SCM: git
setuptools_scm cannot find Git or the repository isn't a Git repository.
fix
Install Git and initialize a repository, or specify the correct SCM in pyproject.toml: [tool.flit_scm] version_from = "git" or "hg".
AttributeError: module 'flit_scm' has no attribute 'api'
Outdated version of flit-scm (< 1.0.0) used wrong entry point.
fix
Update flit-scm to 1.x and use 'flit_scm:api' as build-backend.
Upgrade
Version history
1.7.0latest on PyPI · released Jul 7, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flit-scm — pip install flit-scm · libregistry