-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Specifying source files in pyproject.toml leads to only pyproject.toml being used #2006
Comments
To add on this, if I run |
A full repro would be helpful. |
Hey @webknjaz , I created a repo to demo this: https://github.com/csalerno-asml/test-pip-compile Basically, it looks like the tool ignores entirely the content of
You can see the behavior here:
|
To add on this, the My concern is, then: maybe the code is missing the logic to handle |
I believe we should first incorporate this PR #1966 which will allow us to separately specify inputs and outputs for the |
Actually, I found out what exactly causes this: According to pallets/click#390, default values won't work on arguments with unlimited length. So I think the proposed fix is the only solution. |
Hi,
I am using
pip-compile==7.3.0
, and trying to specify multiple source files within thepyproject.toml
file with the keywordsrc-files
.My desired outcome would be to specify
pyproject.toml
andrequirements.hotfix.txt
, so that the list of dependencies can be used together.However, I noticed that it's like these files - and the whole input in general - are ignored, because then the tool only use the dependencies specified in
pyproject.toml
.I also tried to do something like these (see picture), but I ended up with again
pyproject.toml
being used.I know that the tool is reading the config, since the other options are used, and if I specify a non-existing file I get an error message
Is this a known bug? Should I change something on my end?
Environment Versions
Steps to replicate
pyproject.toml
andfile.txt
tools.pip-tools
/src_files = ["pyproject.toml", "file.txt"
file.txt
are picked up and translated in requirements.txtExpected result
Dependencies specified in both files are translated in
requirements.txt
Actual result
Only dependencies specified in
pyproject.toml
are picked upThe text was updated successfully, but these errors were encountered: