Skip to content

Commit b765d37

Browse files
Copilot0xrinegade
andcommitted
Support only Python 3.12 - Remove support for older Python versions
Co-authored-by: 0xrinegade <[email protected]>
1 parent 77ffaef commit b765d37

File tree

3 files changed

+17
-20
lines changed

3 files changed

+17
-20
lines changed

.github/workflows/python-ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
python-version: ['3.9', '3.10', '3.11', '3.12']
16+
python-version: ['3.12']
1717

1818
defaults:
1919
run:
@@ -76,10 +76,10 @@ jobs:
7676
steps:
7777
- uses: actions/checkout@v4
7878

79-
- name: Set up Python 3.11
79+
- name: Set up Python 3.12
8080
uses: actions/setup-python@v5
8181
with:
82-
python-version: '3.11'
82+
python-version: '3.12'
8383

8484
- name: Install dependencies
8585
run: |
@@ -118,10 +118,10 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@v4
120120

121-
- name: Set up Python 3.11
121+
- name: Set up Python 3.12
122122
uses: actions/setup-python@v5
123123
with:
124-
python-version: '3.11'
124+
python-version: '3.12'
125125

126126
- name: Install dependencies
127127
run: |
@@ -150,10 +150,10 @@ jobs:
150150
steps:
151151
- uses: actions/checkout@v4
152152

153-
- name: Set up Python 3.11
153+
- name: Set up Python 3.12
154154
uses: actions/setup-python@v5
155155
with:
156-
python-version: '3.11'
156+
python-version: '3.12'
157157

158158
- name: Install dependencies
159159
run: |

.github/workflows/python-publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
13+
python-version: ['3.12']
1414

1515
defaults:
1616
run:
@@ -54,10 +54,10 @@ jobs:
5454
steps:
5555
- uses: actions/checkout@v4
5656

57-
- name: Set up Python 3.11
57+
- name: Set up Python 3.12
5858
uses: actions/setup-python@v5
5959
with:
60-
python-version: '3.11'
60+
python-version: '3.12'
6161

6262
- name: Install build dependencies
6363
run: |
@@ -103,10 +103,10 @@ jobs:
103103
steps:
104104
- uses: actions/checkout@v4
105105

106-
- name: Set up Python 3.11
106+
- name: Set up Python 3.12
107107
uses: actions/setup-python@v5
108108
with:
109-
python-version: '3.11'
109+
python-version: '3.12'
110110

111111
- name: Download build artifacts
112112
uses: actions/download-artifact@v3
@@ -135,10 +135,10 @@ jobs:
135135
steps:
136136
- uses: actions/checkout@v4
137137

138-
- name: Set up Python 3.11
138+
- name: Set up Python 3.12
139139
uses: actions/setup-python@v5
140140
with:
141-
python-version: '3.11'
141+
python-version: '3.12'
142142

143143
- name: Download build artifacts
144144
uses: actions/download-artifact@v3

python/pyproject.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ authors = [
1111
]
1212
readme = "README.md"
1313
license = {text = "MIT"}
14-
requires-python = ">=3.9"
14+
requires-python = ">=3.12"
1515
classifiers = [
1616
"Development Status :: 3 - Alpha",
1717
"Intended Audience :: Developers",
1818
"License :: OSI Approved :: MIT License",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.9",
21-
"Programming Language :: Python :: 3.10",
22-
"Programming Language :: Python :: 3.11",
2320
"Programming Language :: Python :: 3.12",
2421
"Topic :: Software Development :: Libraries :: Python Modules",
2522
"Topic :: Internet :: WWW/HTTP",
@@ -89,7 +86,7 @@ include = [
8986

9087
[tool.black]
9188
line-length = 88
92-
target-version = ['py39']
89+
target-version = ['py312']
9390
include = '\.pyi?$'
9491
exclude = '''
9592
/(
@@ -111,7 +108,7 @@ use_parentheses = true
111108
ensure_newline_before_comments = true
112109

113110
[tool.mypy]
114-
python_version = "3.9"
111+
python_version = "3.12"
115112
strict = true
116113
warn_return_any = true
117114
warn_unused_configs = true

0 commit comments

Comments
 (0)