From db680c82151b188259f2c20c615016887f131fbd Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sat, 20 Aug 2022 22:10:18 +0800 Subject: [PATCH 1/5] Add optional dependencies to pyproject.toml --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 66b60280c6d..841b9b702c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,11 @@ dependencies = [ ] dynamic = ["version"] +[project.optional-dependencies] +all = [ + "geopandas" +] + [project.urls] homepage = "https://www.pygmt.org" documentation = "https://www.pygmt.org" From 33f440e4df920afb40dab83deaf3adf00b96d11f Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 22 Aug 2022 22:44:39 +0800 Subject: [PATCH 2/5] Also add ipython as an optional dependency Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 841b9b702c9..977e9e21230 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,8 @@ dynamic = ["version"] [project.optional-dependencies] all = [ - "geopandas" + "geopandas", + "ipython" ] [project.urls] From 0880d072347b083f0538c75677bc9d3ba65d002b Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 22 Aug 2022 22:47:21 +0800 Subject: [PATCH 3/5] Explain 'pip install pygmt[all]' in the installation instructions --- doc/install.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/install.rst b/doc/install.rst index 582825c253f..8e83f358826 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -218,6 +218,11 @@ This installs the latest stable release from pip install pygmt +.. tips:: + + You can also run ``pip install pygmt[all]`` to install pygmt alongside with + all its optional dependencies. + Alternatively, you can install the latest development version from `TestPyPI `__:: From 835daa0835a3a25c0155a59128cd7a647c1e5ac7 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 24 Aug 2022 11:17:34 +0800 Subject: [PATCH 4/5] Fix tips to tip --- doc/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/install.rst b/doc/install.rst index 8e83f358826..c437ffe36cb 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -218,7 +218,7 @@ This installs the latest stable release from pip install pygmt -.. tips:: +.. tip:: You can also run ``pip install pygmt[all]`` to install pygmt alongside with all its optional dependencies. From 9397bb29817d80692e79fbc0ed353ef3f7796fee Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 24 Aug 2022 11:38:13 +0800 Subject: [PATCH 5/5] Update doc/install.rst Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com> --- doc/install.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/install.rst b/doc/install.rst index c437ffe36cb..b3e98b7ecd6 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -220,8 +220,8 @@ This installs the latest stable release from .. tip:: - You can also run ``pip install pygmt[all]`` to install pygmt alongside with - all its optional dependencies. + You can also run ``pip install pygmt[all]`` to install pygmt with + all of its optional dependencies. Alternatively, you can install the latest development version from `TestPyPI `__::