flit_scm is 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.