From 3ba010f80ab24d88558882bde7fae673f30fcf3211657105f9180482cea7910a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Dec 2024 01:25:11 +0000 Subject: [PATCH] - Skip a few tests that attempt name resolution. - Switch to pytest macro. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycapnp?expand=0&rev=13 --- python-pycapnp.changes | 7 +++++++ python-pycapnp.spec | 15 ++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/python-pycapnp.changes b/python-pycapnp.changes index f18ccf4..abf3f91 100644 --- a/python-pycapnp.changes +++ b/python-pycapnp.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 16 01:24:52 UTC 2024 - Steve Kowalik + +- Skip a few tests that attempt name resolution. +- Switch to pytest macro. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Apr 16 08:24:15 UTC 2024 - Markéta Machová diff --git a/python-pycapnp.spec b/python-pycapnp.spec index 21317bb..c17397e 100644 --- a/python-pycapnp.spec +++ b/python-pycapnp.spec @@ -37,6 +37,8 @@ BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros BuildRequires: pkgconfig(capnp) +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -56,18 +58,12 @@ export CFLAGS="%{optflags}" %{python_expand rm %{buildroot}%{$python_sitearch}/capnp/helpers/*.h %fdupes %{buildroot}%{$python_sitearch} } -%python_expand find %{buildroot}%{$python_sitearch} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} mv capnp/ /tmp -if [[ "$python" == "python3" || "$python" == "python3.6" ]]; then - $python -m pytest -k 'not async' -else - $python -m pytest -fi +# Attempts to resolve names +%pytest_arch -k 'not (test_ssl_async_example or test_ssl_reconnecting_async_example or test_async_ssl_calculator_example)' mv /tmp/capnp/ . -} %post %python_install_alternative capnpc-cython @@ -79,6 +75,7 @@ mv /tmp/capnp/ . %doc CHANGELOG.md README.md %license LICENSE.md %python_alternative %{_bindir}/capnpc-cython -%{python_sitearch}/* +%{python_sitearch}/capnp +%{python_sitearch}/pycapnp-%{version}.dist-info %changelog