Skip to content

Commit 28d8eae

Browse files
committed
Declare the licence as an SPDX expression
PyPI rendered the entire MIT text where the licence name belongs, because license = { file = "LICENSE" } hands the file's contents to the metadata. PEP 639 replaced that with an SPDX expression plus a separate license-files entry, which produces License-Expression: MIT. The License :: OSI Approved classifier goes with it: the two forms cannot be combined, and packaging tools reject a distribution that carries both.
1 parent 02f2316 commit 28d8eae

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling>=1.27"]
33
build-backend = "hatchling.build"
44

55
[project]
66
name = "waapi"
7-
version = "0.1.0"
7+
version = "0.1.1"
88
description = "Official Python SDK for the WaAPI REST API"
99
readme = "README.md"
10-
license = { file = "LICENSE" }
10+
# PEP 639: an SPDX expression, not the file. The table form made PyPI
11+
# render the whole licence text where the licence name belongs.
12+
license = "MIT"
13+
license-files = ["LICENSE"]
1114
requires-python = ">=3.9"
1215
authors = [{ name = "WaAPI", email = "info@waapi.app" }]
1316
keywords = ["waapi", "messaging", "api", "sdk", "automation", "chatbot"]
1417
classifiers = [
1518
"Development Status :: 4 - Beta",
1619
"Intended Audience :: Developers",
17-
"License :: OSI Approved :: MIT License",
1820
"Programming Language :: Python :: 3",
1921
"Programming Language :: Python :: 3.9",
2022
"Programming Language :: Python :: 3.10",

src/waapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
client.send_message(chat_id="4915112345678@c.us", message="Hello")
77
"""
88

9-
__version__ = "0.1.0"
9+
__version__ = "0.1.1"
1010

1111
from .client import AsyncWaAPI, WaAPI
1212
from .exceptions import (

0 commit comments

Comments
 (0)