Skip to content

Commit

Permalink
Drop Python 3.7 (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani authored Nov 14, 2023
1 parent ca7183c commit e70e892
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ repos:
pass_filenames: false
- id: pyupgrade
name: Pyupgrade
entry: pyupgrade --py37-plus
entry: pyupgrade --py38-plus
types: [python]
language: system
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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
Expand Down
19 changes: 2 additions & 17 deletions requirements/linting.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
14 changes: 1 addition & 13 deletions requirements/testing.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit e70e892

Please sign in to comment.