Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/checkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 0 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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=[
Expand Down
24 changes: 24 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -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