Closed dkirkby closed 6 years ago
For the first one, it was fixed in astropy/astropy-helpers#379
The normalization rule triggering the UserWarning
is specified in PEP440, and removes leading zeros.
However, the cookiecutter default version is not causing this:
"project_version": "0.0.dev0",
I guess the problem is somewhere in astropy-helpers, maybe get_git_devstr?
Digging deeper, the version problem is in this package after all. The cause is this line in setup.py:
VERSION += get_git_devstr(False)
The simplest fix is to replace dev0
with dev
in three places. A more robust solution would also detect any trailing integer after dev
and generate a warning/error or silently remove it before appending get_git_devstr()
.
Related to this, the PEP386 reference in setup.cfg
could be updated to PEP440.
I just followed these instructions, which went smoothly, but I noticed the following warning (2x) the first time I ran
python setup.py ...
:Also, this warning appears each time I run
python setup.py ...
(I used the default initial version string):