From 0aa6c12628c21d7f6e5bc830fd07c59a426467df8fe44bf72c6c48b9c56737e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 12:22:14 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docopt?expand=0&rev=22 --- python-docopt.changes | 5 +++++ python-docopt.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-docopt.changes b/python-docopt.changes index 87097a7..f731420 100644 --- a/python-docopt.changes +++ b/python-docopt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 12:22:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Jan 30 15:11:31 UTC 2024 - Antonio Larrosa diff --git a/python-docopt.spec b/python-docopt.spec index 4ada517..620df66 100644 --- a/python-docopt.spec +++ b/python-docopt.spec @@ -1,7 +1,7 @@ # # spec file for package python-docopt # -# 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 @@ -25,7 +25,9 @@ License: MIT Group: Development/Languages/Python URL: http://docopt.org Source: https://files.pythonhosted.org/packages/source/d/docopt/docopt-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -44,16 +46,17 @@ and instead can write only the help message. sed -i "s|#! %{_bindir}/env python||" examples/git/git.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE-MIT %doc README.rst %doc examples/ -%{python_sitelib}/* +%{python_sitelib}/docopt +%{python_sitelib}/docopt-%{version}*-info %changelog