[Python] python pip compile is rending absolute path of requirements.in file

Discussão em 'Python' iniciado por Stack, Julho 7, 2025.

  1. Stack

    Stack Membro Participativo

    Python version: 3.12 pip-tools: 7.4.1

    Project structure

    /projectdir
    ------requirements/
    ------------requirements.in
    ------------requirements.txt
    ------------requirements-dev.in
    ------------requirements-dev.txt
    ------Makefile


    Contents of requirements-dev.in

    -r requirements.in
    localstack
    *******
    *******


    Makefile command:

    pip-compile --no-emit-index-url requirements/requirements-dev.in --upgrade --resolver=backtracking --no-strip-extras


    generated content of requirements-dev.txt

    #
    # This file is autogenerated by pip-compile with Python 3.12
    # by the following command:
    #
    # pip-compile --no-emit-index-url requirements/requirements-dev.in
    #
    annotated-types==0.7.0
    # via pydantic
    attrs==25.3.0
    # via
    # jsonschema
    # referencing
    aws-lambda-powertools==3.16.0
    # via
    # -r /Users/abhkumar/repo/pegasus-fulfill-ingest/requirements/requirements.in
    # ewflib


    As you can see, under aws-lambda-powertools,

    -r /Users/abhkumar/repo/pegasus-fulfill-ingest/requirements/requirements.in


    I was expecting that it will print only

    -r requirements.in


    I have tried all possible options, but cant get it working, please help

    Continue reading...

Compartilhe esta Página