From ada97625ae46b6b017f935249e3bce7ecb5ed3f8 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Thu, 21 May 2026 09:38:29 -0500 Subject: [PATCH] Fix a package build deprecation warning This manifests when building the package: ``` pip install build python -m build ``` and the error is: ``` SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` --- CHANGELOG.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00f08f58..8d916c41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Fixed +- Fix a package build deprecation warning caused by a non-string `license` value in `pyproject.toml`. - An unquoted empty value followed by an inline comment (e.g. `KEY= # comment`) is now parsed as an empty string instead of the comment text by [@Noethix55555] in [#663] ## [1.2.3] - 2026-08-16 diff --git a/pyproject.toml b/pyproject.toml index 1753fd89..1619e9d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ description = "Read key-value pairs from a .env file and set them as environment authors = [ {name = "Saurabh Kumar", email = "me+github@saurabh-kumar.com"}, ] -license = { text = "BSD-3-Clause" } +license = "BSD-3-Clause" keywords = [ "environment variables", "deployments",