Skip to content

Commit 0907868

Browse files
seismanweiji14
andauthored
Add optional dependencies to pyproject.toml (#2069)
Co-authored-by: Wei Ji <[email protected]>
1 parent 66461c4 commit 0907868

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

doc/install.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ This installs the latest stable release from
218218

219219
pip install pygmt
220220

221+
.. tip::
222+
223+
You can also run ``pip install pygmt[all]`` to install pygmt with
224+
all of its optional dependencies.
225+
221226
Alternatively, you can install the latest development version from
222227
`TestPyPI <https://test.pypi.org/project/pygmt>`__::
223228

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ dependencies = [
3232
]
3333
dynamic = ["version"]
3434

35+
[project.optional-dependencies]
36+
all = [
37+
"geopandas",
38+
"ipython"
39+
]
40+
3541
[project.urls]
3642
homepage = "https://www.pygmt.org"
3743
documentation = "https://www.pygmt.org"

0 commit comments

Comments
 (0)