NicolasLM / spinach

Modern Redis task queue for Python 3
https://spinach.readthedocs.io
BSD 2-Clause "Simplified" License
63 stars 4 forks source link

Use setuptools_scm instead of hard-coding version in const.py #33

Open bigjools opened 6 months ago

bigjools commented 6 months ago

It's impossible to do a release from the gitub releases page as the build version is hard-coded in the spinach/const.py file, which is picked up by setup.py.

We can use setuptools_scm instead which will get the version from the git tag.

While we're at it, convert to a modern pyproject.toml and use Hatch to build.