jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.69k stars 610 forks source link

Add support for `--only-extra` #1959

Closed atugushev closed 5 months ago

atugushev commented 1 year ago

Currently, pip-tools can't compile only extra dependencies. Wouls be nice to have a new option --only-extra, for example:

# includes test deps only
pip-compile --only-extra=test -c requirements.txt -o test-requirements.txt

Note -c requirements.txt so that common sub-dependencies are in sync with requirements.txt.

Originally posted by @atugushev in https://github.com/jazzband/pip-tools/issues/1957#issuecomment-1669985803

atugushev commented 5 months ago

Closed as per https://github.com/jazzband/pip-tools/pull/1960#issuecomment-2035884213