Skip to content

Commit

Permalink
Install using pip with test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Jan 30, 2024
1 parent 01a60f6 commit ff4d613
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]},
)

0 comments on commit ff4d613

Please sign in to comment.