From 2e97561abe6e5b3e0c91baf0ec9b4f62020f6589 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Wed, 9 Apr 2025 15:58:26 +0200 Subject: [PATCH 1/2] Update pyproject license schema according to deprecation warnings * Building wheel... /tmp/build-env-vi5sasbz/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: 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`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! corresp(dist, value, root_dir) /tmp/build-env-vi5sasbz/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: 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. ******************************************************************************** --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f37b3de84b..bbb64549e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,13 +14,13 @@ requires-python = ">=3.10,<3.14" authors = [{ name = "pymc-devs", email = "pymc.devs@gmail.com" }] description = "Optimizing compiler for evaluating mathematical expressions on CPUs and GPUs." readme = "README.rst" -license = { file = "LICENSE.txt" } +license = "BSD-3-Clause" +license-files = ["LICENSE.txt"] classifiers = [ "Development Status :: 6 - Mature", "Intended Audience :: Education", "Intended Audience :: Science/Research", "Intended Audience :: Developers", - "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Software Development :: Code Generators", "Topic :: Software Development :: Compilers", From 74378de9df79f354d8d38e419acb5556dd33fe05 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Wed, 9 Apr 2025 16:14:44 +0200 Subject: [PATCH 2/2] Update setuptools in Pyodide workflow --- .github/workflows/pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3e5f674a52..fe6cc96ff4 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -113,7 +113,7 @@ jobs: python-version: '3.11' - name: Install dependencies - run: pip install numpy versioneer wheel + run: pip install --upgrade setuptools numpy versioneer wheel - name: Build universal wheel run: |