You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is so you can handle creation and package management. Think adding dependencies, if users want to add new dependencies, if they use built-in pip will add those dependencies to the wrong lock file.
There are no lock files yet for Hatch, so I think “use uv if available in the venv, else use pip” is close enough to Hatch’s behavior for now. Or am I missing something?
There is no hatch dep add, only hatch dep show and hatch dep hash.
With Hatch, I usually add the deps declaratively to project.dependencies or project.optional-dependencies.*, and they end up in envs via $env.features or so, I very rarely add things to to $env.(extra-)dependencies.
In the future, I’d add things to dependency groups and reference those from hatch envs.
Activity
flying-sheep commentedon May 8, 2025
There are no lock files yet for Hatch, so I think “use uv if available in the venv, else use pip” is close enough to Hatch’s behavior for now. Or am I missing something?
karthiknadig commentedon May 8, 2025
doesnt the pyproject.toml support something like:
If you control the package management, you could update this.
flying-sheep commentedon May 8, 2025
There is no
hatch dep add, onlyhatch dep showandhatch dep hash.With Hatch, I usually add the deps declaratively to
project.dependenciesorproject.optional-dependencies.*, and they end up in envs via$env.featuresor so, I very rarely add things to to$env.(extra-)dependencies.In the future, I’d add things to dependency groups and reference those from hatch envs.