Skip to content

Bump Supported Python versions up to 3.12#1428

Closed
marcharper wants to merge 5 commits into
devfrom
marcharper-patch-2
Closed

Bump Supported Python versions up to 3.12#1428
marcharper wants to merge 5 commits into
devfrom
marcharper-patch-2

Conversation

@marcharper

@marcharper marcharper commented Oct 17, 2023

Copy link
Copy Markdown
Member

Python 3.12 doesn't seem to be available yet in CI, will re-run tests later.

Update: some packages like distutils are no longer available in Python 3.12 so I had a make a few small changes. In one case we had a check for matplotlib versions below 2, but we're already requiring 3+, so there's no change in functionality.

@marcharper marcharper changed the title Update config.yml to Python 3.12 Bump Supported Python versions up to 3.12 Oct 17, 2023
@drvinceknight

Copy link
Copy Markdown
Member

Looks like this isn't passing because of some downstream libraries that aren't on 3.12 yet? I tried restarting the tests just now and it didn't make much difference.

@marcharper marcharper force-pushed the marcharper-patch-2 branch from d93f4c0 to c2da143 Compare March 8, 2024 02:17
@marcharper marcharper force-pushed the marcharper-patch-2 branch from 8a35b30 to 515b918 Compare March 8, 2024 02:48
@drvinceknight

Copy link
Copy Markdown
Member

@marcharper I've opened #1435 with a PR to your branch that I think cleans up the doctests.

The tests were failing on ubuntu
https://github.com/Axelrod-Python/Axelrod/actions/runs/8198844499/job/22423011180?pr=1428

This was caused by some rounding error.

I think this cleans things up.
@marcharper

marcharper commented Mar 8, 2024

Copy link
Copy Markdown
Member Author

setuptools is deprecated and removed in Python 3.12, so we have to either use a third party version or change how we do packaging :/

This link is helpful: https://gregoryszorc.com/blog/2023/10/30/my-user-experience-porting-off-setup.py/

IIUC we need to migrate from setup.py to pyproject.toml. But there are some choices that need to be made (e.g. build tool, setuptools is still an option).

Some options here: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/

@marcharper

Copy link
Copy Markdown
Member Author

I pulled out the commits after the first into #1436 so we can merge those. I'll rebase the first commit onto a python-3.12 branch and we can figure out the packaging issues there.

@marcharper

Copy link
Copy Markdown
Member Author

Closing, let's discuss at #1437

@marcharper marcharper closed this Mar 8, 2024
@marcharper marcharper deleted the marcharper-patch-2 branch June 1, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants