diff --git a/.github/workflows/checkdocs.yml b/.github/workflows/checkdocs.yml index b01286e7..8c455136 100644 --- a/.github/workflows/checkdocs.yml +++ b/.github/workflows/checkdocs.yml @@ -26,7 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -e ".[test]" + python -m pip install -e . -r tests/requirements.txt - name: Check Docs run: | python setup.py checkdocs diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32bd0fca..ce937ed2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,7 @@ jobs: # Install your linters here - name: Install linters run: | - python -m pip install -e ".[test]" + python -m pip install -e . -r tests/requirements.txt - name: Run linters uses: wearerequired/lint-action@v2.3.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7156096..f022334d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -e ".[test]" + python -m pip install -e . -r tests/requirements.txt - name: Unit tests env: CACHIER_TEST_HOST: ${{ secrets.CACHIER_TEST_HOST }} diff --git a/README.rst b/README.rst index b4632c7e..a48816a8 100644 --- a/README.rst +++ b/README.rst @@ -363,7 +363,7 @@ Install in development mode with test dependencies: .. code-block:: bash cd cachier - pip install -e ".[test]" + pip install -e . -r tests/requirements.txt Running the tests diff --git a/setup.py b/setup.py index 5ba5686a..13f92050 100644 --- a/setup.py +++ b/setup.py @@ -14,21 +14,6 @@ import versioneer -TEST_REQUIRES = [ - # tests and coverages - 'pytest', 'coverage', 'pytest-cov', 'birch', - # linting and code quality - 'bandit', 'flake8', 'pylint', 'safety', - # type checking - 'mypy', 'types-setuptools', 'pandas-stubs', - # to connect to the test mongodb server - 'pymongo', 'dnspython', 'pymongo-inmemory', - # to test pandas dataframe as-param hashing with mongodb core - 'pandas', - # to be able to run `python setup.py checkdocs` - 'collective.checkdocs', 'pygments', -] - README_RST = '' with open('README.rst') as f: README_RST = f.read() @@ -54,9 +39,6 @@ 'watchdog', 'portalocker', 'setuptools>=67.6.0', # to avoid vulnerability in 56.0.0 ], - extras_require={ - 'test': TEST_REQUIRES, - }, platforms=['linux', 'osx', 'windows'], keywords=['cache', 'persistence', 'mongo', 'memoization', 'decorator'], classifiers=[ diff --git a/tests/requirements.txt b/tests/requirements.txt new file mode 100644 index 00000000..f0b4f97a --- /dev/null +++ b/tests/requirements.txt @@ -0,0 +1,24 @@ +# todo: add some version range or pinning latest versions +# tests and coverages +pytest +coverage +pytest-cov +birch +# linting and code quality; todo: remove after precommint lands +bandit +flake8 +pylint +safety +# type checking; todo: remove after precommint lands +mypy +types-setuptools +pandas-stubs +# to connect to the test mongodb server +pymongo +dnspython +pymongo-inmemory +# to test pandas dataframe as-param hashing with mongodb core +pandas +# to be able to run `python setup.py checkdocs` +collective.checkdocs +pygments \ No newline at end of file