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

Running pip-tools compile on multiple sources fails with --all-extras #1980

Closed
dragly opened this issue Sep 4, 2023 · 0 comments · Fixed by #1981
Closed

Running pip-tools compile on multiple sources fails with --all-extras #1980

dragly opened this issue Sep 4, 2023 · 0 comments · Fixed by #1981

Comments

@dragly
Copy link
Contributor

dragly commented Sep 4, 2023

Running pip-tools compile with --all-extras on multiple sources containing extras always fails with the following error:

Error: Invalid value: --extra has no effect when used with --all-extras

Environment Versions

  1. Linux
  2. Python version: python 3.10.8
  3. pip version: pip 22.2.2
  4. pip-tools version: pip-compile, version 7.3.1.dev21

Steps to replicate

  1. Create two small projects with pyproject.toml containing
[project]
name = "package-a"
version = "0.1.0"

[project.optional-dependencies]
test = []
  1. Run python -m piptools compile --all-extras package-a/pyproject.toml package-b/pyproject.toml

Expected result

A requirements.txt file for the combined projects including all extras should be generated.

Actual result

Error: Invalid value: --extra has no effect when used with --all-extras
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

Successfully merging a pull request may close this issue.

1 participant