Skip to content

PyPi release 1.7.1

Compare
Choose a tag to compare
@mikedarcy mikedarcy released this 30 Jul 03:30
· 13 commits to master since this release

Release Notes

Bugfix Release

Fix issue with packaging.parse throwing InvalidVersion in the upgrade_config() function when trying to parse the
informational version string VERSION set by bdbag when it is running in a "frozen" (e.g., with cx_Freeze) environment.
In such cases, VERSION is set to something like 1.7.1-frozen, which is not PEP-440 compliant.
This was not an issue in previous releases due to the fact that the implementation used pkg_resources.parse_version which was not as strict.

The code in upgrade_config() has been changed to parse the PEP-440 compliant version returned by distribution("bdbag").version function from importlib_metadata, rather than use the global string VERSION, which can still be (and is) used elsewhere for purely informational and descriptive purposes.

Note that this bug only affects bdbag when it is running in a frozen environment. Otherwise, release 1.7.0 is equivalent in functionality.