From a83a9aea223c039b2d900e87b24753d17dbabf65 Mon Sep 17 00:00:00 2001 From: Mike Henry <11765982+mikemhenry@users.noreply.github.com> Date: Wed, 1 Oct 2025 15:50:01 -0700 Subject: [PATCH] Ensure PEP-639 Support Eventually (2026-Feb-18) the license field needs to be a SPDX license expression. The table with a "file" or "text" key is deprecated. As of version 77.0.3, setuptools supports this new format. See: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1a4f4e4..c3c2abb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools>=64.0", + "setuptools>=77.0.3", "setuptools-scm>=8", ] build-backend = "setuptools.build_meta" @@ -11,7 +11,8 @@ description = "Lead Optimization Mapper 2" readme = "README.md" authors = [{name = "Gaetano Calabro and David Mobley"}] maintainers = [{name = "The Open Free Energy developers", email = "openfreeenergy@omsf.io"}] -license = {text = "MIT"} +license = "MIT" +license-files = ["LICENSE"] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", @@ -53,7 +54,6 @@ lomap = "lomap.dbmol:startup" [tool.setuptools] zip-safe = false include-package-data = true -license-files = ["LICENSE"] [tool.setuptools.packages] find = {namespaces = false}