python-poetry / python-poetry/poetry
Poetry will lock with two different versions of pandas if numpy is pinned
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (-vvvoption). -
OS version and name: Ubuntu 20.04
-
Poetry version: 1.1.11
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/J-France/70df79b776c2e5722eb37773472d5d92
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
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
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