Skip to content

Conversation

@deathaxe
Copy link
Contributor

This commit creates a custom local Version from PEP440Version to retain original version string, used for instantiation, in order to use it to access pypi releases after sorting versions.

That's required because a version string like str(PEP440Version(2019.09.08)) returns 2019.1.8, which then causes KeyError, when using it to access the releases dictionary.

This commit creates a custom local `Version` from `PEP440Version` to retain
original version string, used for instantiation, in order to use it to access
pypi releases after sorting versions.

That's required because a version string like `str(PEP440Version(2019.09.08))`
returns `2019.1.8`, which then causes `KeyError`, when using it to access
the releases dictionary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant