From abb15f1fb0ae5c284505fafb67e41b8f70a145cd Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 11 Jan 2024 17:27:26 +0000 Subject: [PATCH] Drop support for py38 (#177) --- .config/requirements.txt | 82 ++++++++++++++++++++++----------------- .github/workflows/tox.yml | 2 +- .pre-commit-config.yaml | 2 +- mypy.ini | 2 +- pyproject.toml | 3 +- tox.ini | 4 +- 6 files changed, 53 insertions(+), 42 deletions(-) diff --git a/.config/requirements.txt b/.config/requirements.txt index ddacdab..11e5db6 100644 --- a/.config/requirements.txt +++ b/.config/requirements.txt @@ -1,52 +1,64 @@ # -# This file is autogenerated by pip-compile with Python 3.8 +# This file is autogenerated by pip-compile with Python 3.9 # by the following command: # -# pip-compile --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras setup.cfg +# pip-compile --extra=test --no-annotate --output-file=.config/requirements.txt --strip-extras pyproject.toml # -bleach==6.0.0 blessings==1.7 -build==0.10.0 -certifi==2022.12.7 -cffi==1.15.1 -charset-normalizer==3.0.1 -click==8.1.3 +build==1.0.3 +cachetools==5.3.2 +certifi==2023.11.17 +chardet==5.2.0 +charset-normalizer==3.3.2 +click==8.1.7 colorama==0.4.6 -cryptography==39.0.2 -diskcache==5.4.0 -docutils==0.19 -gitdb==4.0.10 -gitpython==3.1.31 -idna==3.4 -importlib-metadata==6.2.0 -jaraco-classes==3.2.3 -jeepney==0.8.0 -keyring==23.13.1 -markdown-it-py==2.2.0 +coverage==7.4.0 +diskcache==5.6.3 +distlib==0.3.8 +docutils==0.20.1 +exceptiongroup==1.2.0 +filelock==3.13.1 +gitdb==4.0.11 +gitpython==3.1.41 +idna==3.6 +importlib-metadata==7.0.1 +iniconfig==2.0.0 +jaraco-classes==3.3.0 +keyring==24.3.0 +markdown-it-py==3.0.0 mdurl==0.1.2 -more-itertools==9.1.0 -packaging==23.0 +more-itertools==10.2.0 +nh3==0.2.15 +packaging==23.2 pkginfo==1.9.6 -pluggy==1.0.0 -pycparser==2.21 -pygments==2.14.0 +platformdirs==4.1.0 +pluggy==1.3.0 +py-cpuinfo==9.0.0 +pygments==2.17.2 +pyproject-api==1.6.1 pyproject-hooks==1.0.0 +pytest==7.4.4 +pytest-benchmark==4.0.0 +pytest-plus==0.6.1 pyyaml==6.0.1 -readme-renderer==37.3 -requests==2.28.2 -requests-toolbelt==0.10.1 +readme-renderer==42.0 +requests==2.31.0 +requests-toolbelt==1.0.0 rfc3986==2.0.0 -rich==13.3.3 -secretstorage==3.3.3 -shellingham==1.5.0.post1 +rich==13.7.0 +shellingham==1.5.4 six==1.16.0 -smmap==5.0.0 +smmap==5.0.1 subprocess-tee==0.4.1 +tomli==2.0.1 ; python_version < "3.11" +tox==4.11.4 twine==4.0.2 -typer==0.7.0 -urllib3==1.26.14 -webencodings==0.5.1 -zipp==3.15.0 +typer==0.9.0 +typing-extensions==4.9.0 +urllib3==2.1.0 +virtualenv==20.25.0 +zipp==3.17.0 # The following packages are considered to be unsafe in a requirements file: # pip +# setuptools diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index c10b666..c9f279d 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -34,7 +34,7 @@ jobs: id: generate_matrix uses: coactions/dynamic-matrix@v1 with: - min_python: "3.8" + min_python: "3.9" max_python: "3.12" other_names: | lint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81c98d1..af71903 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,7 +49,7 @@ repos: hooks: - id: mypy # mypy args needed in order to match mypy cli behavior - args: ["--python-version", "3.8"] + args: ["--python-version", "3.9"] entry: mypy src/ pass_filenames: false additional_dependencies: diff --git a/mypy.ini b/mypy.ini index 25f4d6e..c1befcc 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.8 +python_version = 3.9 color_output = True error_summary = True # TODO(ssbarnea): Remove ignores below: diff --git a/pyproject.toml b/pyproject.toml index ddf407c..b83d7ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [project] # https://peps.python.org/pep-0621/#readme -requires-python = ">=3.8" +requires-python = ">=3.9" dynamic = ["version", "dependencies", "optional-dependencies"] name = "mk" description = "mk" @@ -25,7 +25,6 @@ classifiers = [ "Operating System :: MacOS", "Operating System :: POSIX", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/tox.ini b/tox.ini index 1a9ef5c..e83c352 100644 --- a/tox.ini +++ b/tox.ini @@ -56,13 +56,13 @@ extras = description = Update dependency lock files # Force it to use oldest supported version of python or we would lose ability # to get pinning correctly. -basepython = python3.8 +basepython = python3.9 deps = pip-tools >= 6.12.3 setenv = PIP_CONSTRAINT= commands = - pip-compile --upgrade --resolver=backtracking --no-annotate --strip-extras --output-file=.config/requirements.txt --extra test setup.cfg + pip-compile --upgrade --resolver=backtracking --no-annotate --strip-extras --output-file=.config/requirements.txt --extra test pyproject.toml [testenv:docs] description = Builds docs