From 7ecd5184e62bf1b1f377db161b26fa4580af6b4c Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Wed, 18 Dec 2019 12:14:28 +0100 Subject: [PATCH] chore: add PyYaml as extra require --- docs/cli.rst | 2 +- setup.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/cli.rst b/docs/cli.rst index e87c6d104..320790203 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 `_ 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 fbf834f93..2eb7009d8 100644 --- a/setup.py +++ b/setup.py @@ -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"], + }, )