-
-
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 <[email protected]>
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <[email protected]>
Relates: #1950 (comment) Relates: jazzband/pip-tools#2131 (cherry picked from commit ef750f6) Co-authored-by: Maxwell G <[email protected]>
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 <[email protected]>
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove unused pytest-lazy-fixture package Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * migrate `pytest-lazyfixture` to `pytest-lazy-fixtures` (with an "s" at the end) Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove unused pytest-lazy-fixture package * Remove mocking of private ops class according to canonical/operator#1369 and canonical/seldon-core-operator#268 Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove unused pytest-lazy-fixture package * Bump chisme to 0.4.4 to fix #138 Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185 Fixes #138
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove unused pytest-lazy-fixture package Ref canonical/bundle-kubeflow#1177 Ref canonical/bundle-kubeflow#1185
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' Ref canonical/bundle-kubeflow#1177
* Pin pip to 24.2 due to jazzband/pip-tools#2131 * Update python dependencies using 'tox -e update-requirements' * Remove mocking of private ops class according to canonical/operator#1369 and canonical/seldon-core-operator#268 * Pin blinker due to seleniumbase/SeleniumBase#2782 Ref canonical/bundle-kubeflow#1177
@macro1 the CI is now green and working on PRs unblocked. |
Workaround for: jazzband/pip-tools#2131
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: