-
Notifications
You must be signed in to change notification settings - Fork 114
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
Drop support for Python 3.7 #210
Conversation
a02cb0f
to
1d95cb2
Compare
Codecov upload failed... dunno if it's a fluke |
@@ -1,3 +1,5 @@ | |||
from __future__ import annotations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise in Python 3.8 you get pytensor/link/numba/dispatch/elemwise_codegen.py:72: error: "list" is not subscriptable, use "typing.List" instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay either way, but that's why I changed it to run pre-commit in all supported versions. We missed this issue because it was running only in 3.9
Should we maybe add |
Yup. Mind opening an issue / PR, or do you think it should be done here? |
Yeah no worries, I can create a separate PR, once this one is merged. |
@@ -50,11 +50,14 @@ jobs: | |||
needs: changes | |||
runs-on: ubuntu-latest | |||
if: ${{ needs.changes.outputs.changes == 'true' }} | |||
strategy: | |||
matrix: | |||
python-version: ["3.8", "3.9", "3.10"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conda-forge builds for 3.11 so we should probably be testing it upstream here.
python-version: ["3.8", "3.9", "3.10"] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] |
Would it make sense (for energy/environment) to drop tests for 3.9 and 3.10 since they're in the middle, and most failures will occur in the extreme versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK numba is not yet available on 3.11 but that should not stop us.
Looking forward to all these speed ups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's another PR for 3.11: #198.
We could test support for it but would need to tweak jobs so that they run all tests (at least once), except for the numba ones.
Pushes there are welcome
@@ -34,7 +34,6 @@ classifiers = [ | |||
"Operating System :: Unix", | |||
"Operating System :: MacOS", | |||
"Programming Language :: Python :: 3", | |||
"Programming Language :: Python :: 3.7", | |||
"Programming Language :: Python :: 3.8", | |||
"Programming Language :: Python :: 3.9", | |||
"Programming Language :: Python :: 3.10", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why the diff looks weird, I'm just adding a line for 3.11:
"Programming Language :: Python :: 3.10", | |
"Programming Language :: Python :: 3.10", | |
"Programming Language :: Python :: 3.11", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In light of #210 (comment), LGTM
In addition:
Closes #76