Skip to content

Commit 7ecd518

Browse files
committed
chore: add PyYaml as extra require
1 parent 3f78aa3 commit 7ecd518

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ These options must be defined before the mandatory arguments.
162162
**Notice:**
163163

164164
The `PyYAML package <https://pypi.org/project/PyYAML/>`_ is required to use the yaml output option.
165-
You need to install it separately using ``pip install PyYAML``
165+
You need to install it explicitly using ``pip install python-gitlab[yaml]``
166166

167167
``--fields``, ``-f``
168168
Comma-separated list of fields to display (``yaml`` and ``json`` output

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ def get_version():
4545
"Programming Language :: Python :: 3.7",
4646
"Programming Language :: Python :: 3.8",
4747
],
48-
extras_require={"autocompletion": ["argcomplete>=1.10.0,<2"]},
48+
extras_require={
49+
"autocompletion": ["argcomplete>=1.10.0,<2"],
50+
"yaml": ["PyYaml>=5.2"],
51+
},
4952
)

0 commit comments

Comments
 (0)