You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently used versioneer for publishing my library on PyPi. However, the default setting for the version string style is style = pep440, which in my case produced version strings which were not accepted by PyPi yielding the following error:
ERROR HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
'0.0.3+0.ga7bcbda.dirty' is an invalid value for Version. Error: Can't
use PEP 440 local versions.
In the end changing the style parameter to style = pep440-pre solved the issue. I am now wondering if this was a special case for me or not, hence have you ever experienced this before?
If so I would suggest changing the default setting to a format which is compatible with PyPi, since this is a major database for distribution of Python libraries.