pip-tools
pip-tools copied to clipboard
`pip-compile requirements.in` produces a different output than the pre-commit hook.
In version 7.3.0 pip-compile requirements.in
produces a different output than the pre-commit hook.
The is no issue after downgrading to 7.2.0.
Environment Versions
- OS Type: Ubuntu 20.04.3 LTS
- Python version: Python 3.9.5
- pip version: pip 23.3
- pip-tools version: 7.3.0
Steps to replicate
-
requirements.in
content:
selenium==4.14.0
-
.pre-commit-config.yaml
content:
repos:
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
- id: pip-compile
files: ^requirements\.(in|txt)$
args: [requirements.in]
- commit
requirements.in
file - run
pip-compile requirements.in
Expected result
requirements.txt
should remain unchanged when running the 4th step.
Actual result
requirements.txt
differs. diff
output:
urllib3[socks]==1.26.16
- # via selenium
+ # via
+ # selenium
+ # urllib3
wsproto==1.2.0
Thanks!
This may be a dup of #2003 and fixed by #2011, which is merged but not yet in a release.
Hi, thanks for the great work! I am also awaiting the release with #2011 included.
Same issue here
For me it works again with the newest pip...
If I rollback to pip 23.2.1
everything is back to normal
At the end I'm not sure what should be fixed where (pip ? pip-tool ?)
I tried to play with --strip-extras
, but I always end-up with compatibility issue between precommit, pip-compile and renovate tooling
If I rollback to pip
23.2.1
everything is back to normalAt the end I'm not sure what should be fixed where (pip ? pip-tool ?)
I tried to play with
--strip-extras
, but I always end-up with compatibility issue between precommit, pip-compile and renovate tooling
I am using pip==23.3.2 and pip-tools==7.3.0 and it works as well. However, I feel your confusion.
Since the upgrade to pip==24.0.0 I have this issue again 😒
@MartinRoth Do you have the issue with pip-tools >= 7.4.0?
Hi @AndydeCleyre, currently I am using pip-tools==7.4.0 and pip==24.0 and it seems to work again.
Thanks! Considering this resolved, then.
I confirm also with latest using pip-tools 7.4.0, pip 24.0 and latest renovate 37.218.0 I don't see anymore any compatiblity issue. Thanks!