From a0550738e0b1a08e55a6fabd7ad26959c274fe8f Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Thu, 4 May 2023 15:45:05 -0600 Subject: [PATCH] Introduce extra requirements Three different configurations are supported: * `pip install pysaq` - this installs `jinja2`, `pandas` and `pyyaml` * `pip install pysaq[sge]` - in addition to the base dependencies this installs `defusedxml` which is required to parse the `xml` files from `qstat`. * `pip install pysaq[remote]` - in addition to the base dependencies this installs `paramiko` and `tqdm` --- setup.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 9ac73d82..20026c25 100644 --- a/setup.py +++ b/setup.py @@ -29,16 +29,15 @@ keywords='pysqa', packages=find_packages(exclude=["*tests*"]), - install_requires=['defusedxml==0.7.1', - 'jinja2==3.1.2', - 'pandas==2.0.1', - 'paramiko==3.1.0', - 'pyyaml==6.0', - 'tqdm==4.65.0'], + install_requires=['jinja2==3.1.2', 'pandas==2.0.1', 'pyyaml==6.0'], + extras_require={ + "sge": ['defusedxml==0.7.1'], + "remote": ['paramiko==3.1.0', 'tqdm==4.65.0'], + }, cmdclass=versioneer.get_cmdclass(), entry_points={ "console_scripts": [ 'pysqa=pysqa:main' ] } - ) +)