From 0738579e292a32cca9bc43c803ec0b78551a683b Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Sun, 11 Aug 2024 22:45:44 +0300 Subject: [PATCH] Make tabulate a dependency for all pip install - But not for using the slurm2sql main program only --- .github/workflows/pytest.yml | 2 +- README.rst | 8 ++++---- setup.py | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 80f3ca2..56af69a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: | python -m pip install pytest - python -m pip install .[cli] + python -m pip install . - name: pytest run: | pytest test.py \ No newline at end of file diff --git a/README.rst b/README.rst index 224512d..8eb9c45 100644 --- a/README.rst +++ b/README.rst @@ -24,16 +24,16 @@ forms than built-in Slurm commands. This is especially useful for ``sacct``. You can design your own tools like this. + Installation ------------ -Normal ``pip`` installation, name ``slurm2sql`` or ``slurm2sql[cli]`` -for the command line programs. This installs the library and command -line programs. +Normal ``pip`` installation, name ``slurm2sql`` for the command line +programs. This installs the library and command line programs. :: - pip install slurm2sql[cli] + pip install slurm2sql There is only a single file with no depencecies for the core ``slurm2sql`` library (which could also be manually downloaded - HPC, diff --git a/setup.py b/setup.py index a404241..f92d554 100644 --- a/setup.py +++ b/setup.py @@ -20,10 +20,10 @@ #packages=setuptools.find_packages(), py_modules=["slurm2sql"], keywords='slurm sqlite3', - python_requires='>= 2.7, >=3.4', - extras_require = { - 'cli': ["tabulate"], - }, + python_requires='>= 3.6', # f-strings, if you need older then ask + install_requires = [ + "tabulate", + ], entry_points={ 'console_scripts': [ 'slurm2sql=slurm2sql:main',