-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
pip-sync 7.0.0 uninstalls pyproject-hooks #1917
Comments
Confirmed. Thanks for the issue! $ cat requirements.in
django
$ pip-compile
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile
#
asgiref==3.7.2
# via django
django==4.2.3
# via -r requirements.in
sqlparse==0.4.4
# via django
$ pip-sync -a
Would uninstall:
pyproject_hooks
Would install:
asgiref==3.7.2
django==4.2.3
sqlparse==0.4.4
Would you like to proceed with these changes? [y/N]: |
I have got a similar bug with jaraco.classes
This is done every sync, the requirements file contains the following line,
I have confirmed this does not happen with pip-tools-6.14.0 with the same requirements file. |
t seems this PR #1885 might have broken pip-sync. There was some refactoring on the diff (what to install and what to uninstall) calculation. cc @siddharthab |
@tomazfs @AxelBjork could you test this fix #1919? Does it resolve the issue?
|
This works like expected again |
We faces the same problem, the fix works for us too ❤️ |
Thank you for the fix. I should have paid more attention to canonicalizing the package name. |
@subhaminion, no worries! Unfortunately, pip-tools does not have as many integration tests for pip-sync as pip-compile does. |
This works as expected. |
@atugushev @siddharthab , maybe you will add the test guys for you to have example UPDATE: see the tests were added in the MR 👍 Great Job! |
@sshishov Thanks for pointing that out. I've added the necessary tests for each case. However, if you believe that something is missing, please feel free to open a PR. |
pip-sync uninstalls pyproject-hooks, which is requirement of build package and indirectly requirement of pip-tools. End result is broken pip-tools installation.
Environment Versions
Windows 10
Python version: Python 3.11.4
pip version: pip 23.2
pip-tools version: pip-compile, version 7.0.0
Steps to replicate
Expected result
Everything up-to-date
Actual result
Found existing installation: pyproject_hooks 1.0.0
Uninstalling pyproject_hooks-1.0.0:
Successfully uninstalled pyproject_hooks-1.0.0
The text was updated successfully, but these errors were encountered: