17
0

5 Commits

Author SHA256 Message Date
1357318fb3 Accepting request 1284642 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1284642
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyperclip?expand=0&rev=13
2025-06-11 14:19:10 +00:00
90b31092c0 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=28
2025-06-11 06:20:45 +00:00
572dcb32e5 Accepting request 1208665 from devel:languages:python
Forwarded request #1207975 from mcalabkova

- 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.
- 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

OBS-URL: https://build.opensuse.org/request/show/1208665
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyperclip?expand=0&rev=12
2024-10-18 13:53:00 +00:00
42a51be9be - Add tests.patch to fix tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=26
2024-10-17 14:54:04 +00:00
f56f8e99b0 Accepting request 1207975 from home:mcalabkova:branches:devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1207975
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=25
2024-10-17 08:05:39 +00:00
5 changed files with 64 additions and 10 deletions

BIN
pyperclip-1.8.2.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
pyperclip-1.9.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,24 @@
-------------------------------------------------------------------
Wed Jun 11 05:49:30 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Oct 14 15:27:29 UTC 2024 - Markéta Machová <mmachova@suse.com>
- 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 <dmueller@suse.com> Fri Apr 21 12:31:07 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyperclip # spec file for package python-pyperclip
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,19 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-pyperclip Name: python-pyperclip
Version: 1.8.2 Version: 1.9.0
Release: 0 Release: 0
Summary: A clipboard module for Python Summary: A clipboard module for Python
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/asweigart/pyperclip URL: https://github.com/asweigart/pyperclip
Source0: https://files.pythonhosted.org/packages/source/p/pyperclip/pyperclip-%{version}.tar.gz 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 setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: unzip BuildRequires: unzip
@@ -41,13 +44,13 @@ BuildRequires: %{python_module pytest}
A clipboard module for Python. It only handles plain text. A clipboard module for Python. It only handles plain text.
%prep %prep
%setup -q -n pyperclip-%{version} %autosetup -p1 -n pyperclip-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -56,6 +59,6 @@ A clipboard module for Python. It only handles plain text.
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/pyperclip %{python_sitelib}/pyperclip
%{python_sitelib}/pyperclip-%{version}-py*.egg-info %{python_sitelib}/pyperclip-%{version}.dist-info
%changelog %changelog

30
tests.patch Normal file
View File

@@ -0,0 +1,30 @@
Index: pyperclip-1.9.0/tests/test_pyperclip.py
===================================================================
--- pyperclip-1.9.0.orig/tests/test_pyperclip.py
+++ pyperclip-1.9.0/tests/test_pyperclip.py
@@ -8,7 +8,7 @@ import platform
#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 @@ class TestOSX(_TestClipboard):
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()