Skip to content

Conversation

@weiji14
Copy link
Member

@weiji14 weiji14 commented Aug 10, 2021

Description of proposed changes

Following NEP29 policy where NumPy 1.17 is to be dropped on or after 26 July 2021 (in a minor version increment, i.e. for PyGMT v0.5.0). 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.

This is in line with PyGMT's policy on NEP29 at https://www.pygmt.org/v0.4.1/maintenance.html#dependencies-policy, xref #1074.

Around the PyData ecosystem, it looks like pandas 1.4 (pandas-dev/pandas#41989) and geopandas 0.10.0 (geopandas/geopandas#1877) will be using Numpy 1.18+ too.

Fixes #

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

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.
@weiji14 weiji14 added the deprecation Deprecating a feature label Aug 10, 2021
@weiji14 weiji14 added this to the 0.5.0 milestone Aug 10, 2021
@weiji14 weiji14 self-assigned this Aug 10, 2021
@seisman
Copy link
Member

seisman commented Aug 10, 2021

Following the discussions in #1074, I think we should add the dev version to the "compatibility table" in the README file, right?

Also link to v0.5.0 milestone and development documentation page.
Co-Authored-By: Meghan Jones <meghanj@alum.mit.edu>
@weiji14 weiji14 marked this pull request as ready for review August 10, 2021 23:53
@weiji14
Copy link
Member Author

weiji14 commented Aug 11, 2021

Merge this in directly or wait 24hours? Note that I'll also need to update the branch protection rules at https://github.com/GenericMappingTools/pygmt/settings/branches to require Python 3.7 / NumPy 1.18 instead of Python 3.7 / NumPy 1.17.

@seisman
Copy link
Member

seisman commented Aug 11, 2021

I think it's OK to merge now.

@weiji14 weiji14 merged commit ebbb0cc into main Aug 11, 2021
@weiji14 weiji14 deleted the nep29/drop-numpy1.17 branch August 11, 2021 01:18
@weiji14
Copy link
Member Author

weiji14 commented Aug 11, 2021

Cool, branch protection settings have been updated to use Python 3.7 / NumPy 1.18:

image

sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…ls#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 <meghanj@alum.mit.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecating a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants