Python package version numbering for versioned standard

Category: python versioning (4 Views)

I'm planning to write a Python package wrapping a specific metadata standard. The standard itself has major-minor-patch versioning, and I'm not sure how to reference this in my package. Two options I have thought of are (1) to copy the upstream standard version into the package versioning but add a 4th number for my versions (so somestandard==1.2.3.45 for version 1.2.3 of the standard), or (2) to add the standard versions as modules in my package (so import somestandard.1_2_3 as somestandard for version 1.2.3 of the standard). Are there any examples of software projects that handle this elegantly?

🔴 No definitive solution yet