hatch icon indicating copy to clipboard operation
hatch copied to clipboard

feat: add option to pass arguments to `uv`

Open Aviksaikat opened this issue 1 year ago • 1 comments

Summary

  • Add an option to pass arguments like --prerelease=allow for projects that are using pre-released dependencies. Could be from pyproject.toml. Maybe something like this
[tool.hatch.envs.default]
installer = "uv"
pre-released-deps = true 

Aviksaikat avatar Jul 15 '24 06:07 Aviksaikat

Can we make this more general so there is greater ability to specify UV command line options for project installation? For example, we need to use --override overrides.txt in some situations. We've had to set skip-install=false and run uv ourselves in scripts. Tried setting UV_OVERRIDE in env-vars but had no effect.

sirosc avatar Jul 18 '24 19:07 sirosc