From 557e87afdab98588eda02ea7deadede0c02fc81bd2c92afb2f32d5e9a761e003 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 18 Jan 2023 09:46:42 +0000 Subject: [PATCH 1/2] Accepting request 1059284 from home:Simmphonie:branches:devel:languages:python - ignore some faulty tests OBS-URL: https://build.opensuse.org/request/show/1059284 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=18 --- python-resolvelib.changes | 5 +++++ python-resolvelib.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-resolvelib.changes b/python-resolvelib.changes index f98ab38..98cc3f9 100644 --- a/python-resolvelib.changes +++ b/python-resolvelib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 18 08:12:49 UTC 2023 - Torsten Gruner + +- ignore some faulty tests + ------------------------------------------------------------------- Thu Dec 15 21:03:50 UTC 2022 - Dirk Müller diff --git a/python-resolvelib.spec b/python-resolvelib.spec index 1fa8cf0..07ad444 100644 --- a/python-resolvelib.spec +++ b/python-resolvelib.spec @@ -1,7 +1,7 @@ # # spec file for package python-resolvelib # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-resolvelib # ansible-core 2.14.x is currently requiring < 0.9.0 Version: 0.8.1 @@ -27,8 +26,9 @@ Group: Development/Languages/Python URL: https://github.com/sarugaku/resolvelib Source: https://github.com/sarugaku/resolvelib/archive/%{version}.tar.gz#/resolvelib-%{version}.tar.gz BuildRequires: %{python_module commentjson} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -41,17 +41,18 @@ A Python module to resolve abstract dependencies into concrete ones. %setup -q -n resolvelib-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +%pytest --ignore tests/functional/cocoapods/test_resolvers_cocoapods.py --ignore tests/functional/python/test_resolvers_python.py %files %{python_files} %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/resolvelib +%{python_sitelib}/resolvelib-%{version}*info %changelog From 9dcf61b5df2afe626069509af755912b9cfb35e40fe94f397f661c9f016b56ce Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 18 Jan 2023 09:49:17 +0000 Subject: [PATCH 2/2] Add link to upstream issue in changelog about the reason to ignore some tests. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-resolvelib?expand=0&rev=19 --- python-resolvelib.changes | 1 + python-resolvelib.spec | 2 ++ 2 files changed, 3 insertions(+) diff --git a/python-resolvelib.changes b/python-resolvelib.changes index 98cc3f9..21afe0a 100644 --- a/python-resolvelib.changes +++ b/python-resolvelib.changes @@ -2,6 +2,7 @@ Wed Jan 18 08:12:49 UTC 2023 - Torsten Gruner - ignore some faulty tests + Because of python-packaging version: gh#sarugaku/resolvelib#114 ------------------------------------------------------------------- Thu Dec 15 21:03:50 UTC 2022 - Dirk Müller diff --git a/python-resolvelib.spec b/python-resolvelib.spec index 07ad444..0b72e7c 100644 --- a/python-resolvelib.spec +++ b/python-resolvelib.spec @@ -48,6 +48,8 @@ A Python module to resolve abstract dependencies into concrete ones. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# Ignoring some faulty tests because of python-packaging version: +# gh#sarugaku/resolvelib#114 %pytest --ignore tests/functional/cocoapods/test_resolvers_cocoapods.py --ignore tests/functional/python/test_resolvers_python.py %files %{python_files}