From ecc5154732d829d5872853a519dce19e843fae244100e3cc1a348cc08b6a6eab Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 29 Aug 2024 04:08:29 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mando?expand=0&rev=18 --- python-mando.changes | 5 +++++ python-mando.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-mando.changes b/python-mando.changes index 5a94661..255f8b2 100644 --- a/python-mando.changes +++ b/python-mando.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 29 04:08:07 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Aug 28 09:19:47 UTC 2024 - pgajdos@suse.com diff --git a/python-mando.spec b/python-mando.spec index 0563731..1503d45 100644 --- a/python-mando.spec +++ b/python-mando.spec @@ -26,7 +26,9 @@ URL: https://mando.readthedocs.org/ Source: https://files.pythonhosted.org/packages/source/m/mando/mando-%{version}.tar.gz # https://github.com/rubik/mando/pull/57 Patch0: python-mando-no-python2.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Suggests: python-rst2ansi @@ -45,10 +47,10 @@ applications. sed -i -e '/^#!\//, 1d' mando/tests/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -58,6 +60,6 @@ sed -i -e '/^#!\//, 1d' mando/tests/*.py %license LICENSE %doc README.rst %{python_sitelib}/mando -%{python_sitelib}/mando-*-info +%{python_sitelib}/mando-%{version}.dist-info %changelog