From 17fdeb63b9add65ad253e17ef9ba53dc8bb54b86 Mon Sep 17 00:00:00 2001 From: Max Jones Date: Fri, 1 Jul 2022 20:56:22 -0400 Subject: [PATCH] NEP29: Set minimum required version to NumPy 1.20+ (#1985) --- .github/workflows/ci_tests.yaml | 4 ++-- README.rst | 2 +- doc/install.rst | 2 +- environment.yml | 2 +- requirements.txt | 2 +- setup.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 5627cfa1535..c43f6109c6c 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -40,11 +40,11 @@ jobs: isDraft: true - os: windows-latest isDraft: true - # Pair Python 3.8 with NumPy 1.19 and Python 3.10 with NumPy 1.22 + # Pair Python 3.8 with NumPy 1.20 and Python 3.10 with NumPy 1.22 # Only install optional packages on Python 3.10/NumPy 1.22 include: - python-version: '3.8' - numpy-version: '1.19' + numpy-version: '1.20' optional-packages: '' - python-version: '3.10' numpy-version: '1.22' diff --git a/README.rst b/README.rst index 5bb278c4e7f..1ae8cbbbf65 100644 --- a/README.rst +++ b/README.rst @@ -235,7 +235,7 @@ Compatibility with GMT/Python/NumPy versions - `Dev Documentation `_ (reflects `main branch `_) - >=6.3.0 - >=3.8 - - >=1.19 + - >=1.20 * - `v0.6.1 `_ (latest release) - `v0.6.1 Documentation `_ - >=6.3.0 diff --git a/doc/install.rst b/doc/install.rst index f4b8dc6f157..cab2860bbbd 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -98,7 +98,7 @@ Dependencies PyGMT requires the following libraries to be installed: -* `numpy `__ (>= 1.19) +* `numpy `__ (>= 1.20) * `pandas `__ * `xarray `__ * `netCDF4 `__ diff --git a/environment.yml b/environment.yml index 86f7e39c2e3..2887ed093ec 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ dependencies: # Required dependencies - pip - gmt=6.3.0 - - numpy>=1.19 + - numpy>=1.20 - pandas - xarray - netCDF4 diff --git a/requirements.txt b/requirements.txt index 526478cea2c..9ef40e8d895 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # Required packages -numpy>=1.19 +numpy>=1.20 pandas xarray netCDF4 diff --git a/setup.py b/setup.py index a7815ccd7da..de7d307869d 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ ] PLATFORMS = "Any" PYTHON_REQUIRES = ">=3.8" -INSTALL_REQUIRES = ["numpy>=1.19", "pandas", "xarray", "netCDF4", "packaging"] +INSTALL_REQUIRES = ["numpy>=1.20", "pandas", "xarray", "netCDF4", "packaging"] if __name__ == "__main__": setup(