From 0d50d8703fe6b2c4188d8fbbc57b90052b798189 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 28 Nov 2025 20:45:34 +0000 Subject: [PATCH] build: use SPDX license expression in Python package metadata License classifiers are replaced with `license`. This is supported since `setuptools` v77.0.0: Without this change we get `SetuptoolsDeprecationWarning: License classifiers are deprecated.` with a reference to --- deltachat-rpc-client/pyproject.toml | 4 ++-- python/pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deltachat-rpc-client/pyproject.toml b/deltachat-rpc-client/pyproject.toml index 178585d82..b62d55969 100644 --- a/deltachat-rpc-client/pyproject.toml +++ b/deltachat-rpc-client/pyproject.toml @@ -1,15 +1,15 @@ [build-system] -requires = ["setuptools>=45"] +requires = ["setuptools>=77"] build-backend = "setuptools.build_meta" [project] name = "deltachat-rpc-client" version = "2.28.0" +license = "MPL-2.0" description = "Python client for Delta Chat core JSON-RPC interface" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: POSIX :: Linux", "Operating System :: MacOS :: MacOS X", "Programming Language :: Python :: 3", diff --git a/python/pyproject.toml b/python/pyproject.toml index 34fd27a47..a0b4099fb 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,10 +1,11 @@ [build-system] -requires = ["setuptools>=45", "wheel", "cffi>=1.0.0", "pkgconfig"] +requires = ["setuptools>=77", "wheel", "cffi>=1.0.0", "pkgconfig"] build-backend = "setuptools.build_meta" [project] name = "deltachat" version = "2.28.0" +license = "MPL-2.0" description = "Python bindings for the Delta Chat Core library using CFFI against the Rust-implemented libdeltachat" readme = "README.rst" requires-python = ">=3.10" @@ -14,7 +15,6 @@ authors = [ classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Programming Language :: Python :: 3", "Topic :: Communications :: Chat", "Topic :: Communications :: Email",