public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyperclip] f45: Update to 1.10.0; drop -doc subpackage with PDF manual (F45+)
@ 2026-09-21 8:03 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-21 8:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pyperclip
Branch : f45
Commit : 96a6c0c7494d2218820ddafaaf86dcfc92dde0f4
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-10T21:54:49+01:00
Stats : +53/-78 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-pyperclip/c/96a6c0c7494d2218820ddafaaf86dcfc92dde0f4?branch=f45
Log:
Update to 1.10.0; drop -doc subpackage with PDF manual (F45+)
---
diff --git a/pyperclip-1.10.0-tests.patch b/pyperclip-1.10.0-tests.patch
new file mode 100644
index 0000000..12eebc2
--- /dev/null
+++ b/pyperclip-1.10.0-tests.patch
@@ -0,0 +1,37 @@
+diff -Naur a/tests/test_pyperclip.py b/tests/test_pyperclip.py
+--- a/tests/test_pyperclip.py 2025-09-18 01:38:44.000000000 +0100
++++ b/tests/test_pyperclip.py 2026-09-10 20:01:40.321872787 +0100
+@@ -8,7 +8,7 @@
+ #import sys
+ #sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
+
+-from pyperclip import _executable_exists, HAS_DISPLAY
++from pyperclip import _executable_exists
+ from pyperclip import (init_osx_pbcopy_clipboard, init_osx_pyobjc_clipboard,
+ init_dev_clipboard_clipboard,
+ init_qt_clipboard,
+@@ -100,11 +100,11 @@
+ self.assertEqual(self.paste(), 'False')
+
+ # All other non-str values raise an exception.
+- with self.assertRaises(PyperclipException):
+- self.copy(None)
++ self.copy(None)
++ self.assertEqual(self.paste(), 'None')
+
+- with self.assertRaises(PyperclipException):
+- self.copy([2, 4, 6, 8])
++ self.copy([2, 4, 6, 8])
++ self.assertEqual(self.paste(), '[2, 4, 6, 8]')
+
+
+ class TestCygwin(_TestClipboard):
+@@ -135,7 +135,7 @@
+
+
+ class TestQt(_TestClipboard):
+- if HAS_DISPLAY:
++ if os.getenv("DISPLAY"):
+ try:
+ import PyQt5.QtWidgets
+ except ImportError:
diff --git a/pyperclip-1.9.0-tests.patch b/pyperclip-1.9.0-tests.patch
deleted file mode 100644
index 74bd8bb..0000000
--- a/pyperclip-1.9.0-tests.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff -Naur a/tests/test_pyperclip.py b/tests/test_pyperclip.py
---- a/tests/test_pyperclip.py 2024-06-18 19:46:25.000000000 +0100
-+++ b/tests/test_pyperclip.py 2026-09-10 10:27:42.140798004 +0100
-@@ -8,7 +8,7 @@
- #import sys
- #sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
-
--from pyperclip import _executable_exists, HAS_DISPLAY
-+from pyperclip import _executable_exists
- from pyperclip import (init_osx_pbcopy_clipboard, init_osx_pyobjc_clipboard,
- init_dev_clipboard_clipboard,
- init_qt_clipboard,
-@@ -100,11 +100,11 @@
- self.assertEqual(self.paste(), 'False')
-
- # All other non-str values raise an exception.
-- with self.assertRaises(PyperclipException):
-- self.copy(None)
-+ self.copy(None)
-+ self.assertEqual(self.paste(), 'None')
-
-- with self.assertRaises(PyperclipException):
-- self.copy([2, 4, 6, 8])
-+ self.copy([2, 4, 6, 8])
-+ self.assertEqual(self.paste(), '[2, 4, 6, 8]')
-
-
- class TestCygwin(_TestClipboard):
-@@ -135,7 +135,7 @@
-
-
- class TestQt(_TestClipboard):
-- if HAS_DISPLAY:
-+ if os.getenv("DISPLAY"):
- try:
- import PyQt5.QtWidgets
- except ImportError:
diff --git a/python-pyperclip.rpmlintrc b/python-pyperclip.rpmlintrc
new file mode 100644
index 0000000..5afd82c
--- /dev/null
+++ b/python-pyperclip.rpmlintrc
@@ -0,0 +1,2 @@
+# This was dropped without replacement.
+addFilter(r" obsolete-not-provided python-pyperclip-doc$")
diff --git a/python-pyperclip.spec b/python-pyperclip.spec
index 8bb9c6d..dffd8cd 100644
--- a/python-pyperclip.spec
+++ b/python-pyperclip.spec
@@ -1,14 +1,9 @@
-# Sphinx-generated HTML documentation is not suitable for packaging; see
-# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
-#
-# We can generate PDF documentation as a substitute.
-%bcond doc_pdf 1
# Test with XWayland, instead of X11?
-%bcond wayland %{undefined el9}
+%bcond wayland 1
Name: python-pyperclip
-Version: 1.9.0
-Release: 2%{?dist}
+Version: 1.10.0
+Release: 1%{?dist}
Summary: A cross-platform clipboard module for Python
License: BSD-3-Clause
@@ -17,12 +12,10 @@ Source: %{pypi_source pyperclip}
# Fix test suite for release 1.9.0
# https://github.com/asweigart/pyperclip/pull/270
-Patch: pyperclip-1.9.0-tests.patch
+Patch: pyperclip-1.10.0-tests.patch
BuildArch: noarch
-BuildRequires: dos2unix
-
# While upstream runs tests directly with Python/unittest, using pytest as the
# runner allows us to more easily skip tests.
BuildRequires: python3dist(pytest)
@@ -74,26 +67,17 @@ functions.}
%package -n python3-pyperclip
Summary: %{summary}
-%description -n python3-pyperclip %{common_description}
-
-
-%package -n python-pyperclip-doc
-Summary: Pyperclip documentation
+# The -doc subpackage with a PDF manual generated using Sphinx was removed for
+# F45+. Since release 0.10.0 of pyperclip, the doc sources are not in the PyPI
+# sdist, and releass are not tagged on GitHub, so it would be inconvenient to
+# produce this, and LaTeX was always a heavy build dependency anyway.
+Obsoletes: python-pyperclip-doc < 0.9.0-3
-%if %{with doc_pdf}
-BuildRequires: make
-BuildRequires: python3dist(sphinx)
-BuildRequires: python3-sphinx-latex
-BuildRequires: latexmk
-%endif
-
-%description -n python-pyperclip-doc
-Documentation for pyperclip
+%description -n python3-pyperclip %{common_description}
%prep
%autosetup -p1 -n pyperclip-%{version}
-dos2unix --keepdate AUTHORS.txt CHANGES.txt README.md docs/*
%generate_buildrequires
@@ -103,12 +87,6 @@ dos2unix --keepdate AUTHORS.txt CHANGES.txt README.md docs/*
%build
%pyproject_wheel
-%if %{with doc_pdf}
-PYTHONPATH="${PWD}/src" %make_build -C docs latex \
- SPHINXOPTS='-j%{?_smp_build_ncpus}'
-%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
-%endif
-
%install
%pyproject_install
@@ -133,18 +111,13 @@ k="${k-}${k+ and }not TestXSel"
%files -n python3-pyperclip -f %{pyproject_files}
%doc AUTHORS.txt
-%doc CHANGES.txt
%doc README.md
-%files -n python-pyperclip-doc
-%license LICENSE.txt
-%if %{with doc_pdf}
-%doc docs/_build/latex/Pyperclip.pdf
-%endif
-
-
%changelog
+* Thu Sep 10 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 1.10.0-1
+- Update to 1.10.0; drop -doc subpackage with PDF manual (F45+)
+
* Thu Sep 10 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 1.9.0-2
- Port to pyproject-rpm-macros (fix RHBZ#2378068)
- Let the EPEL8 branch diverge
diff --git a/sources b/sources
index 05258fb..ead8716 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pyperclip-1.9.0.tar.gz) = 19865ebdcce99817f92994d14e26e1cd321d85da89f3177794a93981321ac3e39c937cccbcd00c866ccb30591d4720cd97a39fd266ef8378e3a21471ee69606f
+SHA512 (pyperclip-1.10.0.tar.gz) = eebb717e78817b34ef932fa916ae24f56ab2f064b2d20541dff06b192f69e3b33d007fe0a49b1b4ba5aeb9a633bab3139a215fce5016bf88013803713c7d402e
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-21 8:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 8:03 [rpms/python-pyperclip] f45: Update to 1.10.0; drop -doc subpackage with PDF manual (F45+) 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