Skip to content

Add support for Python v3.13 and drop support for v3.9 #43

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

Merged
merged 13 commits into from
Oct 15, 2024
Merged

Conversation

pronovic
Copy link
Owner

@pronovic pronovic commented Oct 15, 2024

There are a few code changes.

  1. I can't find documentation for this, but Pylint says that collections.abc.Callable does not exist in Python 3.13. The only place we use this is in util.getFunctionReference(). I changed this to just use the Python 3 builtin callable() instead, which seems to work fine.

  2. Python 3.13 now enforces that absolute paths on Windows must start with \\, and / is no longer legal. To preserve the old behavior, I switched from using os.path.isabs() to (os.path.isabs() or posixpath.isabs()), which should give us consistent behavior on all platforms. I can't just use posixpath.isabs() because it doesn't treat real Windows paths as absolute. This is a fairly annoying change in Python's interface.

@pronovic pronovic merged commit aaef866 into master Oct 15, 2024
9 checks passed
@pronovic pronovic deleted the python-3.13 branch October 15, 2024 19:14
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.

1 participant