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
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pyperclip
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,9 @@ 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
@@ -45,10 +47,10 @@ A clipboard module for Python. It only handles plain text.
%autosetup -p1 -n pyperclip-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -57,6 +59,6 @@ A clipboard module for Python. It only handles plain text.
%files %{python_files}
%license LICENSE.txt
%{python_sitelib}/pyperclip
%{python_sitelib}/pyperclip-%{version}-py*.egg-info
%{python_sitelib}/pyperclip-%{version}.dist-info
%changelog