1
0

- Inject multibuild to break up a build loop.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-virtualenv?expand=0&rev=10
This commit is contained in:
Steve Kowalik 2021-11-15 07:30:50 +00:00 committed by Git OBS Bridge
parent 359af771ed
commit 2a1a41e7d1
3 changed files with 26 additions and 2 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 15 07:23:10 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Inject multibuild to break up a build loop.
-------------------------------------------------------------------
Sun Dec 13 21:55:46 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-virtualenv
#
# 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
@ -17,12 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pytest-virtualenv
Version: 1.7.0
Release: 0
Summary: Virtualenv fixture for pytest
License: MIT
Group: Development/Languages/Python
URL: https://github.com/manahl/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-virtualenv/pytest-virtualenv-%{version}.tar.gz
# PATCH-FIX-UPSTREAM remove_mock.patch gh#man-group/pytest-plugins#168 mcepl@suse.com
@ -32,10 +39,13 @@ Patch0: remove_mock.patch
# and while at it, we can remove dependency on the external module
# virtualenv as well
Patch1: remove_virtualenv.patch
%if %{with test}
BuildRequires: %{python_module path.py}
BuildRequires: %{python_module pytest-fixture-config}
BuildRequires: %{python_module pytest-shutil}
BuildRequires: %{python_module pytest-virtualenv}
BuildRequires: %{python_module pytest}
%endif
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
%if 0%{?suse_version} <= 1500
@ -63,16 +73,22 @@ what's installed.
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# Requires network access
%pytest -k 'not test_installed_packages'
%endif
%if !%{with test}
%files %{python_files}
%doc CHANGES.md README.md
%license LICENSE
%{python_sitelib}/*
%endif
%changelog