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.71k stars 611 forks source link

Allow build deps as long as at least one setup file is in sources list. #2077

Open Walter-Gates-Bose opened 5 months ago

Walter-Gates-Bose commented 5 months ago

Resolves 2076.

Passing --build-deps-for or --all-build-deps should not emit an error as long as at least one file in the sources list is a setup file.

Using pip-compile --all-build-deps requirments.in pyproject.toml gives the error --build-deps-for and --all-build-deps can be used only with the setup.py, setup.cfg and pyproject.toml specs..

According to the help, using multiple source files is valid, so any options that apply to at least one source file should be allowed as long as that option does not cause a conflict.

Contributor checklist
Maintainer checklist
webknjaz commented 5 months ago

cc @apljungquist ^