Skip to content

Commit

Permalink
Add optional dependencies to pyproject.toml (#2069)
Browse files Browse the repository at this point in the history
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
  • Loading branch information
seisman and weiji14 committed Aug 25, 2022
1 parent 66461c4 commit 0907868
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ This installs the latest stable release from

pip install pygmt

.. tip::

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 <https://test.pypi.org/project/pygmt>`__::

Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
all = [
"geopandas",
"ipython"
]

[project.urls]
homepage = "https://www.pygmt.org"
documentation = "https://www.pygmt.org"
Expand Down

0 comments on commit 0907868

Please sign in to comment.