-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Python versions in matrix are ignored #738
Comments
Are you using pyenv? |
Yes, I am. Sorry, forgot to include it in the issue: $ pyenv versions
system
* 3.8.10 (set by /Users/bobronium/.pyenv/version)
3.8.13
* 3.9.12 (set by /Users/bobronium/.pyenv/version)
* 3.10.1 (set by /Users/bobronium/.pyenv/version)
* 3.11.0b3 (set by /Users/bobronium/.pyenv/version) $ pyenv global
3.10.1
3.11.0b3
3.9.12
3.8.10 |
When using venv (in WSL) this works as expected: [tool.hatch.envs.default.scripts]
version = "python --version"
cov = "pytest --cov-report=term --cov-config=pyproject.toml"
no-cov = "cov --no-cov {args}"
[[tool.hatch.envs.test.matrix]]
python = [ "38", "39", "310", "311"]
|
Fixed by #1002 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not completely sure if it doesn't work, or I'm doing something wrong.
It looks like hatch creates only one venv for the matrix and using whatever python version was found first.
Configuring env like that:
Gives me this
Expected behaviour:
Each env has its own python executable corresponding to the version specified in the matrix, if such version is not found, env is not created and error is emmited.
The text was updated successfully, but these errors were encountered: