From ff4d6130a7f0e2e617ccfa54bedfae2edc3ab8fb Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Tue, 30 Jan 2024 20:45:02 +0100 Subject: [PATCH] Install using pip with test dependencies --- .github/workflows/coverage.yaml | 2 +- setup.py | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c0affe9..dcb5eb2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -28,7 +28,7 @@ jobs: run: | python -m pip install --upgrade pip pip install pytest-cov codecov - python setup.py develop + pip install .[test] - name: Test with pytest run: | pytest --cov=catmux --cov-report=xml . diff --git a/setup.py b/setup.py index 5501e65..6033135 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,14 @@ with open("README.md", "r") as fh: long_description = fh.read() +test_deps = [ + "pytest", + "pyflakefs", +] +extras = { + "test": test_deps, +} + setuptools.setup( name="catmux", version="0.3.6", @@ -26,10 +34,8 @@ "Operating System :: OS Independent", ], install_requires=["pyyaml", "libtmux"], - tests_require=[ - "pytest", - "pyfakefs", - ], + tests_require=test_deps, + extras_require=extras, python_requires=">=3.7", package_data={"catmux.resources": ["*.yaml", "*.txt", "*.conf"]}, )