From f46c5167497b1cfd3ca715364df332cc659f3481 Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 7 Oct 2025 21:46:07 +0200 Subject: [PATCH 1/2] pyproject: Pull available metadata from Cargo The Trove license classifiers are obsolete now that SPDX based explicit metadata is available. Closes: https://github.com/chrysn/cbor-diag-py/issues/16 --- pyproject.toml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a5af7c4..6a07757 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,17 +4,21 @@ build-backend = "maturin" [project] name = "cbor-diag" -requires-python = ">=3.7" classifiers = [ "Development Status :: 6 - Mature", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", - "License :: OSI Approved :: MIT License", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Rust", ] -dynamic = ["version"] +dynamic = [ + "description", + "license", + "readme", + "requires-python", + "urls", + "version", +] [tool.maturin] features = ["pyo3/extension-module"] From 4c7f512249653ce9faf60db83116dfa3498ec8ff Mon Sep 17 00:00:00 2001 From: chrysn Date: Tue, 7 Oct 2025 22:23:10 +0200 Subject: [PATCH 2/2] pyproject: Add documentation link Workaround-For: https://github.com/PyO3/maturin/pull/2760 --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6a07757..c02214b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,10 +16,15 @@ dynamic = [ "license", "readme", "requires-python", - "urls", + # "urls", disabled, see project.urls "version", ] +[project.urls] +# Workaround for +Documentation = "https://cbor-diag.readthedocs.io" +"Source Code" = "https://github.com/chrysn/cbor-diag-py" + [tool.maturin] features = ["pyo3/extension-module"] python-source = "python"