Skip to content

Ignore literal duplicates (includes and/or individual requirements)Β #993

@rfleschenberg

Description

@rfleschenberg

pip's handling of requirements files does not support a scenario like this one:

# common.txt
somepackage==1.0

# testing.txt
- r common.txt
test-tool==1.0

# development.txt
-r common.txt
-r testing.txt
developer-tool==1.0

Here, pip install -r development.txt will complain about a double requirement somepackage==1.0 and quit.

Because of that, I have to duplicate my testing requirements in my development.txt. Not a big deal, but it would be nice if pip could handle this. For this scenario, it seems that it would be sufficient to just ignore the duplicate -r line, so this would probably be easier to implement than #56.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions