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 accidentally released zope.proxy 4.3.3 instead of 4.4.0 today because while the upcoming version in CHANGES.rst was correctly specified as 4.4.0, people forgot to update setup.py and it still said 4.3.3.dev0.
This is entirely my own fault for not paying attention, but I think zest.releaser could help prevent such accidents if it noticed that the version numbers were different and picked the higher one, or at least printed an extra warning.
The text was updated successfully, but these errors were encountered:
# Be careful with AttributeErrors, KeyErrors.
last_released_version = self.data["headings"][0]["version"]
# Use some setuptools version parsing for the next line.
# If that fails, ignore the check.
if suggestion < last_released_version:
print("Last version number X in history is greater than new version Y. "
"Are you sure?")
# if not: sys.exit(1)
Or before these lines, we can simply print the last history version, maybe only if it is higher than the version we get from the vcs.
I can see about that when I have some time. Or a PR is welcome.
I accidentally released zope.proxy 4.3.3 instead of 4.4.0 today because while the upcoming version in CHANGES.rst was correctly specified as 4.4.0, people forgot to update setup.py and it still said 4.3.3.dev0.
This is entirely my own fault for not paying attention, but I think zest.releaser could help prevent such accidents if it noticed that the version numbers were different and picked the higher one, or at least printed an extra warning.
The text was updated successfully, but these errors were encountered: