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

uv pip compile does not indicate whether dependencies originate from the main package or from additional extras #1665

Closed
neumann-nico opened this issue Feb 18, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@neumann-nico
Copy link
Contributor

neumann-nico commented Feb 18, 2024

Extras are actually generated correctly but not indicated where they come from in the output file. You don't know if a dependency is part of the main package or if it is generated from an extra. This is an incompatibility with pip-compile.

(The via -r ... part, which is also different in the output, was already mentioned in #1343)

psycopg[binary,pool]==3.1.18 -> psycopg==3.1.18
[binary,pool] is missing in the output.

But the extras are generated correctly:

psycopg-binary==3.1.18
    # via psycopg
psycopg-pool==3.2.1
    # via psycopg

Steps to reproduce it:

requirements.in

psycopg[binary,pool]==3.1.18

uv pip compile requirements.in

# This file was autogenerated by uv v0.1.4 via the following command:
#    uv pip compile requirements.in
psycopg==3.1.18
psycopg-binary==3.1.18
    # via psycopg
psycopg-pool==3.2.1
    # via psycopg
typing-extensions==4.9.0
    # via
    #   psycopg
    #   psycopg-pool

pip-compile requirements.in

# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile requirements.in
#
psycopg[binary,pool]==3.1.18
    # via -r requirements.in
psycopg-binary==3.1.18
    # via psycopg
psycopg-pool==3.2.1
    # via psycopg
typing-extensions==4.9.0
    # via
    #   psycopg
    #   psycopg-pool
@neumann-nico neumann-nico changed the title uv pip compile does not display where the extras come from uv pip compile does not indicate whether dependencies originate from the main package or from additional extras Feb 18, 2024
@zanieb
Copy link
Member

zanieb commented Feb 18, 2024

Is this a duplicate of #1595?

@zanieb zanieb added the duplicate This issue or pull request already exists label Feb 18, 2024
@neumann-nico
Copy link
Contributor Author

Sorry I used the search but actually did not see the mentioned issue. Closing this one 👍🏻

@charliermarsh
Copy link
Member

Supported in the next version via #3269.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants