Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.12 and drop EOL 3.7 #372

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
needs: lint
strategy:
matrix:
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu, macos, windows]
include:
- pyver: pypy-3.9
Expand All @@ -63,6 +63,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
allow-prereleases: true
- name: Get pip cache dir
id: pip-cache
run: |
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
rev: '23.7.0'
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+
language_version: python3 # Should be a command that runs python3.8+
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.4.0'
hooks:
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
rev: 'v3.10.1'
hooks:
- id: pyupgrade
args: ['--py36-plus']
args: ['--py38-plus']
- repo: https://github.com/PyCQA/flake8
rev: '6.1.0'
hooks:
Expand Down
1 change: 1 addition & 0 deletions CHANGES/372.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for Python 3.12 and drop EOL 3.7.
8 changes: 1 addition & 7 deletions async_timeout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
import sys
import warnings
from types import TracebackType
from typing import Optional, Type


if sys.version_info >= (3, 8):
from typing import final
else:
from typing_extensions import final
from typing import Optional, Type, final


if sys.version_info >= (3, 11):
Expand Down
8 changes: 2 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,19 @@ 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
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12

[options]
python_requires = >=3.7
python_requires = >=3.8
packages =
async_timeout
zip_safe = True
include_package_data = True

install_requires =
typing_extensions>=3.6.5; python_version < "3.8"


[flake8]
exclude = .git,.env,__pycache__,.eggs
max-line-length = 88
Expand Down
Loading