Closed ricardoV94 closed 6 months ago
Did you miss the
python_requires
line insetup.py
?There is also
python_version
inmypy.ini
andtool.ruff.target-version
inpyproject.toml
but this will makepre-commit
unhappy so I am happy to clean these up in another PR
Thanks, updated it.
@Armavica do you want to update the mypy / pre-commit version? Feel free to push to this branch
Seems like something is broken :D
Yes, I don't really understand what⦠I tried a few of the tests that fail here and they work on my machine, and I don't really understand this mamba error on pre-commit either
Are you running with the newer Pytensor?
Are you running with the newer Pytensor?
Ok I can reproduce now :man_facepalming:
I'll try and fix next week, probably my fault anyway :)
We should switch to setup-micromamba. I did that recently but I forget where.
here probably? https://github.com/pymc-devs/pymc/pull/7213
Ah ya, thanks! That's the one!
Tests are passing now, except mypy installation failing.
@maresb what should we do, re-release PyTensor and combine this PR with #7213 ?
This is the error:
LibMambaUnsatisfiableError: Encountered problems while solving:
- package pytensor-2.20.0-py310hc6cd4ac_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
ββ pytensor >=2.20,<2.21 is installable with the potential options
β ββ pytensor 2.20.0 would require
β β ββ python >=3.10,<3.11.0a0 , which can be installed;
β β ββ python_abi 3.10.* *_cp310, which can be installed;
β ββ pytensor 2.20.0 would require
β β ββ python >=3.11,<3.12.0a0 , which can be installed;
β β ββ python_abi 3.11.* *_cp311, which can be installed;
β ββ pytensor 2.20.0 would require
β ββ python_abi 3.12.* *_cp312, which can be installed;
ββ python 3.9** is not installable because there are no viable options
ββ python [3.9.0|3.9.1|...|3.9.7] conflicts with any installable versions previously reported;
ββ python [3.9.0|3.9.1|...|3.9.9] would require
ββ python_abi 3.9.* *_cp39, which conflicts with any installable versions previously reported.
LibMambaUnsatisfiableError: Encountered problems while solving:
- package pytensor-2.20.0-py310hc6cd4ac_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed
Could not solve for environment specs
The following packages are incompatible
ββ pytensor >=2.20,<2.21 is installable with the potential options
β ββ pytensor 2.20.0 would require
β β ββ python >=3.10,<3.11.0a0 , which can be installed;
β β ββ python_abi 3.10.* *_cp310, which can be installed;
β ββ pytensor 2.20.0 would require
β β ββ python >=3.11,<3.12.0a0 , which can be installed;
β β ββ python_abi 3.11.* *_cp311, which can be installed;
β ββ pytensor 2.20.0 would require
β ββ python_abi 3.12.* *_cp312, which can be installed;
ββ python 3.9** is not installable because there are no viable options
ββ python [3.9.0|3.9.1|...|3.9.7] conflicts with any installable versions previously reported;
ββ python [3.9.0|3.9.1|...|3.9.9] would require
ββ python_abi 3.9.* *_cp39, which conflicts with any installable versions previously reported.
What is restricted to 3.9?
Ah I think we just need to tweak the python version in the pre-commit workflow
Tests are passing
Description
Related Issue
Checklist
Type of change
π Documentation preview π: https://pymc--7227.org.readthedocs.build/en/7227/