Skip to content

Commit 05379f1

Browse files
wphillipmoorewphillipmoore-claude
andauthored
fix: revert Python 3.10 CI matrix expansion (#323)
Reverts commit 9c8ee2c which broke CI — the validation scripts use tomllib (Python 3.11+) but ran under bare python3 on the 3.10 matrix. The PR auto-merged despite failing gates, which is a separate branch protection bug. This reverts commit 9c8ee2c. Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent 9c8ee2c commit 05379f1

8 files changed

Lines changed: 11 additions & 211 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
needs: docs-only
136136
strategy:
137137
matrix:
138-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
138+
python-version: ["3.12", "3.13", "3.14"]
139139

140140
steps:
141141
- name: Docs-only short-circuit

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ readme = "README.md"
1010
license = "GPL-3.0-or-later"
1111
license-files = ["LICENSE"]
1212
authors = [{ name = "Phillip Moore", email = "w.phillip.moore@gmail.com" }]
13-
requires-python = ">=3.10,<4.0"
13+
requires-python = ">=3.12,<4.0"
1414
keywords = ["ibm", "mq", "mqsc", "rest-api", "messaging", "queue-manager"]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"Intended Audience :: Developers",
1818
"Operating System :: OS Independent",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.10",
21-
"Programming Language :: Python :: 3.11",
2220
"Programming Language :: Python :: 3.12",
2321
"Programming Language :: Python :: 3.13",
2422
"Programming Language :: Python :: 3.14",
@@ -64,7 +62,7 @@ pymqrest = ["py.typed", "mapping-data.json"]
6462

6563
[tool.ruff]
6664
line-length = 120
67-
target-version = "py310"
65+
target-version = "py312"
6866
src = ["src", "tests"]
6967
extend-exclude = ["docs/archive"]
7068

@@ -105,7 +103,7 @@ docstring-quotes = "double"
105103
quote-style = "double"
106104

107105
[tool.mypy]
108-
python_version = "3.10"
106+
python_version = "3.12"
109107
strict = true
110108
warn_return_any = true
111109
warn_unused_configs = true

scripts/dev/validate_changelog.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from __future__ import annotations
55

66
import re
7-
from pathlib import Path
8-
97
import tomllib
8+
from pathlib import Path
109

1110

1211
def load_version() -> str:

scripts/dev/validate_dependency_specs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from __future__ import annotations
55

66
import re
7-
from pathlib import Path
8-
97
import tomllib
8+
from pathlib import Path
109

1110
ANCHOR_PREFIX = "# Anchor:"
1211
DEPENDENCY_RECORDS_DIR = Path("docs/dependencies")

scripts/dev/validate_pypi_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
import json
88
import re
99
import ssl
10+
import tomllib
1011
import urllib.error
1112
import urllib.request
1213
from dataclasses import dataclass
1314
from pathlib import Path
1415
from typing import TYPE_CHECKING
1516

16-
import tomllib
17-
1817
if TYPE_CHECKING:
1918
from collections.abc import Sequence
2019

scripts/dev/validate_version.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
import os
88
import re
99
import subprocess
10+
import tomllib
1011
from dataclasses import dataclass
1112
from pathlib import Path
1213
from typing import TYPE_CHECKING
1314

14-
import tomllib
15-
1615
if TYPE_CHECKING:
1716
from collections.abc import Sequence
1817

tests/integration/test_mq_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def _wait_for_rest_ready(config: IntegrationConfig) -> None:
638638
while time.monotonic() < deadline:
639639
try:
640640
session.display_qmgr()
641-
except MQRESTError as error: # noqa: PERF203
641+
except MQRESTError as error:
642642
last_error = error
643643
time.sleep(MQ_READY_SLEEP_SECONDS)
644644
else:

uv.lock

Lines changed: 2 additions & 196 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)