From 2bf29d1ea81e8e0f70985ea982b51eab0b27420a089560d51975fbe3318ce27c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 20 Mar 2024 05:29:59 +0000 Subject: [PATCH] - Add missing BuildRequires on importlib-metadata. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-salt-factories?expand=0&rev=8 --- python-pytest-salt-factories.changes | 5 +++++ python-pytest-salt-factories.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-pytest-salt-factories.changes b/python-pytest-salt-factories.changes index 4d9736b..16d1316 100644 --- a/python-pytest-salt-factories.changes +++ b/python-pytest-salt-factories.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 20 05:29:34 UTC 2024 - Steve Kowalik + +- Add missing BuildRequires on importlib-metadata. + ------------------------------------------------------------------- Wed Dec 20 11:20:42 UTC 2023 - Bernhard Wiedemann diff --git a/python-pytest-salt-factories.spec b/python-pytest-salt-factories.spec index b210dfb..13a2974 100644 --- a/python-pytest-salt-factories.spec +++ b/python-pytest-salt-factories.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-salt-factories # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,6 +34,7 @@ Source0: https://files.pythonhosted.org/packages/source/p/pytest-salt-fac Patch1: fix_unit_tests.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module docker} +BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 6.0.0} BuildRequires: %{python_module pytest-shell-utilities} @@ -44,9 +45,9 @@ BuildRequires: %{python_module setuptools-declarative-requirements} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRequires: python3-salt BuildRequires: salt-master -BuildRequires: python-rpm-macros Requires: python-attrs >= 19.2.0 Requires: python-msgpack Requires: python-psutil @@ -88,7 +89,7 @@ export PYTHONPATH=%{buildroot}%{python_sitelib} # Run test and exclude some that doesn't work fine in OBS. pytest-%{python_bin_suffix} -vvv -k 'not ssh and not echoext' - + %post %python_install_alternative salt-factories