Repository navigation
DEP: drop support for Python 3.11, require 3.12+ - #20223
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
46db999 to
fa7a591
Compare
|
(from cycler via matplotlib) edit: resolved by constraining |
2582b4c to
b504b8f
Compare
|
Still hitting this error, and still getting six==1.9.0 despite the constraint. I'm suspecting a cache invalidation issue with tox, tox-uv, or OpenAstronomy/github-actions-workflows, but nothing conclusive yet. |
|
The cached This looks like something is broken in |
9b772ee to
ee22592
Compare
|
Nevermind, my constraint just contained a typo. The fix was diff --git a/pyproject.toml b/pyproject.toml
index 7436fe9f2d..c3bfa6efb6 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -829,7 +829,7 @@ required-environments = [
constraint-dependencies = [
"asdf>=2.15.1",
"asdf-coordinates-schemas>=0.2.0",
- "six>=0.16.0", # for Python 3.12+ compat
+ "six>=1.16.0", # for Python 3.12+ compat
# via pytest
# iniconfig 1.0.1 is the first version with proper wheels |
ee22592 to
3cb8083
Compare
99d2d24 to
44e4a9d
Compare
mhvk
left a comment
There was a problem hiding this comment.
Thanks so much! I had been considering doing it myself and now realize how much I would've missed... Two comments, neither of which is essential.
| } | ||
|
|
||
| Py_INCREF(Py_None); | ||
| return Py_None; |
There was a problem hiding this comment.
Could replace (here and below) with Py_RETURN_NONE - which I like in that the reference counting is just hidden (i.e., one does not have to know Py_None is immortal).
There was a problem hiding this comment.
good call. I'll push out a separate commit just in case and will squash it if everything stays green.
89e41ff to
afab778
Compare
This comment was marked as resolved.
This comment was marked as resolved.
a7d326a to
af1b444
Compare
e100f38 to
21543cc
Compare
|
|
||
| # pyupgrade (UP) | ||
| # temporarily delay upgrades to Python 3.12's PEP 695 typevars | ||
| # https://github.com/astropy/astropy/issues/20225 |
|
@mcara do you want to have a look at the WCS stuff? Thanks! |
21543cc to
0350746
Compare
pllim
left a comment
There was a problem hiding this comment.
LGTM now. Thanks!
I will let you decide when to merge after a final comment period.
|
How about next week ? I just remembered this merger needs coordination with an owner anyway so I think it's best if you can handle it :) |
|
For the record I have updated the branch protection rules, and am doing a final review of this PR. |
astrofrog
left a comment
There was a problem hiding this comment.
Looks good! A few small comments - once these are addressed I can approve and merge:
- Check the docs for any instances of
py311- I think e.g. the test guide might mention it - I think
codeql-analysis.ymlshould be updated to use Python 3.12 or later? - I think there are some references to Python 3.11 (check for "3.11") in
astropy/config/paths.py - Should we update the minimum Python version in the scripts in
scripts/?
| } | ||
|
|
||
| Py_INCREF(Py_None); | ||
| result = Py_None; |
There was a problem hiding this comment.
Should this also be removed and replaced with Py_RETURN_NONE?
There was a problem hiding this comment.
I don't feel confortable with this one; an early return would skip the exit block and leak a bunch of references
|
|
||
| # see https://github.com/astropy/astropy/issues/18292 | ||
| "array-api-strict<2.4 ; python_version<'3.12'", | ||
|
|
There was a problem hiding this comment.
not sure it's worth another round of CI so if that's the only request left I'll let you decide if you want to push it yourself
There was a problem hiding this comment.
There are also a few comments in the top-level review, would you rather do these in a follow-up?
There was a problem hiding this comment.
sorry I wrote this before I saw them. I should have addressed everything now
0350746 to
67c4eff
Compare
I don't see a need for it. Running these scripts with older python versions than supported by the package is still possible, even if unlikely to be needed. |
67c4eff to
a31fd21
Compare
Description
As discussed in
close #18229
close #20184
After merge