Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build-memory-allocator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<version> 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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/packages/memory-allocator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ludovic Henry <git@ludovic.dev>
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

Loading