From 4593fec11da7b505107bf9b9386d2d5d37075941 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 3 Sep 2024 16:27:14 +0100 Subject: [PATCH] Bring back support for py39 --- .config/constraints.txt | 11 ++++------- mypy.ini | 2 +- pyproject.toml | 5 +++-- tox.ini | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.config/constraints.txt b/.config/constraints.txt index a98c8c7..0a69f05 100644 --- a/.config/constraints.txt +++ b/.config/constraints.txt @@ -41,7 +41,7 @@ markupsafe==2.1.5 mdurl==0.1.2 mergedeep==1.3.4 mkdocs==1.6.1 -mkdocs-autorefs==1.1.0 +mkdocs-autorefs==1.2.0 mkdocs-gen-files==0.5.0 mkdocs-get-deps==0.2.0 mkdocs-htmlproofer-plugin==1.2.1 @@ -55,7 +55,7 @@ pathspec==0.12.1 pillow==10.4.0 pip==24.2 pipdeptree==2.23.1 -pkginfo==1.11.1 +pkginfo==1.10.0 platformdirs==4.2.2 pluggy==1.5.0 py-cpuinfo==9.0.0 @@ -76,7 +76,7 @@ requests==2.32.3 requests-toolbelt==1.0.0 rfc3986==2.0.0 rich==13.8.0 -setuptools==74.0.0 +setuptools==74.1.1 shellingham==1.5.4 six==1.16.0 smmap==5.0.1 @@ -90,14 +90,11 @@ typer-config==1.4.0 typing-extensions==4.12.2 urllib3==2.2.2 virtualenv==20.26.3 -watchdog==5.0.0 +watchdog==5.0.1 webencodings==0.5.1 zipp==3.20.1 # The following packages are considered to be unsafe in a requirements file: # backports-tarfile -# cryptography # exceptiongroup -# jeepney -# secretstorage # twine diff --git a/mypy.ini b/mypy.ini index 9133676..c1befcc 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.10 +python_version = 3.9 color_output = True error_summary = True # TODO(ssbarnea): Remove ignores below: diff --git a/pyproject.toml b/pyproject.toml index 0b86faf..41a1e96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] # https://peps.python.org/pep-0621/#readme -requires-python = ">=3.10" +requires-python = ">=3.9" dynamic = ["version", "dependencies", "optional-dependencies"] name = "mk" description = "mk" @@ -24,6 +24,7 @@ classifiers = [ "Operating System :: MacOS", "Operating System :: POSIX", "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -92,7 +93,7 @@ concurrency = ["multiprocessing", "thread"] profile = "black" [tool.mypy] -python_version = "3.10" +python_version = "3.9" strict = true color_output = true error_summary = true diff --git a/tox.ini b/tox.ini index 0a5bec0..de3ec00 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,7 @@ commands = --durations=10 \ -m "not eco" \ } - {py,py310,py311,py312,py313}: sh -c "coverage combine -a -q --data-file={envdir}/.coverage {envdir}/.coverage.* && coverage xml --data-file={envdir}/.coverage -o {envdir}/coverage.xml --fail-under=0 && coverage report --data-file={envdir}/.coverage" + {py,,py39,py310,py311,py312,py313}: sh -c "coverage combine -a -q --data-file={envdir}/.coverage {envdir}/.coverage.* && coverage xml --data-file={envdir}/.coverage -o {envdir}/coverage.xml --fail-under=0 && coverage report --data-file={envdir}/.coverage" passenv = CURL_CA_BUNDLE # https proxies, https://github.com/tox-dev/tox/issues/1437 FORCE_COLOR