Noticed in the APE 17 migration guide there's no mention on how to switch to another version scheme (for example, CalVer). I spent a couple of hours trying to get that working (the default setuptools_scm guide does not help).
I think this happens because use_scm_version is super hardcoded in setup.py and does not reads config from pyproject.toml. My method was to modify setup.py in the following way:
Description:
Noticed in the APE 17 migration guide there's no mention on how to switch to another version scheme (for example, CalVer). I spent a couple of hours trying to get that working (the default
setuptools_scm
guide does not help).I think this happens because
use_scm_version
is super hardcoded insetup.py
and does not reads config frompyproject.toml
. My method was to modifysetup.py
in the following way:The "correct" way to do it should be modifying
pyproject.toml
(but that's not currently working for this template)