Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: PyPI (PEP 440) versioning scheme #1015

Closed
encukou opened this issue Jan 29, 2021 · 1 comment · Fixed by #1175
Closed

RFE: PyPI (PEP 440) versioning scheme #1015

encukou opened this issue Jan 29, 2021 · 1 comment · Fixed by #1175
Labels
Low Priority This ticket has a low priority type.feature New feature

Comments

@encukou
Copy link
Contributor

encukou commented Jan 29, 2021

Anitya currently supports RPM, calver and semver schemes.
Python packages (as available on on PyPI and installed by pip) use the PEP 440 versioning scheme, which is unfortunately slightly different in the details (pre-releases, in particular).

The specification is implemented in the Python module packaging.version (but could be reimplemented if necessary).

Would it be worth it to add this to anitya?
Is there anything to watch out for if I want to write the PR (apart from general stuff in the Development Guide)?

Last but not least, thank you for Anitya! the-new-hotness saves us (Red Hat Python-maint team) a lot of time for Fedora maintenance – we use it so much that this bit of missing functionality is starting to be annoying :)

@Zlopez Zlopez added type.feature New feature Low Priority This ticket has a low priority labels Feb 1, 2021
@Zlopez
Copy link
Contributor

Zlopez commented Feb 1, 2021

I didn't know the PyPI has they own versioning scheme. Could be nice to have it in Anitya.

If you want to create a PR for it, just follow the development guide. In this case you need to add a new class to anitya.lib.versions and it should work as expected.

encukou added a commit to encukou/anitya that referenced this issue Sep 3, 2021
@mergify mergify bot closed this as completed in #1175 Sep 9, 2021
mergify bot pushed a commit that referenced this issue Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Low Priority This ticket has a low priority type.feature New feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants