python-poetry / python-poetry/poetry

Poetry will lock with two different versions of pandas if numpy is pinned

Open
#4,703 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Issue

Poetry will lock to two different versions of pandas if numpy is set to a fixed version. The following command will install pandas 1.3.4 into the virtual environment

poetry add numpy=1.20.1 pandas="*"

However the lock file contains two versions (1.3.3 and 1.3.4) as well as various poetry commands returning different versions

  • poetry export returns 1.3.3
  • poetry show return 1.3.4
  • poetry show --tree returns both 1.3.3 and 1.3.4

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

Reproduce the issue with poetry add numpy=1.20.1 pandas="*", then compare the lock file with the results of poetry export, poetry show, and poetry show --tree. Trace how dependency resolution and these commands select pandas versions; done means the lock file and all commands consistently report one compatible pandas version.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, pandas, 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.