Skip to content

Commit 04dc770

Browse files
committed
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. ******************************************************************************** ```
1 parent 3f0e3e0 commit 04dc770

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010
### Fixed
1111

1212
- Strip a leading UTF-8 BOM from `.env` file contents so the first variable is no longer silently lost when the file is saved with BOM (e.g. by some JetBrains IDEs on Windows) by [@h1whelan] in [#640]
13+
- Fix a package build deprecation warning caused by a non-string `license` value in `pyproject.toml`.
1314

1415
## [1.2.2] - 2026-03-01
1516

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description = "Read key-value pairs from a .env file and set them as environment
88
authors = [
99
{name = "Saurabh Kumar", email = "me+github@saurabh-kumar.com"},
1010
]
11-
license = { text = "BSD-3-Clause" }
11+
license = "BSD-3-Clause"
1212
keywords = [
1313
"environment variables",
1414
"deployments",

0 commit comments

Comments
 (0)