Skip to content

Overriding Transitive Dependency in Parser Clients #27

@crgz

Description

@crgz

Description

Our parser clients are facing issues with their transitive dependency as the last fixed version has not reached the Python Package Index yet. This last fixed version is available in the dependency master branch and can be accessed through a URL. However, simply referencing the URL in the requirements.txt file is not enough as the file's content is not used by the Python pip system to resolve dependencies.

To overcome this issue, we propose to replace the "package name" defined in the install_requires entry in the setup.py file with the URL pointing to the last fixed version. This will serve as a workaround until the fix reaches the Python Package Index.

Steps to reproduce

pip install fuzzy_parser

Expected Behavior

The latest version: pyswip-0.2.11 is installed

Actual Behavior

The version: pyswip-0.2.1o is installed:

Defaulting to user installation because normal site-packages is not writeable
Collecting fuzzy_parser
...
Installing collected packages: pyswip, fuzzy_parser
Successfully installed fuzzy_parser-0.2.59 pyswip-0.2.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions