-
Notifications
You must be signed in to change notification settings - Fork 216
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 #2711
Changes from 9 commits
fc5c445
6bded07
caa65d3
534bc30
654e8be
5c0d900
a22dfd5
d1b01c3
a048c86
90a3a49
486c37a
99fdbf8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.11 | ||
python=3.12 | ||
gmt=6.4.0 | ||
numpy | ||
pandas | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ jobs: | |
- conda-forge | ||
- nodefaults | ||
create-args: >- | ||
python=3.11 | ||
python=3.12 | ||
gmt=6.4.0 | ||
numpy | ||
pandas | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ def test_load_libgmt_fails(monkeypatch): | |
be found. | ||
""" | ||
with monkeypatch.context() as mpatch: | ||
mpatch.setattr(sys, "platform", "win32") # pretend to be on Windows | ||
mpatch.setattr(sys, "platform", "darwin") # pretend to be on macOS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, this workaround I applied in a048c86 doesn't actually work on macOS... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Ok, trying out Option 1 in 99fdbf8. Edit: Yep, it worked! |
||
mpatch.setattr( | ||
subprocess, "check_output", lambda cmd, encoding: "libfakegmt.so" | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GMT Dev Tests failing because
pygit2
doesn't have Python 3.12 wheels, and building from source fails at https://github.com/GenericMappingTools/pygmt/actions/runs/6648200102/job/18064869372#step:7:570:Might need to wait for libgit2/pygit2#1240.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than waiting for
pygit2
to release Python 3.12 wheels, we could also keep the GMT Dev Tests on Python 3.11 for now?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like
pygit2
has Python 3.12 wheels now - https://pypi.org/project/pygit2/1.13.2/#files