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

python 3.13 support #968

Merged
merged 7 commits into from
Oct 25, 2024
Merged

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Oct 23, 2024

This PR is to test python 3.13 support and eventually make phoebe compatible.

Before merge:

  • decide which version of python we want kept in the test matrix (currently only testing 3.13 to see what other errors arise).

Closes #967

@kecnry kecnry linked an issue Oct 23, 2024 that may be closed by this pull request
@kecnry kecnry changed the title TST: python 3.13 support python 3.13 support Oct 23, 2024
@kecnry kecnry requested a review from aprsa October 23, 2024 14:47
@kecnry kecnry marked this pull request as ready for review October 23, 2024 14:47
@kecnry

This comment was marked as resolved.

@@ -12024,7 +12024,8 @@ def _value(var, string_safe_arrays=False, use_distribution=None, needs_builtin=F
# to do from builtin import * (and even if I did, python
# yells at me for doing that), so instead we'll add them
# to the locals dictionary.
locals()[func] = getattr(builtin, func)
# See https://peps.python.org/pep-0667/
sys._getframe().f_locals[func] = getattr(builtin, func)
Copy link
Contributor

@aprsa aprsa Oct 25, 2024

Choose a reason for hiding this comment

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

do you know perhaps what is the earliest version of python for which this will work?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, but it passes on the full CI matrix (3.8+).

* when actually releasing, we should consider which python version we want covered for tests, for now I'm limiting to only 3.13, but we don't want to merge this way
* no longer tested on GH, past end of life
* will drop 3.8 once GH runner is no longer available, technically past end of life
@kecnry kecnry merged commit 7082036 into phoebe-project:bugfix-2.4.16 Oct 25, 2024
28 checks passed
@kecnry kecnry deleted the py313-compat branch October 25, 2024 19:28
@kecnry kecnry mentioned this pull request Oct 25, 2024
kecnry added a commit that referenced this pull request Oct 25, 2024
* Fix handling of floating-point precision near the aligned case that used to result in error from libphoebe. [#965]
* Updates to phoebe-server to be compatible with modern browser requirements. [#959]
* Fix support for python 3.13, remove official support for python 3.7. [#968]

---------

Co-authored-by: Martin Horvat <[email protected]>
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.

python 3.13 support
2 participants