Skip to content

Use uv caching - #375

Merged
flying-sheep merged 2 commits into
more-hatchfrom
pa/hatch+uv
Mar 27, 2025
Merged

flying-sheep merged 2 commits into
more-hatchfrom
pa/hatch+uv

Conversation

@flying-sheep

@flying-sheep flying-sheep commented Mar 27, 2025 •

Copy link
Copy Markdown
Member

We use Hatch as an env manager and uv as an installer (partially through hatch, partially by itself)

The pypa/hatch@install action doesn‘t set up caching, yet everything we do benefits from it:

  • the test job can really benefit from this, if a user has a dependency that needs to be built, having it in the uv cache really speeds up tests
  • pyproject-build --installer=uv as well as uv build (which is shorter, so maybe the way to go) both use uv to install the build deps. The benefit isn’t large (there aren’t that many build deps) but why not be consistent?

This PR changes #373 so it uses uv caching everywhere, and installs hatch via uv while we’re at it.

@flying-sheep flying-sheep mentioned this pull request Mar 27, 2025
1 task
@flying-sheep
flying-sheep requested review from Zethson and grst March 27, 2025 08:58
@grst

grst commented Mar 27, 2025

Copy link
Copy Markdown
Collaborator

LGTM

@flying-sheep
flying-sheep merged commit 9c0eeeb into more-hatch Mar 27, 2025
@flying-sheep
flying-sheep deleted the pa/hatch+uv branch March 27, 2025 09:01
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

Successfully merging this pull request may close these issues.

2 participants