-
Notifications
You must be signed in to change notification settings - Fork 224
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.11 #2172
Conversation
Not sure why the mamba create --name pygmt python=3.11
mamba activate pygmt
mamba install gmt=6.4.0 numpy=1.23 pandas xarray netCDF4 packaging geopandas ipython build dvc make 'pytest>=6.0' pytest-cov pytest-doctestplus pytest-mpl sphinx-gallery which also crashed with no error 😅 I think there are some python 3.11 migrations still ongoing (see https://conda-forge.org/status/#python311), so maybe wait for a few more days. |
I figured out why no error messages were raised. It's because of these lines: pygmt/.github/workflows/ci_tests.yaml Line 95 in 6149c53
Should be using
so need to wait for |
Seems like Edit: May need to wait for |
Yay, so Edit: Actually, the solver worked after 27min 😮. Here's the error from https://github.com/GenericMappingTools/pygmt/actions/runs/3625294879/jobs/6113181492#step:5:26:
|
The |
Spoke too soon. We actually need Do you want to wait, or split this PR into 2 (as was done with Python 3.10) - one for the files that don't use |
I feel it makes more sense to wait, because we can't say that we support Python 3.11 without running the full tests (which requires dvc). |
@weiji14 great work getting all those package conflicts cleaned up! 🚀 🎉 |
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.
@weiji14 great work getting all those package conflicts cleaned up! rocket tada
Yes, finally! Those dvc
dependencies with hard upper pins were painful 🙂 We're at ~2months since Python 3.11 was released so not too bad, about the same as Python 3.10 last year in #1577. I'm hoping that Python 3.12 will be smoother since dvc
is noarch now 🙏
Description of proposed changes
Python 3.11 has been released on Oct. 24, 2022, changelog is at docs.python.org/3.11/whatsnew/3.11.html.
Previous PRs for Python 3.10 are #1591 and #1577.
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version