From 5aecab2a5da44ac57ab05459555030602bdbb561f5d2a19d64f335e51ed44920 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 May 2025 15:16:30 +0000 Subject: [PATCH] Accepting request 1277752 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277752 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-completion?expand=0&rev=7 --- python-click-completion.changes | 5 +++++ python-click-completion.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-click-completion.changes b/python-click-completion.changes index 30bfbe6..aab8c54 100644 --- a/python-click-completion.changes +++ b/python-click-completion.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 15 13:19:48 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Mar 31 12:13:46 UTC 2020 - Marketa Calabkova diff --git a/python-click-completion.spec b/python-click-completion.spec index 7f59dc0..49cf87f 100644 --- a/python-click-completion.spec +++ b/python-click-completion.spec @@ -1,7 +1,7 @@ # # spec file for package python-click-completion # -# Copyright (c) 2020 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-click-completion Version: 0.5.2 Release: 0 @@ -25,17 +24,19 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/click-contrib/click-completion Source: https://github.com/click-contrib/click-completion/archive/v%{version}.tar.gz#/click-completion-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Jinja2 Requires: python-click Requires: python-shellingham Requires: python-six +BuildArch: noarch %ifpython2 Requires: python-enum34 %endif -BuildArch: noarch %python_subpackages %description @@ -47,15 +48,16 @@ sed -i '1 {/^#!/d}' click_completion/*.py examples/* chmod a-x examples/* %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md examples/ %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/click[-_]completion +%{python_sitelib}/click[-_]completion-%{version}*-info %changelog