Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private repo causes transient extra dependencies to be tossed #2300

Closed
2 of 3 tasks
madig opened this issue Apr 13, 2020 · 2 comments · Fixed by python-poetry/poetry-core#78 or #2887
Closed
2 of 3 tasks

Private repo causes transient extra dependencies to be tossed #2300

madig opened this issue Apr 13, 2020 · 2 comments · Fixed by python-poetry/poetry-core#78 or #2887
Labels
kind/bug Something isn't working as expected

Comments

@madig
Copy link

madig commented Apr 13, 2020

  • 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).

Issue

The presence of a secondary package index and a package from there as a dependency messes with dependency resolution.

To reproduce:

  1. poetry new test && cd test
  2. Insert content of https://gist.github.com/madig/de961d21c8f796b4fc86d984dece0fd4 into pyproject.toml
  3. poetry install -- note how this installs appdirs, fs, pytz and six.
  4. poetry update -- removes these packages again when it shouldn't.
  5. Comment out the test repository and the poetry-resolver-bug-test package
  6. poetry update reinstalls appdirs and friends
  7. Reenable repo and package
  8. poetry update -- installs the poetry-resolver-bug-test package but leaves appdirs, etc. alone
  9. Redoing poetry update then tosses them again when it shouldn't.

In my actual package, the toml package (via isort[pyproject]) also gets tossed out, but I can't reproduce this here easily.

@madig madig added the kind/bug Something isn't working as expected label Apr 13, 2020
@kasteph kasteph added the status/triage This issue needs to be triaged label Apr 13, 2020
@ghost
Copy link

ghost commented Jun 11, 2020

Can reproduce with the following package (that has a dependency on dask[dataframe]):

$ poetry new test_proj
$ cd test_proj
$ poetry install
$ poetry add tsfresh  # here everything gets installed as it should
$ poetry update  # here fsspec, locket and partd are removed

Similar bug to #2494 and #2080 IMO

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
3 participants