Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
- "3.11"
- "3.12"
- "3.13"
- "3.14"

steps:
- name: Check out repository
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Topic :: Scientific/Engineering :: Mathematics",
Expand Down
30 changes: 30 additions & 0 deletions tests/test_project_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from __future__ import annotations

import re
import tomllib
from pathlib import Path


ROOT = Path(__file__).resolve().parents[1]


def pyproject_python_versions() -> list[str]:
data = tomllib.loads((ROOT / "pyproject.toml").read_text())
classifiers = data["project"]["classifiers"]
return sorted(
match.group(1)
for classifier in classifiers
if (match := re.fullmatch(r"Programming Language :: Python :: (3\.\d+)", classifier))
)


def workflow_python_versions() -> list[str]:
workflow = (ROOT / ".github/workflows/ci.yml").read_text()
return sorted(set(re.findall(r'- "(3\.\d+)"', workflow)))


def test_python_version_support_matches_current_bindings() -> None:
expected = ["3.10", "3.11", "3.12", "3.13"]

assert pyproject_python_versions() == expected
assert workflow_python_versions() == expected
Loading