From 8b0d6d87786634ad552ed19e302c0b0a08adcc2e Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 27 Oct 2021 19:04:25 +0200 Subject: [PATCH] Bump requirements. It's hard to get a freezed set of dependencies working in all tested versions, so I unpin them from tox. --- .github/workflows/tests.yml | 2 +- README.md | 13 ++++-- requirements-dev.in | 8 ---- requirements-dev.txt | 92 ------------------------------------- tox.ini | 4 +- 5 files changed, 13 insertions(+), 106 deletions(-) delete mode 100644 requirements-dev.in delete mode 100644 requirements-dev.txt diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c59dd24..5e45e58 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/cache@v2 with: path: .tox - key: ${{ matrix.tox.python-version }}-${{ hashFiles('tox.ini') }}-${{ hashFiles('requirements-dev.txt') }} + key: ${{ matrix.tox.python-version }}-${{ hashFiles('tox.ini') }} - name: Install dependencies run: | sudo apt-get update diff --git a/README.md b/README.md index b2220f3..a0ec0df 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,15 @@ per line. ## Contributing -In a venv, install the dev requirements: +You can work in a venv, to install the project locally: ```bash -python3 -m venv --prompt pospell .venv -source .venv/bin/activate -python3 -m pip install -r requirements-dev.txt +python -m pip install . +``` + +And to test it locally: + +```bash +python -m pip install tox +tox -p all ``` diff --git a/requirements-dev.in b/requirements-dev.in deleted file mode 100644 index c4ddb86..0000000 --- a/requirements-dev.in +++ /dev/null @@ -1,8 +0,0 @@ -bandit -black -coverage -flake8 -isort -mypy -pylint -pytest \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index 147b249..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,92 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.9 -# To update, run: -# -# pip-compile requirements-dev.in -# -appdirs==1.4.4 - # via black -astroid==2.4.2 - # via pylint -attrs==20.3.0 - # via pytest -bandit==1.6.2 - # via -r requirements-dev.in -black==20.8b1 - # via -r requirements-dev.in -click==7.1.2 - # via black -coverage==5.3 - # via -r requirements-dev.in -flake8==3.8.4 - # via -r requirements-dev.in -gitdb==4.0.5 - # via gitpython -gitpython==3.1.11 - # via bandit -iniconfig==1.1.1 - # via pytest -isort==5.6.4 - # via - # -r requirements-dev.in - # pylint -lazy-object-proxy==1.4.3 - # via astroid -mccabe==0.6.1 - # via - # flake8 - # pylint -mypy==0.790 - # via -r requirements-dev.in -mypy-extensions==0.4.3 - # via - # black - # mypy -packaging==20.4 - # via pytest -pathspec==0.8.1 - # via black -pbr==5.5.1 - # via stevedore -pluggy==0.13.1 - # via pytest -py==1.9.0 - # via pytest -pycodestyle==2.6.0 - # via flake8 -pyflakes==2.2.0 - # via flake8 -pylint==2.6.0 - # via -r requirements-dev.in -pyparsing==2.4.7 - # via packaging -pytest==6.1.2 - # via -r requirements-dev.in -pyyaml==5.3.1 - # via bandit -regex==2020.11.13 - # via black -six==1.15.0 - # via - # astroid - # bandit - # packaging -smmap==3.0.4 - # via gitdb -stevedore==3.2.2 - # via bandit -toml==0.10.2 - # via - # black - # pylint - # pytest -typed-ast==1.4.1 - # via - # black - # mypy -typing-extensions==3.7.4.3 - # via - # black - # mypy -wrapt==1.12.1 - # via astroid diff --git a/tox.ini b/tox.ini index 365391e..a34f368 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,9 @@ isolated_build = True skip_missing_interpreters = True [testenv] -deps = -r requirements-dev.txt +deps = + pytest + coverage commands = coverage run -m pytest setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}