From 3fe5dd09dbfdd7e20b375d165a6e518aa0bf79fe Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Wed, 8 Nov 2023 13:56:17 +0330 Subject: [PATCH] Drop Python 3.7 --- .github/workflows/ci.yml | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 5 ++--- requirements/linting.txt | 19 ++----------------- requirements/testing.txt | 14 +------------- 5 files changed, 7 insertions(+), 35 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 597ec4c8..3cc41fd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos, windows] - python: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] + python: ['3.8', '3.9', '3.10', '3.11', '3.12'] env: PYTHON: ${{ matrix.python }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a66b8d8d..b0b7c3f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,6 @@ repos: pass_filenames: false - id: pyupgrade name: Pyupgrade - entry: pyupgrade --py37-plus + entry: pyupgrade --py38-plus types: [python] language: system diff --git a/pyproject.toml b/pyproject.toml index 8e1a5f15..c7a0c5ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,6 @@ classifiers = [ 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3 :: Only', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', @@ -39,7 +38,7 @@ classifiers = [ 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Internet', ] -requires-python = '>=3.7' +requires-python = '>=3.8' dependencies = [ 'pydantic>=2.3.0', 'python-dotenv>=0.21.0', @@ -86,7 +85,7 @@ extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I'] flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'} mccabe = { max-complexity = 14 } isort = { known-first-party = ['pydantic_settings', 'tests'] } -target-version = 'py37' +target-version = 'py38' [tool.black] color = true diff --git a/requirements/linting.txt b/requirements/linting.txt index e0b3c869..152c7006 100644 --- a/requirements/linting.txt +++ b/requirements/linting.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.7 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --output-file=requirements/linting.txt requirements/linting.in @@ -16,11 +16,6 @@ filelock==3.12.0 # via virtualenv identify==2.5.24 # via pre-commit -importlib-metadata==6.6.0 - # via - # click - # pre-commit - # virtualenv mypy==1.3.0 # via -r requirements/linting.in mypy-extensions==1.0.0 @@ -51,20 +46,10 @@ tomli==2.0.1 # via # black # mypy -typed-ast==1.5.4 - # via - # black - # mypy typing-extensions==4.6.2 - # via - # black - # importlib-metadata - # mypy - # platformdirs + # via mypy virtualenv==20.23.0 # via pre-commit -zipp==3.15.0 - # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/requirements/testing.txt b/requirements/testing.txt index 5dfcb5d2..5bf3ce93 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.7 +# This file is autogenerated by pip-compile with Python 3.8 # by the following command: # # pip-compile --output-file=requirements/testing.txt requirements/testing.in @@ -12,11 +12,6 @@ coverage[toml]==7.2.6 # via -r requirements/testing.in exceptiongroup==1.1.1 # via pytest -importlib-metadata==6.6.0 - # via - # click - # pluggy - # pytest iniconfig==2.0.0 # via pytest markdown-it-py==2.2.0 @@ -58,14 +53,7 @@ tomli==2.0.1 # black # coverage # pytest -typed-ast==1.5.4 - # via black typing-extensions==4.6.2 # via # black - # importlib-metadata - # markdown-it-py - # platformdirs # rich -zipp==3.15.0 - # via importlib-metadata