python-poetry / python-poetry/poetry
When requires_dist is not available we should select a package suitable for the python version constraint
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
In cases like #2247 when requires_dist value is not available in the PyPI API response, we fallback to to retrieving the first wheel entry for metadata parsing. This can lead to misleading log messages and potentially, incorrect metadata.
We should improve this by filtering for first available wheel that matches any constraints as best as feasible before arbitrary fallback.
Note: This is especially misleading when downloads take a long time and it gives the illusion of the application being stuck.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the fallback used when the PyPI API response lacks requires_dist, using issue #2247 for context. Done means selecting an available wheel that best matches the Python version constraints before arbitrary fallback, while avoiding misleading indications during long downloads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100