Skip to content

Commit ddcb3c5

Browse files
Merge branch 'main' into wrap-grdsample
2 parents 9636ac1 + 31980e8 commit ddcb3c5

20 files changed

+375
-119
lines changed

.github/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
########################################################################################
33
# Comment to be posted to on first time issues
44
newIssueWelcomeComment: |
5-
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/master/CONTRIBUTING.md) and [code of conduct](https://github.com/GenericMappingTools/pygmt/blob/master/CODE_OF_CONDUCT.md).
5+
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md) and [code of conduct](https://github.com/GenericMappingTools/pygmt/blob/main/CODE_OF_CONDUCT.md).
66
77
# Comment to be posted to on PRs from first time contributors in your repository
88
newPRWelcomeComment: |
99
💖 Thanks for opening this pull request! 💖
1010
11-
Please make sure you read our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/master/CONTRIBUTING.md) and abide by our [code of conduct](https://github.com/GenericMappingTools/pygmt/blob/master/CODE_OF_CONDUCT.md).
11+
Please make sure you read our [contributing guidelines](https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md) and abide by our [code of conduct](https://github.com/GenericMappingTools/pygmt/blob/main/CODE_OF_CONDUCT.md).
1212
1313
A few things to keep in mind:
1414

.github/workflows/ci_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Docs
44

55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ main ]
88
pull_request:
99
types: [opened, reopened, synchronize, ready_for_review]
1010
paths-ignore:
@@ -76,7 +76,7 @@ jobs:
7676

7777
# Download cached remote files (artifacts) from GitHub
7878
- name: Download remote data from GitHub
79-
uses: dawidd6/action-download-artifact@v2.14.0
79+
uses: dawidd6/action-download-artifact@v2.14.1
8080
with:
8181
workflow: cache_data.yaml
8282
workflow_conclusion: success
@@ -114,7 +114,7 @@ jobs:
114114

115115
- name: Push the built HTML to gh-pages
116116
run: |
117-
# Detect if this is a release or from the master branch
117+
# Detect if this is a release or from the main branch
118118
if [[ "${GITHUB_EVENT_NAME}" == "release" ]]; then
119119
# Get the tag name without the "refs/tags/" part
120120
version="${GITHUB_REF#refs/*/}"

.github/workflows/ci_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Tests
44

55
on:
66
push:
7-
branches: [ master ]
7+
branches: [ main ]
88
pull_request:
99
types: [opened, reopened, synchronize, ready_for_review]
1010
paths-ignore:
@@ -102,7 +102,7 @@ jobs:
102102

103103
# Download cached remote files (artifacts) from GitHub
104104
- name: Download remote data from GitHub
105-
uses: dawidd6/action-download-artifact@v2.14.0
105+
uses: dawidd6/action-download-artifact@v2.14.1
106106
with:
107107
workflow: cache_data.yaml
108108
workflow_conclusion: success

.github/workflows/ci_tests_dev.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: GMT Dev Tests
44

55
on:
66
# push:
7-
# branches: [ master ]
7+
# branches: [ main ]
88
pull_request:
99
types: [ready_for_review]
1010
paths-ignore:
@@ -23,7 +23,7 @@ on:
2323
- cron: '0 0 * * *'
2424

2525
jobs:
26-
test_gmt_master:
26+
test_gmt_dev:
2727
name: ${{ matrix.os }} - GMT ${{ matrix.gmt_git_ref }}
2828
runs-on: ${{ matrix.os }}
2929
strategy:
@@ -86,7 +86,8 @@ jobs:
8686
conda install ninja cmake libblas libcblas liblapack fftw gdal geopandas \
8787
ghostscript libnetcdf hdf5 zlib curl pcre make dvc
8888
pip install --pre numpy pandas xarray netCDF4 packaging \
89-
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery
89+
ipython pytest-cov pytest-mpl pytest>=6.0 sphinx-gallery \
90+
tomli
9091
9192
# Build and install latest GMT from GitHub
9293
- name: Install GMT ${{ matrix.gmt_git_ref }} branch (Linux/macOS)
@@ -102,7 +103,7 @@ jobs:
102103

103104
# Download cached remote files (artifacts) from GitHub
104105
- name: Download remote data from GitHub
105-
uses: dawidd6/action-download-artifact@v2.14.0
106+
uses: dawidd6/action-download-artifact@v2.14.1
106107
with:
107108
workflow: cache_data.yaml
108109
workflow_conclusion: success

.github/workflows/dvc-diff.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: |
4545
echo -e "## Summary of changed images\n" > report.md
4646
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md
47-
dvc diff --show-md master HEAD >> report.md
47+
dvc diff --show-md main HEAD >> report.md
4848
4949
# Get just the filename of the added and modified image from the report
5050
awk 'NF==5 && NR>=7 && $2=="added" {print $4}' report.md > added_files.txt
@@ -68,8 +68,8 @@ jobs:
6868
cml-publish --title $line --md "$line" >> modified_images_new.md < /dev/null
6969
done < modified_files.txt
7070
71-
# Pull images in the master branch from cloud storage
72-
git checkout master
71+
# Pull images in the main branch from cloud storage
72+
git checkout main
7373
dvc pull --remote upstream
7474
# Upload old images
7575
while IFS= read -r line; do

.github/workflows/publish-to-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
name: Publish to PyPI
44

5-
# Only run for pushes to the master branch and releases.
5+
# Only run for pushes to the main branch and releases.
66
on:
77
push:
88
branches:
9-
- master
9+
- main
1010
release:
1111
types:
1212
- published
1313
# Runs for pull requests should be disabled other than for testing purposes
1414
#pull_request:
1515
# branches:
16-
# - master
16+
# - main
1717

1818
jobs:
1919
publish-pypi:

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on:
44
push:
55
# branches to consider in the event; optional, defaults to all
66
branches:
7-
- master
7+
- main
88

99
jobs:
1010
update_release_draft:
1111
runs-on: ubuntu-latest
1212
steps:
13-
# Drafts your next Release notes as Pull Requests are merged into "master"
13+
# Drafts your next Release notes as Pull Requests are merged into "main"
1414
- uses: release-drafter/release-drafter@v5.15.0
1515
with:
1616
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml

.github/workflows/style_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Style Checks
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66
pull_request:
77
# Schedule daily tests
88
schedule:

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ The following people have contributed code and/or documentation to the project
2020
* [Tyler Newton](http://www.tnewton.com/) | [0000-0002-1560-6553](https://orcid.org/0000-0002-1560-6553) | University of Oregon
2121
* [Wei Ji Leong](https://github.com/weiji14) | [0000-0003-2354-1988](https://orcid.org/0000-0003-2354-1988) | Victoria University of Wellington
2222
* [William Schlitzer](https://github.com/willschlitzer) | [0000-0002-5843-2282](https://orcid.org/0000-0002-5843-2282) | Unaffiliated
23+
* [Yohai Magen](https://github.com/yohaimagen) | [0000-0002-4892-4013](https://orcid.org/0000-0002-4892-4013) | Tel Aviv University

README.rst

Lines changed: 71 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PyGMT
1616
.. image:: https://github.com/GenericMappingTools/pygmt/workflows/GMT%20Dev%20Tests/badge.svg
1717
:alt: GitHub Actions GMT Dev Tests status
1818
:target: https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml
19-
.. image:: https://img.shields.io/codecov/c/github/GenericMappingTools/pygmt/master.svg?style=flat-square
19+
.. image:: https://img.shields.io/codecov/c/github/GenericMappingTools/pygmt/main.svg?style=flat-square
2020
:alt: Test coverage status
2121
:target: https://codecov.io/gh/GenericMappingTools/pygmt
2222
.. image:: https://img.shields.io/pypi/pyversions/pygmt.svg?style=flat-square
@@ -110,14 +110,14 @@ Code of conduct
110110
+++++++++++++++
111111

112112
Please note that this project is released with a `Contributor Code of Conduct
113-
<https://github.com/GenericMappingTools/pygmt/blob/master/CODE_OF_CONDUCT.md>`__.
113+
<https://github.com/GenericMappingTools/pygmt/blob/main/CODE_OF_CONDUCT.md>`__.
114114
By participating in this project you agree to abide by its terms.
115115

116116
Contributing Guidelines
117117
+++++++++++++++++++++++
118118

119119
Please read our `Contributing Guide
120-
<https://github.com/GenericMappingTools/pygmt/blob/master/CONTRIBUTING.md>`__ to
120+
<https://github.com/GenericMappingTools/pygmt/blob/main/CONTRIBUTING.md>`__ to
121121
see how you can help and give feedback.
122122

123123
Imposter syndrome disclaimer
@@ -148,13 +148,13 @@ Citing PyGMT
148148
------------
149149

150150
PyGMT is a community developed project. See the
151-
`AUTHORS.md <https://github.com/GenericMappingTools/pygmt/blob/master/AUTHORS.md>`__
151+
`AUTHORS.md <https://github.com/GenericMappingTools/pygmt/blob/main/AUTHORS.md>`__
152152
file on GitHub for a list of the people involved and a definition of the term "PyGMT
153153
Developers". Feel free to cite our work in your research using the following BibTeX:
154154

155155
.. code-block::
156156
157-
@software{pygmt_2021_4978645,
157+
@software{pygmt_2021_5162003,
158158
author = {Uieda, Leonardo and
159159
Tian, Dongdong and
160160
Leong, Wei Ji and
@@ -167,14 +167,15 @@ Developers". Feel free to cite our work in your research using the following Bib
167167
Newton, Tyler and
168168
Anant, Abhishek and
169169
Ziebarth, Malte and
170+
Magen, Yohai and
170171
Wessel, Paul},
171172
title = {{PyGMT: A Python interface for the Generic Mapping Tools}},
172-
month = jun,
173+
month = aug,
173174
year = 2021,
174175
publisher = {Zenodo},
175-
version = {v0.4.0},
176-
doi = {10.5281/zenodo.4978645},
177-
url = {https://doi.org/10.5281/zenodo.4978645}
176+
version = {v0.4.1},
177+
doi = {10.5281/zenodo.5162003},
178+
url = {https://doi.org/10.5281/zenodo.5162003}
178179
}
179180
180181
To cite a specific version of PyGMT, go to our Zenodo page at
@@ -190,7 +191,7 @@ License
190191

191192
PyGMT is free software: you can redistribute it and/or modify it under the terms of
192193
the **BSD 3-clause License**. A copy of this license is provided in
193-
`LICENSE.txt <https://github.com/GenericMappingTools/pygmt/blob/master/LICENSE.txt>`__.
194+
`LICENSE.txt <https://github.com/GenericMappingTools/pygmt/blob/main/LICENSE.txt>`__.
194195

195196

196197
Support
@@ -215,31 +216,63 @@ Other Python wrappers for GMT:
215216
* `PyGMT <https://github.com/glimmer-cism/PyGMT>`__ by `Magnus Hagdorn <https://github.com/mhagdorn>`__
216217

217218

218-
Documentation for other versions
219-
--------------------------------
220-
221-
* `Development <https://www.pygmt.org/dev>`__ (reflects the *master* branch on
222-
GitHub)
223-
* `Latest release <https://www.pygmt.org/latest>`__
224-
* `v0.4.0 <https://www.pygmt.org/v0.4.0>`__
225-
* `v0.3.1 <https://www.pygmt.org/v0.3.1>`__
226-
* `v0.3.0 <https://www.pygmt.org/v0.3.0>`__
227-
* `v0.2.1 <https://www.pygmt.org/v0.2.1>`__
228-
* `v0.2.0 <https://www.pygmt.org/v0.2.0>`__
229-
* `v0.1.2 <https://www.pygmt.org/v0.1.2>`__
230-
* `v0.1.1 <https://www.pygmt.org/v0.1.1>`__
231-
* `v0.1.0 <https://www.pygmt.org/v0.1.0>`__
232-
* `v0.0.1a0 <https://www.pygmt.org/0.0.1a0>`__
233-
234-
Compatibility with GMT and Python/NumPy versions
235-
------------------------------------------------
236-
237-
======= ========== ========= =========
238-
PyGMT GMT Python NumPy
239-
======= ========== ========= =========
240-
0.4.x >=6.2.0 >=3.7 >=1.17.0
241-
0.3.x >=6.1.1 >=3.7
242-
0.2.1 >=6.1.1 >=3.6
243-
0.2.0 >=6.1.1 3.6 - 3.8
244-
0.1.x >=6.0.0 3.6 - 3.8
245-
======= ========== ========= =========
219+
Compatibility with GMT/Python/NumPy versions
220+
--------------------------------------------
221+
222+
.. list-table::
223+
:widths: 25 30 15 20 15
224+
:header-rows: 1
225+
226+
* - PyGMT Version
227+
- Documentation
228+
- GMT
229+
- Python
230+
- Numpy
231+
* - `v0.4.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.1>`_ (latest release)
232+
- `v0.4.1 Documentation <https://www.pygmt.org/v0.4.1>`_
233+
- >=6.2.0
234+
- >=3.7
235+
- >=1.17.0
236+
* - `v0.4.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.0>`_
237+
- `v0.4.0 Documentation <https://www.pygmt.org/v0.4.0>`_
238+
- >=6.2.0
239+
- >=3.7
240+
- >=1.17.0
241+
* - `v0.3.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.1>`_
242+
- `v0.3.1 Documentation <https://www.pygmt.org/v0.3.1>`_
243+
- >=6.1.1
244+
- >=3.7
245+
-
246+
* - `v0.3.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.0>`_
247+
- `v0.3.0 Documentation <https://www.pygmt.org/v0.3.0>`_
248+
- >=6.1.1
249+
- >=3.7
250+
-
251+
* - `v0.2.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.1>`_
252+
- `v0.2.1 Documentation <https://www.pygmt.org/v0.2.1>`_
253+
- >=6.1.1
254+
- >=3.6
255+
-
256+
* - `v0.2.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.0>`_
257+
- `v0.2.0 Documentation <https://www.pygmt.org/v0.2.0>`_
258+
- >=6.1.1
259+
- 3.6 - 3.8
260+
-
261+
* - `v0.1.2 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.2>`_
262+
- `v0.1.2 Documentation <https://www.pygmt.org/v0.1.2>`_
263+
- >=6.0.0
264+
- 3.6 - 3.8
265+
-
266+
* - `v0.1.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.1>`_
267+
- `v0.1.1 Documentation <https://www.pygmt.org/v0.1.1>`_
268+
- >=6.0.0
269+
- 3.6 - 3.8
270+
-
271+
* - `v0.1.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.0>`_
272+
- `v0.1.0 Documentation <https://www.pygmt.org/v0.1.0>`_
273+
- >=6.0.0
274+
- 3.6 - 3.8
275+
-
276+
277+
The unstable development documentation, which reflects the `main branch <https://github.com/GenericMappingTools/pygmt>`_
278+
on GitHub, can be found at https://www.pygmt.org/dev/.

0 commit comments

Comments
 (0)