diff --git a/python-coloredlogs.changes b/python-coloredlogs.changes index 7d961f6..5ed2fb2 100644 --- a/python-coloredlogs.changes +++ b/python-coloredlogs.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 21 12:23:28 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Fri Apr 14 12:01:30 UTC 2023 - Matej Cepl + +- Switch to single spec version build for PSP + ------------------------------------------------------------------- Wed Mar 9 09:26:40 UTC 2022 - pgajdos@suse.com diff --git a/python-coloredlogs.spec b/python-coloredlogs.spec index 4ee7c21..0fc5388 100644 --- a/python-coloredlogs.spec +++ b/python-coloredlogs.spec @@ -17,9 +17,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 -%define skip_python36 1 +%{?sle15_python_module_pythons} Name: python-coloredlogs Version: 15.0.1 Release: 0 @@ -35,7 +33,8 @@ BuildRequires: %{python_module capturer >= 2.4} BuildRequires: %{python_module humanfriendly >= 9.1} BuildRequires: %{python_module pytest >= 3.0.3} BuildRequires: %{python_module pytest-cov >= 2.3.1} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module verboselogs >= 1.7} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -57,14 +56,13 @@ pulls in Colorama_ as a dependency and enables ANSI escape sequence translation using Colorama. %prep -%setup -q -n coloredlogs-%{version} -%autopatch -p1 +%autosetup -p1 -n coloredlogs-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/coloredlogs %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -85,6 +83,6 @@ export PATH=%{buildroot}%{_bindir}:$PATH %python_alternative %{_bindir}/coloredlogs %{python_sitelib}/coloredlogs/ %{python_sitelib}/coloredlogs.pth -%{python_sitelib}/coloredlogs-%{version}-py*.egg-info +%{python_sitelib}/coloredlogs-%{version}*-info %changelog