Skip to content
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

Files included relatively in requirements.in file gets converted to absolute paths #13055

Closed
1 task done
rosen-dash opened this issue Oct 28, 2024 · 2 comments
Closed
1 task done
Labels
resolution: wrong project Should be reported elsewhere

Comments

@rosen-dash
Copy link

rosen-dash commented Oct 28, 2024

Description

With the latest release (24.3.1), pip-compile produces requirements.txt file with absolute paths to all the incudeded requirements.in files. This makes it difficult to reuse across different users and different machines.

With 24.2

backoff==2.2.1
    # via -r requirements.in

With 24.3.1

backoff==2.2.1
    # via -r /Users/rosen/Personal/sample/requirements.in

Expected behavior

It should retain the relative paths only to make the generated files reusable.

pip version

24.3.1

Python version

3.12.4

OS

MacOS 15.0.1

How to Reproduce

  • Download the sample.zip
  • run pip install pip==24.2
    • pip-compile requirements_dev.in will produce the content of requirements_dev-24.2.txt with
backoff==2.2.1
    # via -r requirements.in
  • run pip install pip==24.3.1
    • pip-compile requirements_dev.in will produce the content of requirements_dev-24.3.1.txt with
backoff==2.2.1
    # via -r /Users/rosen/Personal/sample/requirements.in

Output

No response

Code of Conduct

@rosen-dash rosen-dash added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Oct 28, 2024
@rosen-dash rosen-dash changed the title Files included relatively in requirements.in file gets converted to absolute path Files included relatively in requirements.in file gets converted to absolute paths Oct 28, 2024
@notatallshaw
Copy link
Member

You need to report this to the pip-tools project, which pip-compile belongs to: https://github.com/jazzband/pip-tools/issues

While pip-tools uses pip, pip does not support pip-tools.

@notatallshaw notatallshaw closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
@notatallshaw notatallshaw added resolution: wrong project Should be reported elsewhere and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Oct 28, 2024
@rosen-dash
Copy link
Author

You need to report this to the pip-tools project, which pip-compile belongs to: https://github.com/jazzband/pip-tools/issues

While pip-tools uses pip, pip does not support pip-tools.

Created an issue in pip-tool - jazzband/pip-tools#2131

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: wrong project Should be reported elsewhere
Projects
None yet
Development

No branches or pull requests

2 participants