You've already forked Rare
mirror of
https://github.com/RareDevs/Rare.git
synced 2026-02-02 12:23:12 -08:00
Using `pip install .` or `python -m build` fails if this directive it present. Both of these commands work correctly without the directive by using a barebones `setup.py`. On the other hand, removing this directive breaks `python3 -m setuptools_scm --force-write-version-files` which is used in the workflows to generate `rare/_version.py` before packaging. In the case of the workflows though we already override the version using `SETUPTOOLS_SCM_PRETEND_VERSION` so it shouldn't be an issue.
10 lines
202 B
Python
10 lines
202 B
Python
from setuptools import setup
|
|
from setuptools_scm import ScmVersion
|
|
|
|
|
|
def mkversion(ver: ScmVersion) -> str:
|
|
return f"{ver.tag}.{ver.distance}"
|
|
|
|
|
|
setup(use_scm_version={"version_scheme": mkversion})
|