From 52e75f5a42edd7925f2596e13a29ec423609fde48bdccd582ccac25dc9d7d2ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 19 Sep 2022 11:15:17 +0000 Subject: [PATCH] Accepting request 1004346 from home:jayvdb:branches:devel:languages:python (Depends on https://build.opensuse.org/request/show/1004345) - Move tests out of runtime package - Enable test suite OBS-URL: https://build.opensuse.org/request/show/1004346 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gssapi?expand=0&rev=19 --- python-gssapi.changes | 6 ++++++ python-gssapi.spec | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-gssapi.changes b/python-gssapi.changes index 97826a7..27e9dab 100644 --- a/python-gssapi.changes +++ b/python-gssapi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 17 13:50:48 UTC 2022 - John Vandenberg + +- Move tests out of runtime package +- Enable test suite + ------------------------------------------------------------------- Tue Feb 22 21:53:06 UTC 2022 - Matej Cepl diff --git a/python-gssapi.spec b/python-gssapi.spec index 9aea190..b741f5c 100644 --- a/python-gssapi.spec +++ b/python-gssapi.spec @@ -28,7 +28,10 @@ Source: https://files.pythonhosted.org/packages/source/g/gssapi/gssapi-% BuildRequires: %{python_module Cython} BuildRequires: %{python_module decorator} BuildRequires: %{python_module devel} +BuildRequires: %{python_module k5test} +BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes @@ -44,6 +47,9 @@ usable with other GSSAPI mechanisms. %prep %setup -q -n gssapi-%{version} +sed -i "s/'gssapi.tests'//" setup.py + +mv gssapi/tests . %build export CFLAGS="%{optflags} -DHAS_GSSAPI_EXT_H -fno-strict-aliasing" @@ -54,7 +60,9 @@ export CFLAGS="%{optflags} -DHAS_GSSAPI_EXT_H -fno-strict-aliasing" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# requires 'MIT Kerberos installation' +mv gssapi gssapi_temp +%pytest_arch tests +mv gssapi_temp gssapi %files %{python_files} %{python_sitearch}/gssapi*