From 90b31092c0ff8a6198a0145ef16f7b951bd4ef45d4131dbd5081b5afbedcb161 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:20:45 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=28 --- python-pyperclip.changes | 5 +++++ python-pyperclip.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pyperclip.changes b/python-pyperclip.changes index 6732255..3aaa44c 100644 --- a/python-pyperclip.changes +++ b/python-pyperclip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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á diff --git a/python-pyperclip.spec b/python-pyperclip.spec index ed61c80..1b8a41c 100644 --- a/python-pyperclip.spec +++ b/python-pyperclip.spec @@ -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