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

uv adds dependency for newer version of python where pip does not #3675

Closed
notatallshaw-gts opened this issue May 20, 2024 · 1 comment · Fixed by #3681
Closed

uv adds dependency for newer version of python where pip does not #3675

notatallshaw-gts opened this issue May 20, 2024 · 1 comment · Fixed by #3681
Assignees
Labels
bug Something isn't working

Comments

@notatallshaw-gts
Copy link

Upon reconciling the output of my uv and pip commands at work I found a curious additional dependency appear, I have narrowed it down, and I think it's a bug in uv:

$ python -V
Python 3.11.2
$ uv -V
uv 0.1.45
$ pip -V
pip 24.0 from ...

$ pip install --dry-run pickleshare
Collecting pickleshare
  Using cached pickleshare-0.7.5-py2.py3-none-any.whl.metadata (1.5 kB)
Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Would install pickleshare-0.7.5

$ uv pip install --dry-run pickleshare
Resolved 3 packages in 1ms
Would download 2 packages
Would install 2 packages
 + pathlib2==2.3.7.post1
 + pickleshare==0.7.5

uv adds this dependency pathlib2 that pip does not.

Looking at the metadata (https://files.pythonhosted.org/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl.metadata) this appears to be the offending line:

Requires-Dist: pathlib2; python_version in "2.6 2.7 3.2 3.3"

I've not had chance to read the spec for this, but appears that uv is wrong for requiring pathlib2 on Python 3.11.2.

@zanieb zanieb added the bug Something isn't working label May 20, 2024
@zanieb
Copy link
Member

zanieb commented May 20, 2024

Interesting, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants