Skip to content
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

Bump Supported Python versions up to 3.12 #1428

Closed
wants to merge 5 commits into from
Closed

Conversation

marcharper
Copy link
Member

@marcharper marcharper commented Oct 17, 2023

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
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.

@drvinceknight
Copy link
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
Copy link
Member Author

marcharper commented Mar 8, 2024

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
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
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