Skip to content

Commit 40abeb6

Browse files
authored
Support Py 3.12 and drop Py 3.7 (#2164)
* Support Py 3.12 and drop Py 3.7 * Remove unused lint ignore statement
1 parent 605728a commit 40abeb6

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ jobs:
1717
max-parallel: 4
1818
matrix:
1919
platform: [ubuntu-latest, windows-latest]
20-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
20+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
2121
include:
22-
- python-version: 3.7
23-
tox-env: py37
2422
- python-version: 3.8
2523
tox-env: py38
2624
- python-version: 3.9
@@ -29,6 +27,8 @@ jobs:
2927
tox-env: py310
3028
- python-version: '3.11'
3129
tox-env: py311
30+
- python-version: '3.12'
31+
tox-env: py312
3232
# exclude:
3333
# - platform: windows-latest
3434
# python-version: 3.10
@@ -45,6 +45,7 @@ jobs:
4545
uses: actions/setup-python@v4
4646
with:
4747
python-version: ${{ matrix.python-version }}
48+
allow-prereleases: true
4849
- name: Set up development Python ${{ matrix.python-version }}
4950
if: endsWith(matrix.python-version, '-dev')
5051
uses: deadsnakes/action@v1.0.0

docs/src/markdown/about/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 10.3.0
4+
5+
- **NEW**: Officially support Python 3.12.
6+
- **NEW**: Drop Python 3.7 support.
7+
38
## 10.2.1
49

510
- **FIX**: Tabbed: Fix regression.

hatch_build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Dynamically define some metadata."""
22
import os
3-
43
from hatchling.metadata.plugin.interface import MetadataHookInterface
54

65

@@ -29,11 +28,11 @@ def update(self, metadata):
2928
"License :: OSI Approved :: MIT License",
3029
"Operating System :: OS Independent",
3130
"Programming Language :: Python :: 3",
32-
"Programming Language :: Python :: 3.7",
3331
"Programming Language :: Python :: 3.8",
3432
"Programming Language :: Python :: 3.9",
3533
"Programming Language :: Python :: 3.10",
3634
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
3736
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
3837
"Topic :: Software Development :: Libraries :: Python Modules",
3938
"Topic :: Text Processing :: Filters",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "pymdown-extensions"
99
description = "Extension pack for Python Markdown."
1010
readme = "README.md"
1111
license = "MIT"
12-
requires-python = ">=3.7"
12+
requires-python = ">=3.8"
1313
authors = [
1414
{ name = "Isaac Muse", email = "Isaac.Muse@gmail.com" },
1515
]

tests/test_syntax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def gather_test_params():
112112
for k, v in cfg.get(key, util.OrderedDict()).items():
113113
if k == 'css':
114114
for css in v:
115-
test_cfg[k].append(css) # noqa: PERF402
115+
test_cfg[k].append(css)
116116
continue
117117
for k1, v1 in v.items():
118118
if v1 is not None:

0 commit comments

Comments
 (0)