14
0

- 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
This commit is contained in:
2024-12-16 01:25:11 +00:00
committed by Git OBS Bridge
parent 2e6c05c64a
commit 3ba010f80a
2 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Dec 16 01:24:52 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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á <mmachova@suse.com>

View File

@@ -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