From 3c4a46fe1eaa4b1741ffc83f22d409b94ea03229 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 3 Mar 2023 17:23:34 +1300 Subject: [PATCH] NEP29: Set minimum required version to NumPy 1.21+ Following NEP29 policy. Bumps minimum supported NumPy version to 1.21 in the pyproject.toml, requirements.txt and environment.yml files. Also update installation documentation to mention NumPy 1.21+ requirement. --- README.rst | 2 +- ci/requirements/docs.yml | 2 +- doc/install.rst | 2 +- environment.yml | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index ee023c63562..450c01120c0 100644 --- a/README.rst +++ b/README.rst @@ -261,7 +261,7 @@ Compatibility with GMT/Python/NumPy versions - `Dev Documentation `_ (reflects `main branch `_) - >=6.3.0 - >=3.8 - - >=1.20 + - >=1.21 * - `v0.8.0 `_ (latest release) - `v0.8.0 Documentation `_ - >=6.3.0 diff --git a/ci/requirements/docs.yml b/ci/requirements/docs.yml index a11194fec36..31decb7123f 100644 --- a/ci/requirements/docs.yml +++ b/ci/requirements/docs.yml @@ -6,7 +6,7 @@ dependencies: # Required dependencies - pip - gmt=6.4.0 - - numpy>=1.20 + - numpy>=1.21 - pandas - xarray - netCDF4 diff --git a/doc/install.rst b/doc/install.rst index 57071860961..dce36f59a5e 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -97,7 +97,7 @@ Dependencies PyGMT requires the following libraries to be installed: -* `numpy `__ (>= 1.20) +* `numpy `__ (>= 1.21) * `pandas `__ * `xarray `__ * `netCDF4 `__ diff --git a/environment.yml b/environment.yml index 6f7ca48edb4..3ed7b19fd2d 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ dependencies: # Required dependencies - pip - gmt=6.4.0 - - numpy>=1.20 + - numpy>=1.21 - pandas - xarray - netCDF4 diff --git a/pyproject.toml b/pyproject.toml index f0880e22304..ac3c37ad57d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ classifiers = [ "License :: OSI Approved :: BSD License", ] dependencies = [ - "numpy>=1.20", + "numpy>=1.21", "pandas", "xarray", "netCDF4", diff --git a/requirements.txt b/requirements.txt index 9ef40e8d895..41c008e0779 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # Required packages -numpy>=1.20 +numpy>=1.21 pandas xarray netCDF4