Skip to content

Commit ebbb0cc

Browse files
weiji14Meghan Jones
and
Meghan Jones
authored
NEP29: Set minimum required version to NumPy 1.18+ (#1430)
Following NEP29 policy. Bumps minimum supported NumPy version to 1.18 in the setup.py, requirements.txt and environment.yml files. Also update installation documentation and set CI tests to run on NumPy 1.18. * List NumPy >= 1.18 in compatibility table on main README.rst * Mention dev docs directly in compatibility table Co-authored-by: Meghan Jones <[email protected]>
1 parent 975ab3b commit ebbb0cc

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
# - os: ubuntu-latest
4545
# python-version: 3.7
4646
# isDraft: true
47-
# Pair Python 3.7 with NumPy 1.17 and Python 3.9 with NumPy 1.21
47+
# Pair Python 3.7 with NumPy 1.18 and Python 3.9 with NumPy 1.21
4848
# Only install optional packages on Python 3.9/NumPy 1.21
4949
include:
5050
- python-version: 3.7
51-
numpy-version: '1.17'
51+
numpy-version: '1.18'
5252
optional-packages: ''
5353
- python-version: 3.9
5454
numpy-version: '1.21'

README.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,16 +228,21 @@ Compatibility with GMT/Python/NumPy versions
228228
- GMT
229229
- Python
230230
- Numpy
231+
* - `v0.5.0 <https://github.com/GenericMappingTools/pygmt/milestone/8>`_ (upcoming release)
232+
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
233+
- >=6.2.0
234+
- >=3.7
235+
- >=1.18
231236
* - `v0.4.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.1>`_ (latest release)
232237
- `v0.4.1 Documentation <https://www.pygmt.org/v0.4.1>`_
233238
- >=6.2.0
234239
- >=3.7
235-
- >=1.17.0
240+
- >=1.17
236241
* - `v0.4.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.4.0>`_
237242
- `v0.4.0 Documentation <https://www.pygmt.org/v0.4.0>`_
238243
- >=6.2.0
239244
- >=3.7
240-
- >=1.17.0
245+
- >=1.17
241246
* - `v0.3.1 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.3.1>`_
242247
- `v0.3.1 Documentation <https://www.pygmt.org/v0.3.1>`_
243248
- >=6.1.1
@@ -273,6 +278,3 @@ Compatibility with GMT/Python/NumPy versions
273278
- >=6.0.0
274279
- 3.6 - 3.8
275280
-
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/.

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Dependencies
8080

8181
PyGMT requires the following libraries to be installed:
8282

83-
* `numpy <https://numpy.org>`__ (>= 1.17)
83+
* `numpy <https://numpy.org>`__ (>= 1.18)
8484
* `pandas <https://pandas.pydata.org>`__
8585
* `xarray <https://xarray.pydata.org>`__
8686
* `netCDF4 <https://unidata.github.io/netcdf4-python>`__

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
# Required dependencies
77
- pip
88
- gmt=6.2.0
9-
- numpy>=1.17
9+
- numpy>=1.18
1010
- pandas
1111
- xarray
1212
- netCDF4

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Required packages
2-
numpy>=1.17
2+
numpy>=1.18
33
pandas
44
xarray
55
netCDF4

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
]
3535
PLATFORMS = "Any"
3636
PYTHON_REQUIRES = ">=3.7"
37-
INSTALL_REQUIRES = ["numpy>=1.17", "pandas", "xarray", "netCDF4", "packaging"]
37+
INSTALL_REQUIRES = ["numpy>=1.18", "pandas", "xarray", "netCDF4", "packaging"]
3838
# Configuration for setuptools-scm
3939
SETUP_REQUIRES = ["setuptools_scm"]
4040
USE_SCM_VERSION = {"local_scheme": "node-and-date", "fallback_version": "unknown"}

0 commit comments

Comments
 (0)