Skip to content

Specifying source files in pyproject.toml leads to only pyproject.toml being used #2006

@csalerno-asml

Description

@csalerno-asml

Hi,
I am using pip-compile==7.3.0, and trying to specify multiple source files within the pyproject.toml file with the keyword src-files.

My desired outcome would be to specify pyproject.toml and requirements.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.
image

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
image

Is this a known bug? Should I change something on my end?

Environment Versions

  1. OS Type: RHEL7
  2. Python version: 3.10.5
  3. pip version: 23.3
  4. pip-tools version: 7.3.0

Steps to replicate

  1. specify dependencies in pyproject.toml and file.txt
  2. specify tools.pip-tools / src_files = ["pyproject.toml", "file.txt"
  3. check if dependencies specified in file.txt are picked up and translated in requirements.txt

Expected result

Dependencies specified in both files are translated in requirements.txt

Actual result

Only dependencies specified in pyproject.toml are picked up

Metadata

Metadata

Assignees

No one assigned

    Labels

    configRelated to pip-tools' configuration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions