public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pypdf] rawhide: Update to version 6.15.0
@ 2026-08-11 6:53
0 siblings, 0 replies; only message in thread
From: @ 2026-08-11 6:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pypdf
Branch : rawhide
Commit : 7f8b757c9cbae482e15ad01a7d4417d6353e13b6
Author : Tadej Janež <tadej.j@nez.si>
Date : 2026-08-11T08:39:57+02:00
Stats : +24/-4 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pypdf/c/7f8b757c9cbae482e15ad01a7d4417d6353e13b6?branch=rawhide
Log:
Update to version 6.15.0
Disable newly added RTL (Arabic/Hebrew) text shaping support for now
since Fedora doesn't provide the necessarity dependencies.
Assisted-by: Claude Opus 5
---
diff --git a/python-pypdf.spec b/python-pypdf.spec
index 90fb675..5e81e2e 100644
--- a/python-pypdf.spec
+++ b/python-pypdf.spec
@@ -10,7 +10,7 @@
%global forgeurl https://github.com/py-pdf/pypdf
Name: python-%{srcname}
-Version: 6.14.2
+Version: 6.15.0
Release: %autorelease
Summary: Pure-Python PDF library
@@ -60,7 +60,23 @@ This package provides additional documentation for %{name}.
%endif
%prep
-%autosetup -p1 -n %{srcname}-%{version}
+%autosetup -p1 -n pypdf-%{version}
+
+# Fedora currently doesn't provide python-bidi nor arabic-reshaper, so drop the
+# optional RTL (Arabic/Hebrew) text shaping support: the "rtl_text" extra,
+# and its two entries in the "full" extra.
+# Note that pypdf degrades gracefully,
+# pypdf.generic._appearance_stream.HAS_RTL_SUPPORT becomes False.
+sed -i -e '/^rtl_text = \[$/,/^\]$/d' \
+ -e '/^ *"arabic-reshaper",$/d' \
+ -e '/^ *"python-bidi"$/d' \
+ pyproject.toml
+# Fail loudly rather than silently shipping broken dependencies if upstream
+# reformats the extras in a future release.
+if grep -qE 'arabic-reshaper|python-bidi' pyproject.toml; then
+ echo 'ERROR: RTL extras removal failed, update the sed expressions above' >&2
+ exit 1
+fi
%if %{with docs}
# Use local intersphinx inventory
@@ -90,7 +106,11 @@ rm -rf html/{.buildinfo,.doctrees}
%if %{with tests}
# Deselect tests downloading files from external hosts and tests requiring
# sample files which are not included in the source tarball.
-%pytest -m "not enable_socket and not samples"
+# Additionally, deselect the test_appearance_stream_rtl test which tests the
+# reshaped/reordered RTL output and has no guard for missing
+# python-bidi/arabic-reshaper, which are dropped in %%prep.
+%pytest -m "not enable_socket and not samples" \
+ --deselect tests/test_appearance_stream.py::test_appearance_stream_rtl
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
diff --git a/sources b/sources
index 3fc3627..516495e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pypdf-6.14.2.tar.gz) = 798df3e54a3185a790efbd15f8fc0a0eaff06e6695a4b9529da2108df0391f400f2da483b8cb5cb0c7bc9b131fb54dcc787095787203178853a0fa2573a0428a
+SHA512 (pypdf-6.15.0.tar.gz) = ea4138958ad75707cc536e670420d6cf4c57c4b10f85a46bee763d7b045254aa39d75a4f22303fcc8e104e97581316013f85a084e7baf4ab647e3268792f9dfe
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-11 6:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-11 6:53 [rpms/python-pypdf] rawhide: Update to version 6.15.0
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox