From 00f98cd3e492a146b674657e1f0decf85c06cec9 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Fri, 23 Oct 2026 07:53:30 +0000 Subject: [PATCH 1/3] memory-allocator: Add version 0.2.1 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/memory-allocator.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/memory-allocator.yaml b/docs/packages/memory-allocator.yaml index 766a4a4c1e76..9da9734f9262 100644 --- a/docs/packages/memory-allocator.yaml +++ b/docs/packages/memory-allocator.yaml @@ -30,3 +30,4 @@ versions: - filename: memory_allocator-0.2.0-cp314-cp314t-musllinux_1_2_riscv64.whl sha256: c1dee186c3a3f3dce157399fb4be801c1731bafa6d61307474a323baea253f56 requires-python: '>=3.12' +- version: 0.2.1 From ed7482c0f0743f7f587e7124e2264159bffa916e Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 24 Oct 2026 15:25:18 +0800 Subject: [PATCH 2/3] memory-allocator: Carry the licence patch to 0.2.1, build it from its v0.2.1 tag without cp312 --- ...-or-later-LICENSE-in-the-wheel-s-dis.patch | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 patches/memory-allocator/0.2.1/0001-ship-the-GPL-3.0-or-later-LICENSE-in-the-wheel-s-dis.patch diff --git a/patches/memory-allocator/0.2.1/0001-ship-the-GPL-3.0-or-later-LICENSE-in-the-wheel-s-dis.patch b/patches/memory-allocator/0.2.1/0001-ship-the-GPL-3.0-or-later-LICENSE-in-the-wheel-s-dis.patch new file mode 100644 index 000000000000..1658514a6ba3 --- /dev/null +++ b/patches/memory-allocator/0.2.1/0001-ship-the-GPL-3.0-or-later-LICENSE-in-the-wheel-s-dis.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Sat, 24 Oct 2026 09:00:00 +0200 +Subject: [PATCH] ship the GPL-3.0-or-later LICENSE in the wheel's dist-info + +pyproject.toml declares `license = "GPL-3.0-or-later"` (PEP 639 SPDX +expression) but never lists a `license-files` glob, and pyproject-metadata +(the library meson-python's build backend uses to assemble wheel metadata) +only ever includes files named in that key: there is no implicit +LICEN[CS]E*/COPYING*/NOTICE* fallback the way some other backends provide. +As a result every wheel upstream publishes (verified against the real +memory_allocator-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl from PyPI) +carries no LICENSE file at all. + +Declaring `license-files = ["LICENSE"]` makes meson-python copy the +repository's root LICENSE into dist-info/licenses/LICENSE. + +Upstream-Status: To upstream [not yet submitted; no fork of sagemath/memory_allocator to push from] +--- + pyproject.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pyproject.toml b/pyproject.toml +index b64aa2f..29380dc 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -12,6 +12,7 @@ authors = [ + requires-python = ">=3.13" + readme = "README.md" + license = "GPL-3.0-or-later" ++license-files = ["LICENSE"] + classifiers = [ + "Development Status :: 6 - Mature", + "Intended Audience :: Science/Research", +-- +2.43.0 + From 3aa3b284b2ef8e47478df74b895c08ec9132868d Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sat, 24 Oct 2026 15:25:45 +0800 Subject: [PATCH 3/3] memory-allocator: Build 0.2.1 from its v0.2.1 tag and skip cp312 (requires Python >=3.13) --- .github/workflows/build-memory-allocator.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-memory-allocator.yml b/.github/workflows/build-memory-allocator.yml index 85e143fd5a3d..971c889c1814 100644 --- a/.github/workflows/build-memory-allocator.yml +++ b/.github/workflows/build-memory-allocator.yml @@ -36,7 +36,8 @@ env: # The v0.2.0 tag was left behind by a history rewrite around the meson # migration and predates the version bump (pyproject.toml there still # reads 0.1.4); this commit's tree is byte-identical to the released - # 0.2.0 PyPI sdist. Update alongside MEMORY_ALLOCATOR_VERSION. + # 0.2.0 PyPI sdist. It is used for 0.2.0 only: later releases (0.2.1) are + # built from their own v tag. MEMORY_ALLOCATOR_REF: 879b51b922d0ef31ef7bbc6c9d287f600a20bfbd MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64 MUSLLINUX_RISCV64_IMAGE: quay.io/pypa/musllinux_1_2_riscv64 @@ -60,16 +61,20 @@ jobs: version: ${{ fromJSON(needs.setup.outputs.versions) }} python: ["cp312", "cp313", "cp314", "cp314t"] libc: [manylinux, musllinux] + exclude: + # 0.2.1 raised requires-python to >=3.13, so there is no cp312 build. + - version: '0.2.1' + python: cp312 env: MEMORY_ALLOCATOR_VERSION: ${{ matrix.version }} steps: - - name: Checkout memory_allocator ${{ env.MEMORY_ALLOCATOR_REF }} + - name: Checkout memory_allocator ${{ matrix.version }} uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: sagemath/memory_allocator - ref: ${{ env.MEMORY_ALLOCATOR_REF }} + ref: ${{ matrix.version == '0.2.0' && env.MEMORY_ALLOCATOR_REF || format('v{0}', matrix.version) }} persist-credentials: false - name: Checkout python-wheels