From f6250d3e313d03317b0182f8976abd1f0ca283f2952606213876bd369acd0483 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 22 Jan 2025 03:08:41 +0000 Subject: [PATCH] - Fix fdupes macro, files are installed to sitearch. - Actually run the test suite. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cymem?expand=0&rev=9 --- python-cymem.changes | 6 ++++++ python-cymem.spec | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/python-cymem.changes b/python-cymem.changes index bee97ca..47d13db 100644 --- a/python-cymem.changes +++ b/python-cymem.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jan 22 03:07:56 UTC 2025 - Steve Kowalik + +- Fix fdupes macro, files are installed to sitearch. +- Actually run the test suite. + ------------------------------------------------------------------- Tue Jan 21 09:53:26 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-cymem.spec b/python-cymem.spec index 90d2347..774a37d 100644 --- a/python-cymem.spec +++ b/python-cymem.spec @@ -69,9 +69,16 @@ expires. %install %pyproject_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check +# Avoid the topdir, which means we can't import cymem.cymem +tmpdir=$(mktemp -d) +cp cymem/tests/* $tmpdir +pushd $tmpdir +%pytest_arch +popd +rm -r $tmpdir %files %{python_files} %doc README.md