-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: --pre
installs for pre-release and development versions
#603
Comments
I second this request; ideally we could pass arbitrary arguments to |
Hey thanks! You can use env vars https://hatch.pypa.io/1.6/how-to/environment/package-indices/ |
Thanks @ofek! I'm afraid I might need slightly more detail than that. |
|
So in my other use case it would be |
https://pip.pypa.io/en/stable/topics/configuration/#environment-variables [tool.hatch.envs.default.env-vars]
PIP_PRE = "1" |
Thanks both. Much appreciated |
Figured out how do do it from the advanced env docs and uv’s env var docs: [[envs.hatch-test.matrix]]
python = ["3.12"]
deps = ["stable", "pre"]
[envs.hatch-test.overrides]
matrix.deps.env-vars = [
{ key = "UV_PRERELEASE", value = "allow", if = ["pre"] },
] |
Just starting with hatch. Love it, thank you so much!
Apologies if I've missed this feature somewhere: I'm looking for a flag that would allow me to install pre-release and development versions in a hatch environment (i.e. with
pip install --pre
; akin topip_pre
in tox). I looked through the docs, source code, and issues and didn't find anything yet.(The motivation is that, as a part of CI, I'd like to run my tests with pre-releases)
thanks!!
The text was updated successfully, but these errors were encountered: