Skip to content

Commit 16793ea

Browse files
Merge pull request #56 from hugovk/add-3.12
Add support for Python 3.12-3.13 and drop EOL 3.7
2 parents 9cae431 + 3dc2b2d commit 16793ea

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

.github/workflows/deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121
- name: Cache
22-
uses: actions/cache@v3
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/.cache/pip
2525
key: deploy-${{ hashFiles('**/pyproject.toml') }}
2626
restore-keys: |
2727
deploy-
2828
2929
- name: Set up Python
30-
uses: actions/setup-python@v4
30+
uses: actions/setup-python@v5
3131
with:
3232
python-version: "3.x"
3333

.github/workflows/main.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
@@ -10,15 +10,16 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
13+
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1414
os: [ubuntu-latest, windows-latest]
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Set up Python
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python }}
22+
allow-prereleases: true
2223
- name: Install hatch
2324
run: python -m pip install --upgrade pip hatch hatch-vcs
2425
- name: Run tests
@@ -27,6 +28,8 @@ jobs:
2728
pre-commit:
2829
runs-on: ubuntu-latest
2930
steps:
30-
- uses: actions/checkout@v3
31-
- uses: actions/setup-python@v4
32-
- uses: pre-commit/action@v3.0.0
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-python@v5
33+
with:
34+
python-version: 3.x
35+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
rev: v3.3.1
44
hooks:
55
- id: pyupgrade
6-
args: [--py37-plus]
6+
args: [--py38-plus]
77
- repo: https://github.com/tox-dev/pyproject-fmt
88
rev: "0.4.1"
99
hooks:

pyproject.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ authors = [
1414
{ name = "Ronny Pfannschmidt", email = "opensource@ronnypfannschmidt.de" },
1515
{ name = "Holger Krekel", email = "holger.krekel@gmail.com" },
1616
]
17-
requires-python = ">=3.7"
17+
requires-python = ">=3.8"
1818
dynamic = [
1919
"version",
2020
]
@@ -27,11 +27,12 @@ classifiers = [
2727
"Operating System :: POSIX",
2828
"Programming Language :: Python :: 3",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.7",
3130
"Programming Language :: Python :: 3.8",
3231
"Programming Language :: Python :: 3.9",
3332
"Programming Language :: Python :: 3.10",
3433
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
35+
"Programming Language :: Python :: 3.13",
3536
"Topic :: Software Development :: Libraries",
3637
"Topic :: Utilities",
3738
]
@@ -58,7 +59,7 @@ dependencies = [
5859
default = "pytest {args}"
5960

6061
[[tool.hatch.envs.test.matrix]]
61-
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
62+
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
6263

6364
[tool.setuptools_scm]
6465

src/iniconfig/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import os
2121

2222
if TYPE_CHECKING:
23-
from typing_extensions import Final
23+
from typing import Final
2424

2525
__all__ = ["IniConfig", "ParseError", "COMMENTCHARS", "iscommentline"]
2626

src/iniconfig/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import TYPE_CHECKING
33

44
if TYPE_CHECKING:
5-
from typing_extensions import Final
5+
from typing import Final
66

77

88
class ParseError(Exception):

0 commit comments

Comments
 (0)