From d1bf063350b1bbc62cd9988067604255413a64ef18e679aec896d2056c5756fe Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 10 Oct 2022 07:44:47 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=20 --- python-termcolor.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/python-termcolor.spec b/python-termcolor.spec index 53d652b..ef71ddd 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -25,7 +25,11 @@ License: MIT URL: https://pypi.python.org/pypi/termcolor Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,15 +44,15 @@ Available attributes: bold, dark, underline, blink, reverse, concealed. %setup -q -n termcolor-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license COPYING.txt -%doc CHANGES.rst README.rst +%doc CHANGES.md README.md %{python_sitelib}/* %changelog