diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93939a4..3b8de5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,13 +29,13 @@ jobs: - uses: actions/cache@v2 with: path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.cfg') }} restore-keys: | ${{ runner.os }}-pip- - name: Install pip dependencies run: | - python -m pip install --upgrade --upgrade-strategy eager -r requirements.txt + python -m pip install --upgrade --upgrade-strategy eager .[test] python -m pip freeze - name: Run tests diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index aba6aec..0000000 --- a/requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -flake8 -flake8-blind-except -flake8-builtins -flake8-class-newline -flake8-comprehensions -flake8-deprecated -flake8-docstrings -flake8-import-order -flake8-quotes -pytest diff --git a/setup.cfg b/setup.cfg index 3f698ad..b3ad94d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,10 +36,20 @@ install_requires = sphinx-rtd-theme myst-parser packages = find: -tests_require = +zip_safe = false + +[options.extras_require] +test = flake8 + flake8-blind-except + flake8-builtins + flake8-class-newline + flake8-comprehensions + flake8-deprecated + flake8-docstrings flake8-import-order -zip_safe = false + flake8-quotes + pytest # [options.packages.find] # exclude =