From 314fc7b366ff617f76ab28b46fabf9f124b35e64b1c855bfb58b99991dedb152 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 27 Dec 2021 09:27:15 +0000 Subject: [PATCH] Accepting request 942476 from home:bnavigator:py310 - ensure that pickled cache files from fissix don't interfere between flavor tests OBS-URL: https://build.opensuse.org/request/show/942476 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-modernize?expand=0&rev=13 --- python-modernize.changes | 6 ++++++ python-modernize.spec | 12 +++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/python-modernize.changes b/python-modernize.changes index c7c5f73..f4435b2 100644 --- a/python-modernize.changes +++ b/python-modernize.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Dec 25 21:57:32 UTC 2021 - Ben Greiner + +- ensure that pickled cache files from fissix don't interfere + between flavor tests + ------------------------------------------------------------------- Mon Oct 12 07:44:27 UTC 2020 - Marketa Calabkova diff --git a/python-modernize.spec b/python-modernize.spec index a066325..ba63921 100644 --- a/python-modernize.spec +++ b/python-modernize.spec @@ -1,7 +1,7 @@ # # spec file for package python-modernize # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,7 +32,7 @@ BuildRequires: python-rpm-macros Requires: python-dbm Requires: python-fissix Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module dbm} @@ -58,6 +58,9 @@ sed -i 's/"--cov.*",//g' pyproject.toml %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# ensure that pickled cache files from fissix don't interfere between flavors +%python_expand mkdir build/cache +export XDG_CACHE_HOME=$PWD/build/cache %pytest %post @@ -73,6 +76,9 @@ sed -i 's/"--cov.*",//g' pyproject.toml %license LICENSE %python_alternative %{_bindir}/modernize %python_alternative %{_bindir}/python-modernize -%{python_sitelib}/* +%{python_sitelib}/libmodernize +%{python_sitelib}/modernize.py +%pycache_only %{python_sitelib}/__pycache__/modernize.*.pyc +%{python_sitelib}/modernize-%{version}*-info %changelog