-
Notifications
You must be signed in to change notification settings - Fork 129
Drop support for Python 3.7 #210
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -12,7 +12,7 @@ name = "pytensor" | |||||||
dynamic = [ | ||||||||
'version' | ||||||||
] | ||||||||
requires-python = ">=3.7" | ||||||||
requires-python = ">=3.8" | ||||||||
authors = [ | ||||||||
{name = "pymc-devs", email = "pymc.devs@gmail.com"} | ||||||||
] | ||||||||
|
@@ -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 commentThe 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:
Suggested change
|
||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from __future__ import annotations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Otherwise in Python 3.8 you get There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
|
||
from typing import Any, List, Optional, Tuple | ||
|
||
import numba | ||
|
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.
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