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 include extras in the generated files #2163

Closed
silv-io opened this issue Mar 4, 2024 · 1 comment
Closed

uv pip compile does not include extras in the generated files #2163

silv-io opened this issue Mar 4, 2024 · 1 comment

Comments

@silv-io
Copy link

silv-io commented Mar 4, 2024

Expected behavior

When defining dependencies with extras in the project files, pip-compile also puts those extras in the compiled files.

E.g.: "python-jose[cryptography]>=3.1.0" turns into: "python-jose[cryptography]==3.3.0"

Bug

uv pip compile strips the extras like this:

"python-jose[cryptography]>=3.1.0" turns into: "python-jose==3.3.0"

This might lead to issues further down the line.

Platform

  • Linux AMD64
  • uv version: 0.1.13
@charliermarsh
Copy link
Member

Thanks! This is a duplicate of an existing issue: #1595. Note that including or excluding the extras doesn't have any effect, since the extras marker just adds additional dependencies, and all those dependencies are flattened anyway. pip-tools is changing their default to strip extras in the next release -- the behavior would be identical to uv's.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants