From 29f33f49ad821d3666f6d9cbdd656cfeb6d67921 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 11 May 2025 20:13:30 +0200 Subject: [PATCH 1/3] MNT: fix a few warnings that show up when sdist or wheel is built The warnings were: ``` warning: no files found matching 'tox.ini' Running command Preparing metadata (pyproject.toml) /tmp/pip-build-env-ua_ysm8p/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` --- MANIFEST.in | 2 +- setup.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 005115f187..c813a86a82 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,6 @@ include README.rst RELEASE.rst include LICENSE -include Makefile tox.ini +include Makefile include pyproject.toml graft LICENSES diff --git a/setup.py b/setup.py index caf536da47..ff623c5212 100644 --- a/setup.py +++ b/setup.py @@ -157,7 +157,6 @@ def get_long_description(): "Environment :: Console", "Intended Audience :: Science/Research", "Intended Audience :: Financial and Insurance Industry", - "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: C", "Programming Language :: Python", From b6ccfa72cc2899d056f8ede40e02645acfba43df Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 11 May 2025 20:19:25 +0200 Subject: [PATCH 2/3] BLD: remove `wheel` as a build dependency from pyproject.toml This hasn't been necessary in a long time. `setuptools` takes care of building a wheel, and whatever dependency it may need for that. --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8436663bda..074264c4f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,6 @@ requires = [ "setuptools", "versioneer", - "wheel", # Comments on numpy build requirement range: # # 1. >=2.0.x is the numpy requirement for wheel builds for distribution From d992f79fdf8820c846aa7b8d3ec78b95f892fb80 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 11 May 2025 20:24:50 +0200 Subject: [PATCH 3/3] MNT: fix missing `build-backend` key in pyproject.toml This is a clear bug, `setuptools` only accepts having a `build-requires` section but no `build-backend` key either accidentally or for historical reasons, and will stop doing so at some point. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 074264c4f1..876a48ee5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ requires = [ # it should not be loosened more than that. "numpy>=2,<2.5" ] +build-backend = "setuptools.build_meta" [tool.pytest.ini_options]