public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyperclip] epel9: Update to 1.9.0
@ 2026-09-21 10:53 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-21 10:53 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pyperclip
Branch : epel9
Commit : aa5f2b90095ae7d3374585986c83f4a4ee02d996
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-10T10:44:07+01:00
Stats  : +53/-12 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pyperclip/c/aa5f2b90095ae7d3374585986c83f4a4ee02d996?branch=epel9

Log:
Update to 1.9.0

---
diff --git a/pyperclip-1.9.0-tests.patch b/pyperclip-1.9.0-tests.patch
new file mode 100644
index 0000000..74bd8bb
--- /dev/null
+++ b/pyperclip-1.9.0-tests.patch
@@ -0,0 +1,37 @@
+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.spec b/python-pyperclip.spec
index c42be86..3c5c24c 100644
--- a/python-pyperclip.spec
+++ b/python-pyperclip.spec
@@ -5,13 +5,18 @@
 %bcond_without doc_pdf
 
 Name:           python-pyperclip
-Version:        1.8.2
-Release:        18%{?dist}
+Version:        1.9.0
+Release:        1%{?dist}
 Summary:        A cross-platform clipboard module for Python
 
 License:        BSD-3-Clause
 URL:            https://github.com/asweigart/pyperclip
 Source0:        %{pypi_source pyperclip}
+
+# Fix test suite for release 1.9.0
+# https://github.com/asweigart/pyperclip/pull/270
+Patch0:         pyperclip-1.9.0-tests.patch
+
 BuildArch:      noarch
 
 %global common_description %{expand:
@@ -34,10 +39,6 @@ BuildRequires:  python3dist(pytest)
 # Support graphical tests in non-graphical environment
 BuildRequires:  xorg-x11-server-Xvfb
 
-# TestGtk (module gtk)
-# (not available; this would be the obsolete PyGTK for GTK2, which never
-# supported Python 3)
-
 # TestQt (module PyQt5.QtWidgets)
 BuildRequires:  python3dist(pyqt5)
 
@@ -49,10 +50,11 @@ BuildRequires:  /usr/bin/xclip
 # figure out why.
 # BuildRequires:  /usr/bin/xsel
 
-# TestWlClipboard (executable wl-copy)
-# These would fail with:
-#   Failed to connect to a Wayland server
-#   error: XDG_RUNTIME_DIR not set in the environment.
+# TestWlClipboard (executables wl-copy/wl-paste)
+# This only works in a Wayland session; otherwise, we get:
+#   error: XDG_RUNTIME_DIR is invalid or not set in the environment.
+#   Failed to connect to a Wayland server: No such file or directory
+#   Note: WAYLAND_DISPLAY is unset (falling back to wayland-0)
 # BuildRequires:  /usr/bin/wl-copy
 # BuildRequires:  /usr/bin/wl-paste
 
@@ -134,7 +136,6 @@ PYTHONPATH="${PWD}/src" %make_build -C docs latex \
 %global __pytest /usr/bin/xvfb-run -a %{python3} -m pytest
 # Explicitly skip backends that we know will fail in the mock environment if
 # their dependencies happen to be present. See notes in the BuildRequires.
-k="${k-}${k+ and }not TestGtk"
 k="${k-}${k+ and }not TestKlipper"
 k="${k-}${k+ and }not TestWlCLipboard"
 k="${k-}${k+ and }not TestXSel"
@@ -155,6 +156,9 @@ k="${k-}${k+ and }not TestXSel"
 %endif
 
 %changelog
+* Thu Sep 10 2026 Benjamin A. Beasley <code@musicinmybrain.net> - 1.9.0-1
+- Update to 1.9.0
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index d99a6e6..05258fb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pyperclip-1.8.2.tar.gz) = ade0cdf2bfdbe3ce807a02b64bb1e839afc9955254ddeb3e0fe7c1dd9fd9fddc11f8386a02590690b039045b46e9103e4d094f1bad3e272f532fda4db5ed1c1a
+SHA512 (pyperclip-1.9.0.tar.gz) = 19865ebdcce99817f92994d14e26e1cd321d85da89f3177794a93981321ac3e39c937cccbcd00c866ccb30591d4720cd97a39fd266ef8378e3a21471ee69606f

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

only message in thread, other threads:[~2026-09-21 10:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 10:53 [rpms/python-pyperclip] epel9: Update to 1.9.0 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