14
0

Accepting request 1069693 from home:frispete:blender:python

- prepare test environment: correctly provide jaraco modules locally
  %{python3_sitelib} might not be available

OBS-URL: https://build.opensuse.org/request/show/1069693
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.collections?expand=0&rev=22
This commit is contained in:
2023-03-07 15:52:43 +00:00
committed by Git OBS Bridge
parent 891b1869ac
commit 09faafc0dc
2 changed files with 11 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Mar 5 18:56:10 UTC 2023 - Hans-Peter Jansen <hpj@urpla.net>
- prepare test environment: correctly provide jaraco modules locally
%{python3_sitelib} might not be available
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 2 18:07:12 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Fri Dec 2 18:07:12 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-jaraco.collections # spec file for package python-jaraco.collections
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -55,10 +55,11 @@ Models and classes to supplement the stdlib collections module.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release # work around for gh#pytest-dev/pytest#3396 until gh#pytest-dev/pytest#10088 lands in a pytest release
# prepare test environment: provide jaraco modules locally
touch jaraco/__init__.py touch jaraco/__init__.py
cp -r %{python3_sitelib}/jaraco/* jaraco/ %{python_expand cp -vr %{$python_sitelib}/jaraco/* jaraco/
%{python_expand # workaround for gh#jaraco/jaraco.text#10 without pathlib2 # workaround for gh#jaraco/jaraco.text#10 without pathlib2
if [ %{$python_version_nodots} -lt 310 ]; then if [ %{$python_version_nodots} -lt 310 ]; then
$python_donttest="or read_newlines or report_newlines" $python_donttest="or read_newlines or report_newlines"
fi fi