Skip to content

Commit

Permalink
chore: add PyYaml as extra require
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wittig committed Dec 18, 2019
1 parent 3f78aa3 commit 7ecd518
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/cli.rst
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Expand Up @@ -45,5 +45,8 @@ def get_version():
"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"],
},
)

0 comments on commit 7ecd518

Please sign in to comment.