-
Notifications
You must be signed in to change notification settings - Fork 104
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
Incorrect version for pypi packages #822
Comments
It will be probably good to use explicit default version instead of sorted list. |
The best approach here will be to detect pre-release versions and add a check if user wants to be notified about the new version or not. Hopefully implementing #753 should help. |
As anitya now supports the concept of stable vs pre-release versions the "pre-release" pypi tag should be taken into account. For example this package: https://pypi.org/project/rdflib/#history where anitya currently thinks 6.0.2a0 is the latest even though it was the release candidate for 6.0.2 proper and is marked pre-release and as such shouldn't be considered to be the stable version. |
@z3ntu The Anitya doesn't look at the backend for the pre-release information, but rather on the version scheme, which also does the sorting. The version scheme is implemented according to the documentation. If this is not sorted correctly, try different version scheme for the project. From what I remember python encourages projects to use Semantic versioning, if they don't there isn't much we can do about it. If Pypi has something special, please fill a request for this to be implemented together with the link on the documentation for this versioning system. |
With the semantic version scheme selected in anitya 6.0.2 is now the latest. But this 'a0' suffix seems be a one-off weirdness, whatever the maintainer was thinking. |
It appears the latest version for pypi packages is being pulled from a sorted list of all available versions rather than the explicit default version specified in the pypi json api.
This is mostly a problem for projects that upload alpha releases to pypi.
As you can see here the latest version in release-monitoring doesn't match the version in pypi.
The text was updated successfully, but these errors were encountered: