Skip to content

How might uv use hatchling? Where is it? #1936

Answered by pycaw
pycaw asked this question in Q&A
Discussion options

You must be logged in to vote

I found it:
~/.cache/uv/builds-v0/.tmpkMKgQV/lib/python3.10/site-packages/hatchling

I corrected my pyproject:

[tool.hatch.build.targets.sdist.hooks.custom]
path = "scripts/hatch_build.py"

Situation now:

  1. Ignore the lack of linting while developing my custom hook
  2. Add hatch+hatchling to my venv
  • uv doesn't pick this up, so know I have potentially different versions used (execution, linting)
  • This also brings in a TON of dependencies (including uv :D), wow I didn't imagine that. Hatchling is much more lightweight of course, if uv doesn't pick up even if hatch is installed then this can suffice anyways.

This is now more of a uv issue I suppose, and I think I will be okay with option 1. Or m…

Replies: 1 comment 10 replies

Comment options

ofek
Mar 16, 2025
Maintainer Sponsor

You must be logged in to vote
10 replies
@pycaw
Comment options

@ofek
Comment options

ofek Mar 16, 2025
Maintainer Sponsor

@pycaw
Comment options

Answer selected by pycaw
@ofek
Comment options

ofek Mar 17, 2025
Maintainer Sponsor

@pycaw
Comment options

@ofek
Comment options

ofek Mar 17, 2025
Maintainer Sponsor

@pycaw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants