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
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[build-system]
requires = ["setuptools>=64", "setuptools-scm"]
requires = ["setuptools>=77.0.3", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "apiprober"
version = "0.1.0"
description = "Passive API discovery and documentation CLI for undocumented REST services"
readme = "README.md"
license = {text = "MIT"}
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.8"
authors = [
{name = "Lukas Geiger", email = "lukisch@users.noreply.github.com"},
Expand All @@ -16,7 +17,6 @@ keywords = ["api", "api-discovery", "rest-api", "openapi", "documentation", "pas
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
13 changes: 13 additions & 0 deletions test_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,19 @@ def test_readme_exists(self):
assert "ApiProber" in content or "API Prober" in content


class TestPackagingMetadata:
"""Regressionstest für den PEP-639-Lizenzvertrag."""

def test_license_metadata_uses_spdx_and_includes_license_file(self):
"""MIT bleibt explizit, maschinenlesbar und im Paket enthalten."""
pyproject = (API_PROBER_DIR / "pyproject.toml").read_text(encoding="utf-8")

assert 'requires = ["setuptools>=77.0.3", "setuptools-scm"]' in pyproject
assert 'license = "MIT"' in pyproject
assert 'license-files = ["LICENSE"]' in pyproject
assert "License ::" not in pyproject


# ============================================================================
# MAIN (für direktes Ausführen)
# ============================================================================
Expand Down