{"id":23095,"library":"flit-scm","title":"flit-scm","description":"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.","status":"active","version":"1.7.0","language":"python","source_language":"en","source_url":"https://github.com/FFY00/flit-scm","tags":["build-system","versioning","scm","flit","setuptools-scm","pep517","pep518"],"install":[{"cmd":"pip install flit-scm","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[],"quickstart":{"code":"# pyproject.toml\n[build-system]\nrequires = [\"flit-scm\"]\nbuild-backend = \"flit_scm:api\"\n\n[tool.flit_scm]\nversion_from = \"git\"  # or \"hg\"","lang":"python","description":"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."},"warnings":[{"fix":"Use pdm-backend or hatchling with setuptools_scm directly.","message":"flit-scm has been superseded by PDM and Hatch; consider migrating to a more modern build backend.","severity":"deprecated","affected_versions":"all"},{"fix":"Ensure Git tags follow PEP 440 (e.g., v1.0.0) and that you are on a tag for stable releases.","message":"The version derived by setuptools_scm may not match your expectations if tags are missing or not formatted as PEP 440.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Python to 3.6+.","message":"flit-scm requires Python >= 3.6; Python 2 is not supported.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install Git and initialize a repository, or specify the correct SCM in pyproject.toml: [tool.flit_scm] version_from = \"git\" or \"hg\".","cause":"setuptools_scm cannot find Git or the repository isn't a Git repository.","error":"ValueError: unknown or unsupported SCM: git"},{"fix":"Update flit-scm to 1.x and use 'flit_scm:api' as build-backend.","cause":"Outdated version of flit-scm (< 1.0.0) used wrong entry point.","error":"AttributeError: module 'flit_scm' has no attribute 'api'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}