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
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools>=68.0", "wheel"]
requires = ["setuptools>=77.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
Expand All @@ -15,7 +15,6 @@ authors = [
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
Expand Down
14 changes: 14 additions & 0 deletions tests/test_pyproject_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Packaging metadata: SPDX license expression, no superseded classifier."""

from __future__ import annotations

import pathlib

ROOT = pathlib.Path(__file__).resolve().parent.parent
PYPROJECT = (ROOT / "pyproject.toml").read_text(encoding="utf-8")


def test_pyproject_uses_spdx_license_expression_not_classifier() -> None:
assert 'license = "MIT"' in PYPROJECT
assert "License :: OSI Approved :: MIT License" not in PYPROJECT
assert "setuptools>=77" in PYPROJECT
Loading