From e89d6208f8d26b91d57e7141e469e1c57e9908de620449e10369fc17bd2c0966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 9 Jul 2025 09:48:42 +0000 Subject: [PATCH] try pytest OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ctypesgen?expand=0&rev=5 --- python-ctypesgen.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-ctypesgen.spec b/python-ctypesgen.spec index 7e72f54..6cf96db 100644 --- a/python-ctypesgen.spec +++ b/python-ctypesgen.spec @@ -25,6 +25,7 @@ License: BSD-2-Clause URL: https://github.com/ctypesgen/ctypesgen Source: https://files.pythonhosted.org/packages/source/c/ctypesgen/ctypesgen-%{version}.tar.gz BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 44} BuildRequires: %{python_module setuptools_scm >= 3.4.3} BuildRequires: %{python_module toml} @@ -55,7 +56,7 @@ and creates a wrapper for libraries based on what it finds. %check # Create a dir in PWD and set TMPDIR to avoid writing to /tmp export TMPDIR=`mktemp -d -p ${PWD}` -%pyunittest -v +%pytest %pre %python_libalternatives_reset_alternative ctypesgen