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

Add support for python 3.12 #1641

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Add support for python 3.12 #1641

merged 1 commit into from
Sep 11, 2023

Conversation

braingram
Copy link
Contributor

@braingram braingram commented Sep 8, 2023

Testing (by cleaning up out test dependencies that don't yet support python 3.12) revealed only 1 required change to allow asdf to support python 3.12, removal of one use of utcfromtimestamp:

asdf/asdf/asdf.py

Lines 1339 to 1341 in cee306e

time_ = datetime.datetime.utcfromtimestamp(
int(os.environ.get("SOURCE_DATE_EPOCH", time.time())),
)

The tests can be found here: #1633

This change was broken out into this PR to make backporting easier. Python 3.12 will be released 2023-10-02 and we may want to consider releasing a 2.15.2 that includes the change in this PR even if we release 3.0 before that time (so users that can't yet update to 3.0 have an option to run 3.12).

Updating the CI to test python 3.12 would ideally be included in this PR but given the lack of released 3.12 support for some test dependencies (astropy) and the changes required to work around these limitations (see #1633) I propose that we separate this change from the dependency cleanup and rely on the tests in #1633 to show expected python 3.12 compatibility once all the dependencies are updated.

@braingram braingram force-pushed the py312 branch 3 times, most recently from 3258c19 to 7cd4dc8 Compare September 8, 2023 19:34
@braingram braingram marked this pull request as ready for review September 8, 2023 19:34
@braingram braingram requested a review from a team as a code owner September 8, 2023 19:34
Copy link
Contributor

@eslavich eslavich left a comment

Choose a reason for hiding this comment

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

🎉

@braingram braingram merged commit b14591c into asdf-format:main Sep 11, 2023
29 checks passed
@braingram braingram deleted the py312 branch September 11, 2023 13:07
braingram added a commit to braingram/asdf that referenced this pull request Sep 11, 2023
This was referenced Sep 11, 2023
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.

2 participants