Replies: 2 comments 4 replies
-
I might consider this when lock file support lands, if and only if |
Beta Was this translation helpful? Give feedback.
-
Probably not recommended, and I'm new to both hatch & uv (coming from poetry), but the following seems to work: Alter default env path location
Alter env default to use uv and path .venv (since uv expects .venv)
Execute You could also probably configure uv to support the hatch env path instead. |
Beta Was this translation helpful? Give feedback.
-
Heavier-weight alternatives to hatch such as Poetry and PDM have an
add
orinstall
command for dependencies which:For the tools cited above, this command is necessary because it invokes the built-in dependency handling etc. However, I think it would be useful if hatch provided an equivalent that simply wrapped
pip install
for steps 1 and 2 then performed step 3 based on the version selected by pip (or equivalent logic).In my opinion, this offers a more elegant workflow than having the user manually complete pyproject.toml and either research appropriate minimum versions or initially specify * then go back and copy and paste the version that is actually installed.
Beta Was this translation helpful? Give feedback.
All reactions