From aeeb223c1313ac9b0b2af5d3b5827304eac7bbe7 Mon Sep 17 00:00:00 2001 From: Sergio Franco Date: Fri, 24 Apr 2026 11:34:42 -0600 Subject: [PATCH] Use PEP 621 table form for project.license (setuptools<77 compat) Lyft's s2ipythonlibrary builder venv pins setuptools==70.1.1, whose pyproject.toml schema validator enforces the pre-PEP-639 `oneOf` rule on `project.license` and rejects the SPDX shorthand (`license = "MIT"`). Downgrade the declaration to the PEP 621 table form and drop the PEP 639 `license-files` key so sdist/bdist_wheel succeeds on both old and new setuptools. The LICENSE file is still shipped through `setup.cfg` (`license_files = LICENSE`) and the maturin build config (`[tool.maturin].include = ["LICENSE"]`). Made-with: Cursor --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f08690d2..b91beb90b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,8 +5,7 @@ description = "Temporal.io Python SDK" authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }] requires-python = ">=3.10" readme = "README.md" -license = "MIT" -license-files = ["LICENSE"] +license = { text = "MIT" } keywords = ["temporal", "workflow"] dependencies = [ "nexus-rpc==1.4.0",