From 55d059e55153323538d1361e2ba6303cfda140ceff229c6ec10b0be458307aea Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Fri, 16 May 2025 13:27:21 +0000 Subject: [PATCH] Accepting request 1277994 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277994 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorful?expand=0&rev=7 --- python-colorful.changes | 5 +++++ python-colorful.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-colorful.changes b/python-colorful.changes index 23ab998..532e19d 100644 --- a/python-colorful.changes +++ b/python-colorful.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 16 09:41:57 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Jan 8 20:42:10 UTC 2024 - Dirk Müller diff --git a/python-colorful.spec b/python-colorful.spec index 8a0c96a..254be18 100644 --- a/python-colorful.spec +++ b/python-colorful.spec @@ -1,7 +1,7 @@ # # spec file for package python-colorful # -# 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 @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-colorful Version: 0.5.6 Release: 0 @@ -25,8 +23,10 @@ Summary: Terminal string styling done right, in Python License: MIT URL: https://github.com/timofurrer/colorful Source: https://github.com/timofurrer/colorful/archive/refs/tags/v%{version}.tar.gz#/colorful-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,10 +40,10 @@ with an easy to use API. %autosetup -p1 -n colorful-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -52,6 +52,7 @@ with an easy to use API. %files %{python_files} %license LICENSE %doc README.md CHANGELOG.md -%{python_sitelib}/* +%{python_sitelib}/colorful +%{python_sitelib}/colorful-%{version}*-info %changelog