Skip to content

Commit

Permalink
Support Py 3.12 and drop Py 3.7 (#2164)
Browse files Browse the repository at this point in the history
* Support Py 3.12 and drop Py 3.7

* Remove unused lint ignore statement
  • Loading branch information
facelessuser authored Sep 2, 2023
1 parent 605728a commit 40abeb6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ jobs:
max-parallel: 4
matrix:
platform: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
include:
- python-version: 3.7
tox-env: py37
- python-version: 3.8
tox-env: py38
- python-version: 3.9
Expand All @@ -29,6 +27,8 @@ jobs:
tox-env: py310
- python-version: '3.11'
tox-env: py311
- python-version: '3.12'
tox-env: py312
# exclude:
# - platform: windows-latest
# python-version: 3.10
Expand All @@ -45,6 +45,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Set up development Python ${{ matrix.python-version }}
if: endsWith(matrix.python-version, '-dev')
uses: deadsnakes/[email protected]
Expand Down
5 changes: 5 additions & 0 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 10.3.0

- **NEW**: Officially support Python 3.12.
- **NEW**: Drop Python 3.7 support.

## 10.2.1

- **FIX**: Tabbed: Fix regression.
Expand Down
3 changes: 1 addition & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Dynamically define some metadata."""
import os

from hatchling.metadata.plugin.interface import MetadataHookInterface


Expand Down Expand Up @@ -29,11 +28,11 @@ def update(self, metadata):
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Filters",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "pymdown-extensions"
description = "Extension pack for Python Markdown."
readme = "README.md"
license = "MIT"
requires-python = ">=3.7"
requires-python = ">=3.8"
authors = [
{ name = "Isaac Muse", email = "[email protected]" },
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def gather_test_params():
for k, v in cfg.get(key, util.OrderedDict()).items():
if k == 'css':
for css in v:
test_cfg[k].append(css) # noqa: PERF402
test_cfg[k].append(css)
continue
for k1, v1 in v.items():
if v1 is not None:
Expand Down

0 comments on commit 40abeb6

Please sign in to comment.