From 29e0273ed46e0544d7664d599012cf953c4812de Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 10 May 2025 16:29:10 +0200 Subject: [PATCH 1/2] Chore: Update project metadata to use SPDX license identifier (PEP 639) Adjust package metadata to be compliant with PEP 639. It was also suggested by warning messages emitted by `python -m build`. - https://peps.python.org/pep-0639/ --- pyproject.toml | 3 +-- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 19a0a7c9..00e5056f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,11 +15,10 @@ description = "CrateDB Python Client" authors = [{ name = "Crate.io", email = "office@crate.io" }] requires-python = ">=3.10" readme = "README.rst" -license = { file = "LICENSE"} +license = "Apache-2.0" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", diff --git a/setup.py b/setup.py index 8feb4be4..7f32be0c 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,8 @@ def read(path): long_description=long_description, long_description_content_type="text/x-rst", platforms=["any"], - license="Apache License 2.0", + license="Apache-2.0", + license_files=["LICENSE"], keywords="cratedb db api dbapi database sql http rdbms olap", packages=find_namespace_packages("src"), package_dir={"": "src"}, @@ -82,7 +83,6 @@ def read(path): classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", From 693ff94f89b68f4f177c84974a210391a3a0bcaf Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 10 May 2025 16:26:30 +0200 Subject: [PATCH 2/2] Dependencies: Update to verlib2>=0.3 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7f32be0c..6ccde7b3 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ def read(path): install_requires=[ "orjson<4", "urllib3", - "verlib2", + "verlib2>=0.3", ], extras_require={ "doc": [