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

Support environment package install with uv #1268

Closed
dannyfriar opened this issue Feb 18, 2024 · 9 comments
Closed

Support environment package install with uv #1268

dannyfriar opened this issue Feb 18, 2024 · 9 comments

Comments

@dannyfriar
Copy link

The new uv tool (https://astral.sh/blog/uv) is much faster than pip in a lot of cases.

Would it be possible to add support to the hatch environment building to allow using uv pip in place of pip?

@ofek
Copy link
Collaborator

ofek commented Feb 19, 2024

Yes but is blocked by astral-sh/uv#1396

@domoritz
Copy link

domoritz commented Mar 7, 2024

Looks like astral-sh/uv#1396 is fixed. What's needed to use uv with hatch now?

@ofek
Copy link
Collaborator

ofek commented Mar 7, 2024

Only my implementation.

@domoritz
Copy link

domoritz commented Mar 7, 2024

Could you elaborate? I don't follow.

@ofek
Copy link
Collaborator

ofek commented Mar 7, 2024

I mean the time it takes to do the literal implementation. Give me a few weeks.

@ofek
Copy link
Collaborator

ofek commented Apr 12, 2024

#1380

@ofek ofek closed this as completed Apr 12, 2024
@ofek
Copy link
Collaborator

ofek commented Apr 12, 2024

https://hatch.pypa.io/dev/how-to/environment/select-installer/

edgarrmondragon added a commit to edgarrmondragon/tap-bitly that referenced this issue Apr 12, 2024
* pypa/hatch#1268 (comment)
* Blocked on a new release of Hatch
@manmartgarc
Copy link

How can indeed verify that uv is being used? I am trying to just compare environment creation time with installer = "uv" and without it and I don't see much of a difference. Should I also add it to the environments dependencies section?

@MtkN1
Copy link

MtkN1 commented Apr 28, 2024

How can indeed verify that uv is being used? I am trying to just compare environment creation time with installer = "uv" and without it and I don't see much of a difference. Should I also add it to the environments dependencies section?

As far as I know, no functionality regarding uv has been released. To try this, use the development version.
pipx install git+https://github.com/pypa/hatch
Feature for uv is planned for v1.10.0.
https://hatch.pypa.io/dev/blog/2024/04/18/hatch-v1100/

edgarrmondragon added a commit to edgarrmondragon/tap-bitly that referenced this issue May 3, 2024
* pypa/hatch#1268 (comment)
* Blocked on a new release of Hatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants