From 8323cb9026e7f9579f10b9854a1599faaa773ec7 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 22 Jul 2025 23:40:32 +0200 Subject: [PATCH] PEP 639 compliance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Declare licenses using only these two fields, as per PEP 639: * license: SPDX license expression consisting of one or more license identifiers * license-files: list of license file glob patterns Supported by hatchling ≥ 1.27.0: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license-and-license-files --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b6b420c79..94c30fd41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling", "hatch-vcs"] +requires = ["hatchling>=1.27", "hatch-vcs"] build-backend = "hatchling.build" [project] @@ -8,7 +8,7 @@ description = "Access a multitude of neuroimaging data formats" authors = [{ name = "NiBabel developers", email = "neuroimaging@python.org" }] maintainers = [{ name = "Christopher Markiewicz" }] readme = "README.rst" -license = { text = "MIT License" } +license = "MIT" requires-python = ">=3.9" dependencies = [ "numpy >=1.23", @@ -20,7 +20,6 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Science/Research", - "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.9",