diff --git a/.python-version b/.python-version new file mode 100644 index 0000000..bd28b9c --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.9 diff --git a/Pipfile b/Pipfile index edab3f1..c652c27 100644 --- a/Pipfile +++ b/Pipfile @@ -1,18 +1,18 @@ [[source]] url = "https://pypi.org/simple" verify_ssl = true name = "pypi" [requires] -python_version = "3.7" +python_version = "3.9" [dev-packages] pytest = "*" pytest-cov = "*" fakeredis = "*" [packages] pywikibot = "*" flask = "*" redis = "*" mwparserfromhell = "*" diff --git a/conf/Dockerfile.web b/conf/Dockerfile.web index 0c337db..ca5bd8e 100644 --- a/conf/Dockerfile.web +++ b/conf/Dockerfile.web @@ -1,5 +1,5 @@ -FROM python:3.7 +FROM python:3.9 WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code diff --git a/tox.ini b/tox.ini index 0443b5a..3b3318f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,56 +1,56 @@ [tox] -envlist = black,flake8,bashate,isort,py37 +envlist = black,flake8,bashate,isort,py39 skipsdist=true [testenv] setenv = PYWIKIBOT_NO_USER_CONFIG = 1 # Since pywikibot fallback to the user home directory: HOME={envdir} PYTHONPATH={toxinidir}/integraality deps = -r{toxinidir}/requirements.txt -r{toxinidir}/requirements-dev.txt commands = pytest --cov --cov-config=setup.cfg -vvv --showlocals {posargs} whitelist_externals = bash [testenv:flake8] deps = flake8==3.9.0 commands = flake8 [testenv:bashate] deps = bashate==2.0.0 allowlist_externals = bash commands = bash -c "grep --recursive --binary-files=without-match \ --files-with-match '^.!.*\(ba\)\?sh$' \ --exclude-dir .tox \ --exclude-dir .git \ --exclude-dir .venv \ --exclude-dir deploy \ {toxinidir} | xargs bashate --error . --verbose --ignore=E006" [testenv:isort] deps = isort==5.11.2 allowlist_externals = bash commands = bash -c "find {toxinidir} \ -type d \ \( \ -path {toxinidir}/.git -o \ -path {toxinidir}/.tox -o \ -path {toxinidir}/deploy -o \ -path {toxinidir}/.venv \ \) -prune -o \ -name '*.py' \ -print | xargs isort {posargs:--check-only} --verbose" [flake8] exclude = .venv,.tox,.git,deploy [testenv:black] deps = black commands = black .