Log errors for incorrect pyproject.toml #1860
Labels
bug
Something is not working
duplicate
Duplicate of an existing issue/PR
pyproject.toml
Related to pyproject.toml support
My Problem
I'm using pip-tools to manage the requirements of a project that I don't indend to distribute. My
pyproject.toml
looks like this.When I try to run
pip-compile
, I get a very unhelpful error.To add to my problems,
validate-pyproject
does not discover any errors eitherThe Solution
In my particular case, the solution was to add the following section to
pyproject.toml
I was able to figure this out by changing the following line to remove the
stderr
argument.Once I do that, I can run
pip-compile
and immediately find the error:Future Work
I don't think we should deprive users of such a helpful message.
Right now the
build
library defaults to using aquiet
subprocess runner. In a future release,build
will allow the option to specify the runner explicitly (pypa/build#566). When the next version ofbuild
is released, we should consider changing the following lines to usepyproject_hooks.default_subprocess_runner
so that errors are also printed to the terminal.pip-tools/piptools/scripts/compile.py
Lines 496 to 499 in 0d2d1f2
The text was updated successfully, but these errors were encountered: