summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2019-12-18 12:14:28 +0100
committerMax Wittig <max.wittig@siemens.com>2019-12-18 13:03:08 +0100
commit7ecd5184e62bf1b1f377db161b26fa4580af6b4c (patch)
tree367b00544a25c758464778a6e362c16345005302
parent3f78aa3c0d3fc502f295986d4951cfd0eee80786 (diff)
downloadgitlab-7ecd5184e62bf1b1f377db161b26fa4580af6b4c.tar.gz
chore: add PyYaml as extra require
-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"],
+ },
)