summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/cli.rst2
-rw-r--r--setup.py5
2 files changed, 5 insertions, 2 deletions
diff --git a/docs/cli.rst b/docs/cli.rst
index e87c6d1..3207902 100644
--- a/docs/cli.rst
+++ b/docs/cli.rst
@@ -162,7 +162,7 @@ These options must be defined before the mandatory arguments.
**Notice:**
The `PyYAML package <https://pypi.org/project/PyYAML/>`_ is required to use the yaml output option.
- You need to install it separately using ``pip install PyYAML``
+ You need to install it explicitly using ``pip install python-gitlab[yaml]``
``--fields``, ``-f``
Comma-separated list of fields to display (``yaml`` and ``json`` output
diff --git a/setup.py b/setup.py
index fbf834f..2eb7009 100644
--- a/setup.py
+++ b/setup.py
@@ -45,5 +45,8 @@ setup(
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
- extras_require={"autocompletion": ["argcomplete>=1.10.0,<2"]},
+ extras_require={
+ "autocompletion": ["argcomplete>=1.10.0,<2"],
+ "yaml": ["PyYaml>=5.2"],
+ },
)