Skip to content

Commit da87a74

Browse files
Drop support for Python 3.8 (#107)
1 parent ab04891 commit da87a74

File tree

6 files changed

+22
-17
lines changed

6 files changed

+22
-17
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
- uses: actions/setup-python@v4
2020
name: Install Python
2121
with:
22-
python-version: "3.11"
22+
python-version: "3.12"
2323

2424
- name: Install cibuildwheel
25-
run: python -m pip install cibuildwheel==2.16.5
25+
run: python -m pip install cibuildwheel==2.21.3
2626

2727
- name: Build wheels
2828
run: python -m cibuildwheel --output-dir wheelhouse
@@ -40,10 +40,13 @@ jobs:
4040
- uses: actions/setup-python@v4
4141
name: Install Python
4242
with:
43-
python-version: "3.11"
43+
python-version: "3.12"
44+
45+
- name: Install build
46+
run: python -m pip install build==1.2.2.post1
4447

4548
- name: Build sdist
46-
run: python setup.py sdist
49+
run: python -m build --sdist
4750

4851
- uses: actions/upload-artifact@v3
4952
with:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
12+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
1313

1414
steps:
1515
- uses: actions/checkout@v3

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Unreleased
2+
3+
- Drop support for Python 3.8; declare support for Python 3.13
4+
15
## 1.10.1
26

37
* Add minimum version requirement (Python 3.8) to metadata

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[project]
22
name = "qcore"
33
version = "1.10.1"
4-
requires-python = ">=3.8"
4+
requires-python = ">=3.9"
55
keywords = ["quora", "core", "common", "utility"]
66
classifiers = [
77
"License :: OSI Approved :: Apache Software License",
88
"Programming Language :: Python",
9-
"Programming Language :: Python :: 3.8",
109
"Programming Language :: Python :: 3.9",
1110
"Programming Language :: Python :: 3.10",
1211
"Programming Language :: Python :: 3.11",
@@ -20,7 +19,7 @@ license = {text = "Apache Software License"}
2019
dynamic = ["readme"]
2120

2221
[tool.black]
23-
target_version = ['py37', 'py38', 'py39', 'py310', 'py311']
22+
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
2423
include = '\.pyi?$'
2524
skip-magic-trailing-comma = true
2625
preview = true
@@ -36,7 +35,7 @@ exclude = '''
3635
'''
3736

3837
[tool.mypy]
39-
python_version = "3.7"
38+
python_version = "3.9"
4039
warn_unused_configs = true
4140

4241
[[tool.mypy.overrides]]
@@ -48,4 +47,4 @@ requires = ["setuptools>=64.0", "cython>=3"]
4847
build-backend = "setuptools.build_meta"
4948

5049
[tool.cibuildwheel]
51-
build = "cp{38,39,310,311,312}-*"
50+
build = "cp{39,310,311,312,313}-*"

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
pytest==7.4.0
2-
mypy==1.8.0
3-
black==24.3.0
1+
pytest==8.3.3
2+
mypy==1.11.2
3+
black==24.10.0

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tox]
22
minversion=2.3.1
33
envlist =
4-
py38,py39,py310,py311,py312,py313
4+
py39,py310,py311,py312,py313
55
mypy
66
black
77
skip_missing_interpreters = True
@@ -14,7 +14,7 @@ commands =
1414
python -X dev -Werror -m pytest qcore
1515

1616
[testenv:mypy]
17-
basepython = python3.8
17+
basepython = python3.9
1818
deps =
1919
-rrequirements.txt
2020

@@ -27,8 +27,7 @@ commands =
2727

2828
[gh-actions]
2929
python =
30-
3.8: py38, mypy
31-
3.9: py39
30+
3.9: py39, mypy
3231
3.10: py310
3332
3.11: py311
3433
3.12: py312, black

0 commit comments

Comments
 (0)