Reuse packaging code for version parsing
Bug #1554516 reported by
Thomas Bechtold
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PBR |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
pbr implements it's own logic to parse PEP0440 versions. But pbr does that incomplete (i.e. local versions like 1.1.0dev3+local4 are not supported).
Why not using the code from the pypi packaging module which supports all possible versioning schemas mentioned in PEP440?
To post a comment you must log in.
Part of that is because PBR explicitly supports a subset of PEP440 as I understand it. Specifically the versioning scheme at https:/ /docs.openstack .org/pbr/ latest/ user/semver. html which is semver made to be compatible with PEP440.
Another reason for it is PBR cannot have any dependencies so any external code would have to be vendored in.