From 62283b74dd9112585a2c6f6f9062bec51c12a226f7ba121319e9c7a309f7e274 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 10 Oct 2025 21:00:35 +0000 Subject: [PATCH] - update to 1.11.0: * Fix pyproject * Pyperclip now "stringifies" all data types by passing it to str() (or globals()['__builtins__'].unicode on Python 2), so passing [1, 2, 3] would * shutil.which() replaces the custom code (except in 2.7 and below which doesn't * Remove waitForPaste() and waitForNewPaste() functions, these aren't something + no changes available - Update to upstream version 1.5.24 - First initial package of version 1.5.11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=32 --- .gitattributes | 23 +++++++ .gitignore | 1 + pyperclip-1.10.0.tar.gz | 3 + pyperclip-1.11.0.tar.gz | 3 + python-pyperclip.changes | 143 +++++++++++++++++++++++++++++++++++++++ python-pyperclip.spec | 64 ++++++++++++++++++ tests.patch | 29 ++++++++ 7 files changed, 266 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyperclip-1.10.0.tar.gz create mode 100644 pyperclip-1.11.0.tar.gz create mode 100644 python-pyperclip.changes create mode 100644 python-pyperclip.spec create mode 100644 tests.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pyperclip-1.10.0.tar.gz b/pyperclip-1.10.0.tar.gz new file mode 100644 index 0000000..2698dc8 --- /dev/null +++ b/pyperclip-1.10.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:180c8346b1186921c75dfd14d9048a6b5d46bfc499778811952c6dd6eb1ca6be +size 12193 diff --git a/pyperclip-1.11.0.tar.gz b/pyperclip-1.11.0.tar.gz new file mode 100644 index 0000000..a2dd377 --- /dev/null +++ b/pyperclip-1.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:244035963e4428530d9e3a6101a1ef97209c6825edab1567beac148ccc1db1b6 +size 12185 diff --git a/python-pyperclip.changes b/python-pyperclip.changes new file mode 100644 index 0000000..8bec8cc --- /dev/null +++ b/python-pyperclip.changes @@ -0,0 +1,143 @@ +------------------------------------------------------------------- +Fri Oct 10 20:59:21 UTC 2025 - Dirk Müller + +- update to 1.11.0: + * Fix pyproject + +------------------------------------------------------------------- +Tue Sep 23 09:10:49 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.10.0 + * docs: fix simple typo, deteremine -> determine + * Remove PyGtk references + * Remove PyQt4 references + * Update docs to remove references to pygtk, PyQt4 + * Remove try-except ladder + * Update index.rst + * wayland: request text type to wl-paste This fixes UnicodeDecodeError + while the clipboards contains images or other types of content + * Fixed wsl encoding + * Fixed wsl encoding + * Add instructions for Wayland + * Updated pytest and dependencies + * Removing detox dependency (I'm rethinking the testing setup.) + * Removing references to gtk module since we dropped it. + * make wayland work without DISPLAY variable + * Adding new authors. + * Mention Wayland in error message + * Update __init__.py +- Refresh tests.patch + +------------------------------------------------------------------- +Wed Jun 11 05:49:30 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + +------------------------------------------------------------------- +Mon Oct 14 15:27:29 UTC 2024 - Markéta Machová + +- Update to 1.9.0 + * Automatically cast the copy() argument to a string for all data types. + * _py3_executable_exists and _py2_executable_exists had swapped names; fixed. + * Pyperclip now "stringifies" all data types by passing it to str() (or + globals()['__builtins__'].unicode on Python 2), so passing [1, 2, 3] would + put '[1, 2, 3]' on the clipboard. + * shutil.which() replaces the custom code (except in 2.7 and below which doesn't + have shutil.which()). + * Remove waitForPaste() and waitForNewPaste() functions, these aren't something + the core library should have. + * Reordered so that xclip is chosen before xsel since xclip is more popular. +- Add tests.patch to fix tests + +------------------------------------------------------------------- +Fri Apr 21 12:31:07 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:51 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Mon Mar 8 09:05:06 UTC 2021 - Dirk Müller + +- update to 1.8.2: + + no changes available + +------------------------------------------------------------------- +Sat Dec 19 10:32:51 UTC 2020 - Dirk Müller + +- update to 1.8.1: + + no changes available + +------------------------------------------------------------------- +Wed Apr 29 10:32:41 UTC 2020 - Dirk Mueller + +- update to 1.8.0 + + no changes available + +------------------------------------------------------------------- +Wed Mar 11 16:55:59 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + +------------------------------------------------------------------- +Mon Oct 14 14:16:16 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + +------------------------------------------------------------------- +Fri Apr 12 13:44:27 UTC 2019 - pgajdos@suse.com + +- version update to 1.7.0 + * Added ability to read/write clipboard by running `python -m pyperclip` +- added sources + https://github.com/asweigart/pyperclip/issues/17 + + LICENSE.txt + +------------------------------------------------------------------- +Tue Dec 4 12:52:38 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Feb 13 08:08:27 UTC 2018 - 9+suse@cirno.systems + +- Update to version 1.6.0 + * Capture stderr of xclip subprocess, fixed issue where emojii + cut off the last character, allowed selection between PRIMARY + and CLIPBOARD for xsel and xclip + * Pyperclip works with qtpy module, set pyqt as lower priority + than xsel/xclip/klipper, add support for PyQt5 + * Fixed the encoding that was set to "uft-8" + * Added lazy loading + +------------------------------------------------------------------- +Sat Mar 11 21:00:33 UTC 2017 - jengelh@inai.de + +- Trim redundant words from descriptions. + +------------------------------------------------------------------- +Mon Mar 6 19:28:45 UTC 2017 - aloisio@gmx.com + +- Update to version 1.5.27 + * Disable broken cygwin implementation until issue 55 can be + fixed + * Fix #51, Replace wcscpy_s with memmove for Windows XP. + * Fix #53, PEP8 changes, STRING_FUNCTION rename + +- Converted to single-spec + +- Updated source URL, license and homepage + +------------------------------------------------------------------- +Sun Jan 3 21:36:53 UTC 2016 - freitag@opensuse.org + +- Update to upstream version 1.5.24 + +------------------------------------------------------------------- +Mon Aug 24 19:00:22 UTC 2015 - freitag@opensuse.org + +- First initial package of version 1.5.11 + diff --git a/python-pyperclip.spec b/python-pyperclip.spec new file mode 100644 index 0000000..a37a61a --- /dev/null +++ b/python-pyperclip.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-pyperclip +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pyperclip +Version: 1.11.0 +Release: 0 +Summary: A clipboard module for Python +License: BSD-3-Clause +URL: https://github.com/asweigart/pyperclip +Source0: https://files.pythonhosted.org/packages/source/p/pyperclip/pyperclip-%{version}.tar.gz +# PATCH-FIX-UPSTREAM tests are broken with 1.9.0 release https://github.com/asweigart/pyperclip/issues/263 +Patch: tests.patch +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: xclip +Requires: xsel +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +A clipboard module for Python. It only handles plain text. + +%prep +%autosetup -p1 -n pyperclip-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE.txt +%{python_sitelib}/pyperclip +%{python_sitelib}/pyperclip-%{version}.dist-info + +%changelog diff --git a/tests.patch b/tests.patch new file mode 100644 index 0000000..992bf20 --- /dev/null +++ b/tests.patch @@ -0,0 +1,29 @@ +diff -Nru pyperclip-1.10.0.orig/tests/test_pyperclip.py pyperclip-1.10.0/tests/test_pyperclip.py +--- pyperclip-1.10.0.orig/tests/test_pyperclip.py 2025-09-18 02:38:44.000000000 +0200 ++++ pyperclip-1.10.0/tests/test_pyperclip.py 2025-09-23 11:10:26.440769794 +0200 +@@ -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, +@@ -134,16 +134,6 @@ + clipboard = init_osx_pyobjc_clipboard() + + +-class TestQt(_TestClipboard): +- if HAS_DISPLAY: +- try: +- import PyQt5.QtWidgets +- except ImportError: +- pass +- else: +- clipboard = init_qt_clipboard() +- +- + class TestXClip(_TestClipboard): + if _executable_exists("xclip"): + clipboard = init_xclip_clipboard()