-
-
Notifications
You must be signed in to change notification settings - Fork 611
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 #2131
Comments
Same happens if specifying a constraint file inside requirements.in, such as Can replicate with pip 24.3 too, suspect this is a consequence of this change? https://github.com/pypa/pip/pull/12877/files#diff-e9f0a8e3da86978e2042a5a8073078ae9e37ee041dbc943c066e0c622c52d0d4 |
If the --constraints path is included in a requirements.*.in file, the absolute path is shown in the comments in the requirements.*.txt output. This appears to be related to a pip upgrade. Specifying the --constraints path as a command line arg instead results in the expected relative paths. We can likely change back when this issue is addressed: jazzband/pip-tools#2131
like @jmac105 said I can confirm this is caused by pip 24.3.1. if I use a bit older pip version like 23.0.1 then pip-compile shows relative path. |
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6)
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6)
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6)
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <maxwell@gtmx.me>
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <maxwell@gtmx.me>
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <maxwell@gtmx.me>
FWIW this is not an issue in my feature/relpaths-post-6.8.0 branch, but there are no plans to integrate those changes here. |
Alternatively, it's not a problem with |
This is due to a bug re-introduced into pip in the last release jazzband/pip-tools#2131
This is due to a bug re-introduced into pip in the last release jazzband/pip-tools#2131
This is due to a bug re-introduced into pip in the last release jazzband/pip-tools#2131
This is due to a bug re-introduced into pip in the last release jazzband/pip-tools#2131
This is due to a bug re-introduced into pip in the last release jazzband/pip-tools#2131
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6)
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <maxwell@gtmx.me>
Originally reported here - pypa/pip#13055
Environment Versions
$ python -V
Python 3.9.6$ pip --version
pip 24.3.1$ pip-compile --version
7.4.1Steps to replicate
Sample repo in referred issue.
With pip 24.2
With pip 24.3.1
Expected result
The relative references should be preserved
Actual result
Relative paths get replaced with absolute paths
The text was updated successfully, but these errors were encountered: