From fce925e02b85344ef77559e8c5e85b189774bfefb3290141c4d5403d6a841223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 3 Oct 2024 17:53:48 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-astunparse revision 811aefabf60fb25ecb30c8aee4c16ef9 --- python-astunparse.changes | 5 +++++ python-astunparse.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-astunparse.changes b/python-astunparse.changes index cc98d9d..0675496 100644 --- a/python-astunparse.changes +++ b/python-astunparse.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 20 19:42:26 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Fri Apr 21 12:22:15 UTC 2023 - Dirk Müller diff --git a/python-astunparse.spec b/python-astunparse.spec index fed634d..5fab8a8 100644 --- a/python-astunparse.spec +++ b/python-astunparse.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-astunparse Version: 1.6.3 @@ -30,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/a/astunparse/astu Patch0: astunparse-pr57-py39.patch # https://github.com/simonpercivall/astunparse/pull/59 Patch1: fix-formatted-value.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six >= 1.6.1} BuildRequires: %{python_module wheel >= 0.23.0} @@ -56,14 +56,14 @@ Added to this is a pretty-printing dump utility function. %autosetup -p1 -n astunparse-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # fails to parse the 32bit stdlib -%if "%_lib" == "lib64" +%if "%{_lib}" == "lib64" %check %pyunittest discover -v %endif