public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-xxhash] epel10.2: Update to 3.8.0 (close RHBZ#2492139)
@ 2026-06-28  8:13 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-28  8:13 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-xxhash
            Branch : epel10.2
            Commit : 44f1dc43803144cc6d6f9b03fe45fe48f580d8e8
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-06-28T09:03:07+01:00
            Stats  : +50/-4 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-xxhash/c/44f1dc43803144cc6d6f9b03fe45fe48f580d8e8?branch=epel10.2

            Log:
            Update to 3.8.0 (close RHBZ#2492139)

- Run tests with pytest, as upstream is gradually adopting it

---
diff --git a/.gitignore b/.gitignore
index 1f82c69..bfee635 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
 /xxhash-3.5.0.tar.gz
 /xxhash-3.6.0.tar.gz
 /xxhash-3.7.0.tar.gz
+/xxhash-3.8.0.tar.gz

diff --git a/0001-Register-the-benchmark-pytest-mark.patch b/0001-Register-the-benchmark-pytest-mark.patch
new file mode 100644
index 0000000..b390bf7
--- /dev/null
+++ b/0001-Register-the-benchmark-pytest-mark.patch
@@ -0,0 +1,36 @@
+From f8f673da115b3684230cf2781248f02acd6760de Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Sun, 28 Jun 2026 06:11:48 +0100
+Subject: [PATCH] =?UTF-8?q?Register=20the=20=E2=80=9Cbenchmark=E2=80=9D=20?=
+ =?UTF-8?q?pytest=20mark?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Avoids warnings of the form:
+
+```
+PytestUnknownMarkWarning: Unknown pytest.mark.benchmark - is this a
+typo?  You can register custom marks to avoid this warning - for
+details, see https://docs.pytest.org/en/stable/how-to/mark.html
+```
+---
+ pyproject.toml | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 81ab8a3..dcbc965 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,8 @@
+ [build-system]
+ requires = ["setuptools>=45"]
+ build-backend = "setuptools.build_meta"
++
++[tool.pytest.ini_options]
++markers = [
++    "benchmark",
++]
+-- 
+2.54.0
+

diff --git a/python-xxhash.spec b/python-xxhash.spec
index 534b19b..9d949f3 100644
--- a/python-xxhash.spec
+++ b/python-xxhash.spec
@@ -1,5 +1,5 @@
 Name:           python-xxhash
-Version:        3.7.0
+Version:        3.8.0
 Release:        %autorelease
 Summary:        Python Binding for xxHash
 
@@ -11,9 +11,16 @@ License:        BSD-2-Clause
 URL:            https://github.com/ifduyue/python-xxhash
 Source:         %{pypi_source xxhash}
 
+# Register the “benchmark” pytest mark
+# https://github.com/ifduyue/python-xxhash/pull/164
+# Cherry-picked to v3.8.0.
+Patch:          0001-Register-the-benchmark-pytest-mark.patch
+
 BuildRequires:  gcc
 BuildRequires:  pkgconfig(libxxhash) >= 0.8.2
 
+BuildRequires:  %{py3_dist pytest}
+
 %global common_description %{expand:
 xxhash is a Python binding for the xxHash library by Yann Collet.}
 
@@ -52,8 +59,10 @@ export XXHASH_LINK_SO='1'
 
 
 %check
-cd tests
-%{py3_test_envvars} %{python3} -m unittest discover
+%pyproject_check_import
+# Benchmarks are not useful to run downstream, and they would not print results
+# when run with the test suite anyway.
+%pytest --import-mode=append --verbose -m 'not benchmark'
 
 
 %files -n python3-xxhash -f %{pyproject_files}

diff --git a/sources b/sources
index aeb720c..57e41db 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (xxhash-3.7.0.tar.gz) = e98b32376c85d474465d2a2685f4837e03d53e000f911b1e2fb1eeaa69512242abce1b8db475a8bf0c79d4ecb1c640b2394c1fbd3e119221c556385c495be2d8
+SHA512 (xxhash-3.8.0.tar.gz) = 4925cfb66d8fbf7ed37d2d5d7b7a785f7c33f8d123fe419c42b66bddaf43d3b6dc57f4f8b89b2754c7aba5dbe5e43aee1da3326eaef5528970a599571f033abb

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-28  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-28  8:13 [rpms/python-xxhash] epel10.2: Update to 3.8.0 (close RHBZ#2492139) Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox