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

Transitive extra dependencies for package uninstalled when running poetry install #3684

Open
3 tasks done
sajomathews opened this issue Feb 13, 2021 · 1 comment
Open
3 tasks done
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@sajomathews
Copy link

sajomathews commented Feb 13, 2021

  • 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: ArchLinux
  • Poetry version: 1.1.4
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

I believe this might be related to #3224

Similar to the issue above, the problem is that if I add a package using poetry add and then run poetry install, the dependencies are getting uninstalled. Unlike #3224 though, in my case the package I am adding does not have any extras. However, the package in question is a private package (also built using poetry) which depends on another package with extras.

Steps to reproduce

Create a new project with a dependency on a package with extras

poetry new vaa-protocols
poetry add git+https://github.com/danielgtaylor/python-betterproto.git -E compiler
poetry publish -r local --build

Then create a package that depends on this package

poetry new test
poetry add vaa-protocols --source local
poetry install --no-root

Now if we run poetry install, a bunch of dependencies get uninstalled.
This happens under the following specific scenarious:

  1. poetry.lock file must be present. Deleting the lock file and running install does not trigger this behavious
  2. This only happens if the package vaa-protocols is installed from a custom pypi. It does not happen when using a directory or pointing to a wheel directly.
  3. This only happens when I get betterproto from git. It does not happen if I get the latest package from Pypi.
@sajomathews sajomathews added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 13, 2021
@dimbleby
Copy link
Contributor

hard to reproduce, since pypi (and test pypi) don't allow publishing wheels that contain direct dependencies...

probably fixed? who knows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants