Skip to content

Commit a60e136

Browse files
yvonnefroehlichYvonne Fröhlichseisman
authored
Move compatibility table from README to separate file (#2862)
Co-authored-by: Yvonne Fröhlich <[email protected]> Co-authored-by: Dongdong Tian <[email protected]>
1 parent e90b987 commit a60e136

File tree

7 files changed

+135
-107
lines changed

7 files changed

+135
-107
lines changed

.github/ISSUE_TEMPLATE/bump_gmt_checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ using the following command:
3737
- [ ] Bump the minimum required GMT version (1 PR)
3838
- [ ] Update `required_version` in `pygmt/clib/session.py`
3939
- [ ] Update `test_get_default` in `pygmt/tests/test_clib.py`
40-
- [ ] Update compatibility table in `README.rst`
40+
- [ ] Update minimum required versions in `doc/minversions.rst`
4141
- [ ] Remove unsupported GMT version from `.github/workflows/ci_tests_legacy.yaml`
4242
- [ ] Remove [xfail](https://docs.pytest.org/en/stable/skipping.html#xfail-mark-test-functions-as-expected-to-fail) pytest markers on tests that are now xpass
4343
- [ ] Update deprecated syntax in source code and examples based on the [GMT Changelog](https://docs.generic-mapping-tools.org/latest/changes.html)

.github/ISSUE_TEMPLATE/release_checklist.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ assignees: ''
3131
- [ ] Update DOI (and url for BibTeX)
3232
- [ ] Update version
3333
- [ ] Update date released
34-
- [ ] Add the documentation link https://github.com/GenericMappingTools/pygmt#compatibility-with-gmtpythonnumpy-versions
35-
- [ ] Add compatibility information https://github.com/GenericMappingTools/pygmt#compatibility-with-gmtpythonnumpy-versions
34+
- [ ] Add the documentation link `doc/minversions.rst`
35+
- [ ] Add minimum required version information `doc/minversions.rst`
3636
- [ ] Copy draft changelog from Release Drafter and edit it to look nice ([see maintainers guide for details](https://www.pygmt.org/dev/maintenance.html#updating-the-changelog))
3737

3838
**Release**:

README.rst

Lines changed: 15 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PyGMT
4747
:alt: Contributor Code of Conduct
4848
:target: CODE_OF_CONDUCT.md
4949

50-
.. placeholder-for-doc-index
50+
.. doc-index-start-after
5151
5252
5353
Why PyGMT?
@@ -251,101 +251,18 @@ Other non-official Python wrappers for GMT (not maintained):
251251
* `pygmt <https://github.com/ian-r-rose/pygmt>`__ by `Ian Rose <https://github.com/ian-r-rose>`__
252252
* `PyGMT <https://github.com/glimmer-cism/PyGMT>`__ by `Magnus Hagdorn <https://github.com/mhagdorn>`__
253253

254+
.. doc-index-end-before
254255
255-
Compatibility with GMT/Python/NumPy versions
256-
--------------------------------------------
257-
258-
.. list-table::
259-
:widths: 25 30 15 20 15
260-
:header-rows: 1
261-
262-
* - PyGMT Version
263-
- Documentation
264-
- GMT
265-
- Python
266-
- NumPy
267-
* - `Dev <https://github.com/GenericMappingTools/pygmt/milestones>`_ (upcoming release)
268-
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
269-
- >=6.3.0
270-
- >=3.9
271-
- >=1.23
272-
* - `v0.10.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.10.0>`_ (latest release)
273-
- `v0.10.0 Documentation <https://www.pygmt.org/v0.10.0>`_
274-
- >=6.3.0
275-
- >=3.9
276-
- >=1.22
277-
* - `v0.9.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.9.0>`_
278-
- `v0.9.0 Documentation <https://www.pygmt.org/v0.9.0>`_
279-
- >=6.3.0
280-
- >=3.8
281-
- >=1.21
282-
* - `v0.8.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.8.0>`_
283-
- `v0.8.0 Documentation <https://www.pygmt.org/v0.8.0>`_
284-
- >=6.3.0
285-
- >=3.8
286-
- >=1.20
287-
* - `v0.7.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.7.0>`_
288-
- `v0.7.0 Documentation <https://www.pygmt.org/v0.7.0>`_
289-
- >=6.3.0
290-
- >=3.8
291-
- >=1.20
292-
* - `v0.6.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.6.1>`_
293-
- `v0.6.1 Documentation <https://www.pygmt.org/v0.6.1>`_
294-
- >=6.3.0
295-
- >=3.8
296-
- >=1.19
297-
* - `v0.6.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.6.0>`_
298-
- `v0.6.0 Documentation <https://www.pygmt.org/v0.6.0>`_
299-
- >=6.3.0
300-
- >=3.8
301-
- >=1.19
302-
* - `v0.5.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.5.0>`_
303-
- `v0.5.0 Documentation <https://www.pygmt.org/v0.5.0>`_
304-
- >=6.2.0
305-
- >=3.7
306-
- >=1.18
307-
* - `v0.4.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.1>`_
308-
- `v0.4.1 Documentation <https://www.pygmt.org/v0.4.1>`_
309-
- >=6.2.0
310-
- >=3.7
311-
- >=1.17
312-
* - `v0.4.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.0>`_
313-
- `v0.4.0 Documentation <https://www.pygmt.org/v0.4.0>`_
314-
- >=6.2.0
315-
- >=3.7
316-
- >=1.17
317-
* - `v0.3.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.1>`_
318-
- `v0.3.1 Documentation <https://www.pygmt.org/v0.3.1>`_
319-
- >=6.1.1
320-
- >=3.7
321-
-
322-
* - `v0.3.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.0>`_
323-
- `v0.3.0 Documentation <https://www.pygmt.org/v0.3.0>`_
324-
- >=6.1.1
325-
- >=3.7
326-
-
327-
* - `v0.2.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.1>`_
328-
- `v0.2.1 Documentation <https://www.pygmt.org/v0.2.1>`_
329-
- >=6.1.1
330-
- >=3.6
331-
-
332-
* - `v0.2.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.0>`_
333-
- `v0.2.0 Documentation <https://www.pygmt.org/v0.2.0>`_
334-
- >=6.1.1
335-
- 3.6 - 3.8
336-
-
337-
* - `v0.1.2 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.2>`_
338-
- `v0.1.2 Documentation <https://www.pygmt.org/v0.1.2>`_
339-
- >=6.0.0
340-
- 3.6 - 3.8
341-
-
342-
* - `v0.1.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.1>`_
343-
- `v0.1.1 Documentation <https://www.pygmt.org/v0.1.1>`_
344-
- >=6.0.0
345-
- 3.6 - 3.8
346-
-
347-
* - `v0.1.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.0>`_
348-
- `v0.1.0 Documentation <https://www.pygmt.org/v0.1.0>`_
349-
- >=6.0.0
350-
- 3.6 - 3.8
351-
-
256+
Minimum Supported GMT/Python/NumPy Versions
257+
-------------------------------------------
258+
259+
PyGMT has adopted `NEP29 <https://numpy.org/neps/nep-0029-deprecation_policy>`__
260+
alongside the rest of the Scientific Python ecosystem, and therefore supports:
261+
262+
* All minor versions of Python released 42 months prior to the project, and at minimum
263+
the two latest minor versions.
264+
* All minor versions of NumPy released in the 24 months prior to the project, and at
265+
minimum the last three minor versions.
266+
267+
For the supported GMT versions as well as the minimum required Python and NumPy versions
268+
please see `Minimum Required Versions <https://www.pygmt.org/dev/minvesrions.html>`__.

doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
</div>
1212

1313
.. include:: ../README.rst
14-
:start-after: placeholder-for-doc-index
14+
:start-after: doc-index-start-after
15+
:end-before: doc-index-end-before
1516

1617
.. toctree::
1718
:maxdepth: 2
@@ -39,6 +40,7 @@
3940

4041
api/index.rst
4142
changes.md
43+
Minimum Supported Versions <minversions.rst>
4244

4345
.. toctree::
4446
:maxdepth: 2

doc/install.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,16 @@ We recommend following the instructions further on to install GMT 6.
8383

8484
PyGMT requires the following libraries to be installed:
8585

86-
- [numpy](https://numpy.org) (>= 1.23)
86+
- [numpy](https://numpy.org)
8787
- [pandas](https://pandas.pydata.org)
8888
- [xarray](https://xarray.dev/)
8989
- [netCDF4](https://unidata.github.io/netcdf4-python)
9090
- [packaging](https://packaging.pypa.io)
9191

92+
:::{note}
93+
For the minimum supported versions of the dependencies, please see {doc}`minversions`.
94+
:::
95+
9296
The following are optional dependencies:
9397

9498
- [IPython](https://ipython.org): For embedding the figures in Jupyter notebooks (recommended).

doc/maintenance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ publishing the actual release notes at {doc}`changes`.
220220
7. Edit the list of people who contributed to the release, linking to their
221221
GitHub accounts. Sort their names by the number of commits made since the
222222
last release (e.g., use `git shortlog HEAD...v0.4.0 -sne`).
223-
8. Update `README.rst` with new information on the new release version,
224-
including a vX.Y.Z documentation link, and compatibility with
225-
GMT/Python/NumPy versions. Follow
223+
8. Update `doc/minversions.rst` with new information on the new release version,
224+
including a vX.Y.Z documentation link, and minimum required GMT/Python/NumPy
225+
versions. Follow
226226
[NEP 29](https://numpy.org/neps/nep-0029-deprecation_policy.html#detailed-description)
227-
for compatibility updates.
227+
for updates.
228228
9. Refresh citation information. Specifically, the BibTeX in `README.rst` and
229229
`CITATION.cff` needs to be updated with any metadata changes, including the
230230
DOI, release date, and version information. Please also follow

doc/minversions.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
Minimum Supported GMT/Python/NumPy Versions
2+
-------------------------------------------
3+
4+
PyGMT has adopted `NEP29 <https://numpy.org/neps/nep-0029-deprecation_policy>`__
5+
alongside the rest of the Scientific Python ecosystem, and therefore supports:
6+
7+
* All minor versions of Python released 42 months prior to the project, and at minimum
8+
the two latest minor versions.
9+
* All minor versions of NumPy released in the 24 months prior to the project, and at
10+
minimum the last three minor versions.
11+
12+
.. list-table::
13+
:widths: 25 30 15 20 15
14+
:header-rows: 1
15+
16+
* - PyGMT Version
17+
- Documentation
18+
- GMT
19+
- Python
20+
- NumPy
21+
* - `Dev <https://github.com/GenericMappingTools/pygmt/milestones>`_ (upcoming release)
22+
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
23+
- >=6.3.0
24+
- >=3.9
25+
- >=1.23
26+
* - `v0.10.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.10.0>`_ (latest release)
27+
- `v0.10.0 Documentation <https://www.pygmt.org/v0.10.0>`_
28+
- >=6.3.0
29+
- >=3.9
30+
- >=1.22
31+
* - `v0.9.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.9.0>`_
32+
- `v0.9.0 Documentation <https://www.pygmt.org/v0.9.0>`_
33+
- >=6.3.0
34+
- >=3.8
35+
- >=1.21
36+
* - `v0.8.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.8.0>`_
37+
- `v0.8.0 Documentation <https://www.pygmt.org/v0.8.0>`_
38+
- >=6.3.0
39+
- >=3.8
40+
- >=1.20
41+
* - `v0.7.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.7.0>`_
42+
- `v0.7.0 Documentation <https://www.pygmt.org/v0.7.0>`_
43+
- >=6.3.0
44+
- >=3.8
45+
- >=1.20
46+
* - `v0.6.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.6.1>`_
47+
- `v0.6.1 Documentation <https://www.pygmt.org/v0.6.1>`_
48+
- >=6.3.0
49+
- >=3.8
50+
- >=1.19
51+
* - `v0.6.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.6.0>`_
52+
- `v0.6.0 Documentation <https://www.pygmt.org/v0.6.0>`_
53+
- >=6.3.0
54+
- >=3.8
55+
- >=1.19
56+
* - `v0.5.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.5.0>`_
57+
- `v0.5.0 Documentation <https://www.pygmt.org/v0.5.0>`_
58+
- >=6.2.0
59+
- >=3.7
60+
- >=1.18
61+
* - `v0.4.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.1>`_
62+
- `v0.4.1 Documentation <https://www.pygmt.org/v0.4.1>`_
63+
- >=6.2.0
64+
- >=3.7
65+
- >=1.17
66+
* - `v0.4.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.0>`_
67+
- `v0.4.0 Documentation <https://www.pygmt.org/v0.4.0>`_
68+
- >=6.2.0
69+
- >=3.7
70+
- >=1.17
71+
* - `v0.3.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.1>`_
72+
- `v0.3.1 Documentation <https://www.pygmt.org/v0.3.1>`_
73+
- >=6.1.1
74+
- >=3.7
75+
-
76+
* - `v0.3.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.0>`_
77+
- `v0.3.0 Documentation <https://www.pygmt.org/v0.3.0>`_
78+
- >=6.1.1
79+
- >=3.7
80+
-
81+
* - `v0.2.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.1>`_
82+
- `v0.2.1 Documentation <https://www.pygmt.org/v0.2.1>`_
83+
- >=6.1.1
84+
- >=3.6
85+
-
86+
* - `v0.2.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.2.0>`_
87+
- `v0.2.0 Documentation <https://www.pygmt.org/v0.2.0>`_
88+
- >=6.1.1
89+
- 3.6 - 3.8
90+
-
91+
* - `v0.1.2 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.2>`_
92+
- `v0.1.2 Documentation <https://www.pygmt.org/v0.1.2>`_
93+
- >=6.0.0
94+
- 3.6 - 3.8
95+
-
96+
* - `v0.1.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.1>`_
97+
- `v0.1.1 Documentation <https://www.pygmt.org/v0.1.1>`_
98+
- >=6.0.0
99+
- 3.6 - 3.8
100+
-
101+
* - `v0.1.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.1.0>`_
102+
- `v0.1.0 Documentation <https://www.pygmt.org/v0.1.0>`_
103+
- >=6.0.0
104+
- 3.6 - 3.8
105+
-

0 commit comments

Comments
 (0)