python-poetry / python-poetry/poetry

When requires_dist is not available we should select a package suitable for the python version constraint

Open
#2,284 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/installer kind/bug kind/enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.