Skip to content

Bump minimum Python to 3.10#15603

Merged
pllim merged 6 commits intoastropy:mainfrom
nstarman:bump-py-310
Mar 8, 2024
Merged

Bump minimum Python to 3.10#15603
pllim merged 6 commits intoastropy:mainfrom
nstarman:bump-py-310

Conversation

@nstarman
Copy link
Member

@nstarman nstarman commented Nov 11, 2023

v6.1 will be py3.10+.

  • By checking this box, the PR author has requested that maintainers do NOT use the "Squash and Merge" button. Maintainers should respect this when possible; however, the final decision is at the discretion of the maintainer that merges the PR.

@nstarman nstarman added this to the v6.1 milestone Nov 11, 2023
@nstarman nstarman added whatsnew-needed Extra CI Run cron CI as part of PR labels Nov 11, 2023
@nstarman nstarman force-pushed the bump-py-310 branch 3 times, most recently from 3759be6 to bb72973 Compare November 11, 2023 16:46
@nstarman
Copy link
Member Author

nstarman commented Nov 11, 2023

I bumped SciPy to 1.6, but looking at PyPI, SciPy v1.7.2 is the minimum version officially supporting py3.10 (https://pypi.org/project/scipy/1.7.2/). I guess we need to bump to SciPy v1.7.2?

Edit: numpy 1.23+ means we actually need SciPy 1.8+

@nstarman nstarman force-pushed the bump-py-310 branch 2 times, most recently from b25e30c to eb2ae71 Compare November 11, 2023 23:07
@dhomeier dhomeier changed the title Bump Python to 3.10 Bump minimum Python to 3.10 Nov 13, 2023
@nstarman nstarman force-pushed the bump-py-310 branch 2 times, most recently from e475d9e to 3327c31 Compare November 25, 2023 19:50
@nstarman
Copy link
Member Author

nstarman commented Nov 25, 2023

  • Documentation link check is failing because Astropy v6.0 isn't out yet but the docs have a link referencing v6.0
  • Tests "Python 3.12 with dev version of key dependencies" are numpy issues and I think unrelated to this PR.
  • Image test failures are real because the images need to be regenerated.

@pllim, I don't think I have the permissions to address the last point.

@eerovaher
Copy link
Member

If it is possible to update the minimum required numpy and scipy versions without having to update the reference images then it would be a good idea to open a separate pull request for that.

@nstarman nstarman mentioned this pull request Dec 10, 2023
1 task
@nstarman nstarman force-pushed the bump-py-310 branch 3 times, most recently from 38334be to 186d842 Compare December 15, 2023 16:16
@nstarman nstarman mentioned this pull request Dec 15, 2023
1 task
@saimn
Copy link
Contributor

saimn commented Dec 18, 2023

3.10 is supposed to be supported until April, so if we want to have the option to release a minor version before that (e.g. for Numpy 2.0 in February) this PR should wait.

nstarman and others added 5 commits February 27, 2024 14:05
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
With manual fixes for ruff-identified non-autofixable issues.

Co-authored-by: Clément Robert <cr52@protonmail.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Copy link
Member

@pllim pllim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the clean-up but I won't merge yet to give other maintainers a chance to review. Though if you don't hear back from anyone else, we should get this in sooner than later to give downstream a chance to test this via nightly wheel.

Please ping me next week if no one else approves.

Thanks!

@pllim
Copy link
Member

pllim commented Feb 27, 2024

p.s. Auto merge won't work because the branch protection rules need updating but I cannot do that until after merge. I can override the protection when we have enough approvals.

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks! Good as is, but if you address the second comment, might as well do the first too.

distribution::

conda create --name apy-1761 python=3.9 # replace 3.9 with desired version
conda create --name apy-1761 python=3.10 # replace 3.10 with desired version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there are any other changes requested, might as well change this to 3.12 so we don't have to repeat it for a while...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


.. doctest-skip::

>>> T.Union[Quantity[u.m], None]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to change this one to Quantity[u.m] | None too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@eerovaher eerovaher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just one small remark.

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
Copy link
Member

@eerovaher eerovaher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch here looks good to me. The commit history is a bit messy, but that could be fixed by squashing.

@nstarman
Copy link
Member Author

nstarman commented Mar 8, 2024

Please ping me next week if no one else approves.

@pllim.

@pllim
Copy link
Member

pllim commented Mar 8, 2024

Yup yup... 😬

@pllim pllim merged commit 06f9f34 into astropy:main Mar 8, 2024
@pllim

This comment was marked as resolved.

@pllim
Copy link
Member

pllim commented Mar 8, 2024

Branch protection rules updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Extra CI Run cron CI as part of PR whatsnew-needed zzz 💤 Python3.10 archived: Python 3.10 is no longer supported

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants