Skip to content
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

run environment with specific python patch-release version #1683

Open
15r10nk opened this issue Aug 18, 2024 · 1 comment
Open

run environment with specific python patch-release version #1683

15r10nk opened this issue Aug 18, 2024 · 1 comment

Comments

@15r10nk
Copy link

15r10nk commented Aug 18, 2024

Hi, thank you for writing hatch. I really like it a lot.

I have sometimes issues where my library has problems if it is used with a specific python version like 3.12.5.
Is possible to specify a specific patch-release to be used for hatch test?

It would also be useful to specify different versions in a matrix like this:

[[tool.hatch.envs.test.matrix]]
python = ["3.12.0", "3.12.1"]

I tried also to install a specific python version but it didn't worked.

> hatch python install 3.12.3
Unknown distributions: 3.12.3
@ofek
Copy link
Collaborator

ofek commented Aug 18, 2024

Automatic installation of patch releases is not possible, but will be eventually. What you can do right now however is manually install what you want and ensure that it is on PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants