From 460c02b931913b5385c52e63db0ee86f7b8901ee Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Fri, 3 Jan 2025 09:32:11 -0500 Subject: [PATCH] Patch for maturin 1.8.0 --- 196.patch | 20 ++++++++++++++++++++ python-cramjam.spec | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 196.patch diff --git a/196.patch b/196.patch new file mode 100644 index 0000000..89f17fb --- /dev/null +++ b/196.patch @@ -0,0 +1,20 @@ +From 7a993e9d4418a5e44c0c775a11c438f248b333c7 Mon Sep 17 00:00:00 2001 +From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> +Date: Mon, 30 Dec 2024 19:49:23 +0530 +Subject: [PATCH] Add a `version` key in the `[project]` table + +--- + pyproject.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pyproject.toml b/pyproject.toml +index 038e21ae..acb2a183 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,6 @@ + [project] + name = "cramjam" ++version = "2.9.1" + keywords = ["compression", "decompression", "snappy", "zstd", "bz2", "gzip", "lz4", "brotli", "deflate", "blosc2"] + requires-python = ">=3.8" + license = { file = "LICENSE" } diff --git a/python-cramjam.spec b/python-cramjam.spec index 04faed5..1ac1650 100644 --- a/python-cramjam.spec +++ b/python-cramjam.spec @@ -30,6 +30,10 @@ Source1: get_source %endif +# Updates for Maturin 1.8: add a version key in the project metadata +# https://github.com/milesgranger/cramjam/pull/196 +Patch: %{url}/pull/196.patch + # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86}