Skip to content

Commit

Permalink
Change tests_require to extras_require
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Feb 15, 2024
1 parent 7c43e4c commit 7ffd70b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
python setup.py install
pip install pytest -e .[test]
- name: Run farmOS.py tests.
run: pytest tests
env:
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

install_requires = ["requests-oauthlib~=1.3.1", "pydantic~=1.7.3"]

tests_require = ["pytest~=7.0", "black~=23.0", "setuptools~=68.0"]
extras_require = {
"test": ["pytest~=7.0", "black~=23.0", "setuptools~=68.0"],
}

with open("README.md") as fh:
readme = fh.read()
Expand All @@ -29,6 +31,6 @@
python_requires=">=3.8",
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
test_suite="pytest",
)

0 comments on commit 7ffd70b

Please sign in to comment.