public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-xxhash] rawhide: Update to 4.0.1 upstream release
@ 2026-08-17  8:47 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-08-17  8:47 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-xxhash
            Branch : rawhide
            Commit : 3bd37000f44db6842937d63d3a7e4a518353b1be
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-08-17T08:58:33+01:00
            Stats  : +24/-15 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-xxhash/c/3bd37000f44db6842937d63d3a7e4a518353b1be?branch=rawhide

            Log:
            Update to 4.0.1 upstream release

- Resolves: rhbz#2514824

Upstream tag: v4.0.1
Upstream commit: e2c1bcf1

Commit co-authored by Packit automation (https://packit.dev/)

---
diff --git a/.gitignore b/.gitignore
index f3c9f28..d535fb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /xxhash-*.tar.gz
+/python-xxhash-4.0.1.tar.gz

diff --git a/README.packit b/README.packit
index dd0af79..68a092a 100644
--- a/README.packit
+++ b/README.packit
@@ -1,3 +1,3 @@
 This repository is maintained by packit.
 https://packit.dev/
-The file was generated using packit 1.16.1.
+The file was generated using packit 1.16.2.post1.dev8+g69d783e81.

diff --git a/python-xxhash.spec b/python-xxhash.spec
index 01c1eb1..1cf8b8b 100644
--- a/python-xxhash.spec
+++ b/python-xxhash.spec
@@ -1,21 +1,20 @@
 Name:           python-xxhash
-Version:        3.8.1
+Version:        4.0.1
 Release:        %autorelease
 Summary:        Python Binding for xxHash
 
-# The entire source is BSD-2-Clause. When the PyPI sdist is used (vs. the
-# GitHub archive), a bundled copy of portions of the xxhash C library is also
-# present in the source archive; it is under the same license and is removed in
-# %%prep.
 License:        BSD-2-Clause
 URL:            https://github.com/ifduyue/python-xxhash
-Source:         %{pypi_source xxhash}
+# If the PyPI sdist were used (vs. the GitHub archive), a bundled copy of
+# portions of the xxhash C library would also be present in the source archive;
+# it is under the same license and should be removed in %%prep.
+Source:         %{url}/archive/v%{version}/python-xxhash-%{version}.tar.gz
 
 BuildSystem:    pyproject
 BuildOption(install): --assert-license xxhash
 
 BuildRequires:  gcc
-BuildRequires:  pkgconfig(libxxhash) >= 0.8.2
+BuildRequires:  pkgconfig(libxxhash) >= 0.8.3
 
 BuildRequires:  %{py3_dist pytest}
 
@@ -31,11 +30,6 @@ Summary:        %{summary}
 %description -n python3-xxhash %{common_description}
 
 
-%prep -a
-# Remove bundled xxhash library
-rm --recursive --verbose deps
-
-
 %build -p
 # Normally, no extra flags are required to link the xxhash shared library, but
 # we are prepared:
@@ -46,9 +40,23 @@ export XXHASH_LINK_SO='1'
 
 
 %check -a
+# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
+ignore="${ignore-} --ignore=tests/test_stubs_pyright.py"
+
+# Avoid importing the “unbuilt” source copy of the package. Simply passing
+# --import-mode=append would handle this almost everywhere, but tests involving
+# subprocesses and subinterpreters assume “in-tree” testing. We emulate that by
+# carefully preparing a directory with just the tests and the “built” package.
+# Note that symlinking the tests into the empty directory is not enough: import
+# paths are constructed relative to the tests, so we must copy them.
+mkdir _empty
+ln --symbolic '%{buildroot}%{python3_sitearch}/xxhash' _empty/
+cp --preserve --recursive tests _empty/
+cd _empty
+
 # 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'
+%pytest --verbose ${ignore-} -m 'not benchmark'
 
 
 %files -n python3-xxhash -f %{pyproject_files}

diff --git a/sources b/sources
index 7a460f2..22c9001 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (xxhash-3.8.1.tar.gz) = dd834acfa80f8916fecd553b192bfaee03895a9ab0b2f812390f9f66b454560060d9f56c16b6a445b798539296ee7ec907ae099f109604b4b1fbdff5b308e890
+SHA512 (python-xxhash-4.0.1.tar.gz) = 754f4901c1f68dbb70cf5479fec04d609515cfa846074b37ddb3e234e0e7446c2517c7a9094c99a4f3478721502bf2fb9e0ccd0c2b5a7241b904d8e20e1cc2d6

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

only message in thread, other threads:[~2026-08-17  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-17  8:47 [rpms/python-xxhash] rawhide: Update to 4.0.1 upstream release 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