Skip to content

Feature request: let pypi query the latest release string from the repository homepage to determine whether the package is latest or not #14224

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

Closed
dgutson opened this issue Jul 27, 2023 · 7 comments
Labels
not-this-repo For any issues that are not for this repository

Comments

@dgutson
Copy link

dgutson commented Jul 27, 2023

Describe the bug
https://pypi.org/project/binwalk/ reports Latest Version, whereas the latest version is 2.3.4 (
I'm not sure if this is manually set, or automatically. If the latter, then this is a bug.

Expected behavior
Should show that this is not the latest version

To Reproduce
Go to the page

My Platform
N/A

@dgutson dgutson added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Jul 27, 2023
@di
Copy link
Member

di commented Jul 28, 2023

Hi, this issue tracker is for issues with the codebase behind https://pypi.org itself, not the projects hosted on PyPI. This project has only make the single release listed to PyPI.

You should report this issue to the tracker for the project in question instead.

@di di closed this as completed Jul 28, 2023
@dgutson
Copy link
Author

dgutson commented Jul 28, 2023

@di I know that, as I said at the beginning, manual or automatic.

So, what prevents pypi to automatically determine whether the project is up to date or not? It could use github's API.

@miketheman miketheman added requires triaging maintainers need to do initial inspection of issue bug 🐛 not-this-repo For any issues that are not for this repository and removed requires triaging maintainers need to do initial inspection of issue bug 🐛 labels Jul 28, 2023
@miketheman
Copy link
Member

@dgutson I think an important distinction is that PyPI is not equivalent to a project's source - which could be GitHub, it could be anything - there's no requirement for these to be connected.
PyPI's notion of "latest" is the most recently-released package on the platform - and if the maintainers of the project have not elected to publish, that's entirely their prerogative.

In essence, PyPI is behaving 100% correctly - the latest version is indeed the latest version we have, which is why you should communicate the lack of a newer release to the project maintainers.

@di
Copy link
Member

di commented Jul 28, 2023

ReFirmLabs/binwalk#523 seems to be the relevant issue

@dgutson
Copy link
Author

dgutson commented Jul 28, 2023

@miketheman I perfectly understand what PyPI is and its relationship with github or others (gitlab, bitbuket, etc).

I'll turn this a feature request: let PyPI connect to different source providers (based on the homepage field) and determine whether the package in PyPI is the latest build or not.

@di thanks, binwalk was just an example.

@dgutson dgutson changed the title pypi webpage wrongly reports latest version Feature request: let pypi query the latest release string from the repository homepage to determine whether the package is latest or not Jul 28, 2023
@dgutson
Copy link
Author

dgutson commented Jul 30, 2023

@miketheman would you consider pls to re-open now that it is re-scoped and I changed the title?

@miketheman
Copy link
Member

@dgutson Considering the description and conversation, I'd recommend opening a fresh feature request issue with the specifics.
I will point out that there's already complexity in "trusting" the repository metadata since it's not verified.
See #8462 #10917 for some previous issues on this topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-this-repo For any issues that are not for this repository
Projects
None yet
Development

No branches or pull requests

3 participants