Poetry resolves differently when fetching packages through a local devpi mirror
See original GitHub issue-
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 (
-vvv
option). -
OS version and name: MacOS 10.14 Mojave
-
Poetry version: 12.10
-
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/bjoernpollex/529e35cf10f4abe791cefc711319188c
Issue
Given the linked pyproject.toml
, poetry will resolve differently (and incorrectly) when running against a local devpi mirror. Running poetry -vvv lock
without custom package source against clean caches produces the following output:
Using virtualenv: /Users/bjoernpollex/Library/Caches/pypoetry/virtualenvs/poetry-futures-py3.6
Updating dependencies
Resolving dependencies...
1: fact: poetry-futures is 0.1.0
1: derived: poetry-futures
1: fact: poetry-futures depends on isort (^4.3)
1: selecting poetry-futures (0.1.0)
1: derived: isort (^4.3)
PyPI: 5 packages found for isort >=4.3,<5.0
PyPI: Getting info for isort (4.3.4) from PyPI
PyPI: No dependencies found, downloading archives
PyPI: Downloading sdist: isort-4.3.4.tar.gz
1: selecting isort (4.3.4)
1: Version solving took 0.364 seconds.
1: Tried 1 solutions.
Running with a local devpi mirror as a custom package source (uncomment the relevant lines in pyproject.toml
, requires a local devpi-server
running) gives this:
Using virtualenv: /Users/bjoernpollex/Library/Caches/pypoetry/virtualenvs/poetry-futures-py3.6
Updating dependencies
Resolving dependencies...
1: fact: poetry-futures is 0.1.0
1: derived: poetry-futures
1: fact: poetry-futures depends on isort (^4.3)
1: selecting poetry-futures (0.1.0)
1: derived: isort (^4.3)
dev: 5 packages found for isort >=4.3,<5.0
dev: Downloading wheel: isort-4.3.4-py2-none-any.whl
dev: The cache for isort 4.3.4 is outdated. Refreshing.
dev: Downloading wheel: isort-4.3.4-py2-none-any.whl
1: fact: isort (4.3.4) depends on futures (*)
1: selecting isort (4.3.4)
1: derived: futures (*)
dev: 22 packages found for futures *
dev: Downloading wheel: futures-3.2.0-py2-none-any.whl
dev: The cache for futures 3.2.0 is outdated. Refreshing.
dev: Downloading wheel: futures-3.2.0-py2-none-any.whl
1: selecting futures (3.2.0)
1: Version solving took 0.264 seconds.
1: Tried 1 solutions.
For some reason, when running against the local mirror, poetry
doesn’t figure out that (1) futures
is not needed for isort
on Python 3, and (2) that futures 3.2.0
is not compatible with Python 3 (it will fail to install).
I would expect poetry
to come to the same and correct solution in both cases.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Commit 750e31d should fix the issue and will be released with next bugfix version some time next week.
Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.