- Inject multibuild to defeat a build loop
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-asyncio?expand=0&rev=19
This commit is contained in:
parent
5e85e5d3e0
commit
5f003f4b9d
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 6 07:59:54 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Inject multibuild to defeat a build loop
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 28 19:00:14 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Tue Jun 28 19:00:14 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytest-asyncio
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -16,19 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: python-pytest-asyncio
|
%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-asyncio%{psuffix}
|
||||||
Version: 0.18.3
|
Version: 0.18.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pytest support for asyncio
|
Summary: Pytest support for asyncio
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/pytest-dev/pytest-asyncio
|
URL: https://github.com/pytest-dev/pytest-asyncio
|
||||||
Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz
|
Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module async_generator >= 1.3}
|
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module flaky >= 3.5.0}
|
|
||||||
BuildRequires: %{python_module hypothesis >= 5.7.1}
|
|
||||||
BuildRequires: %{python_module pytest >= 6.1.0}
|
|
||||||
BuildRequires: %{python_module pytest-trio >= 0.7}
|
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -38,6 +41,14 @@ Requires: python-pytest >= 6.1.0
|
|||||||
Requires: python-typing-extensions >= 3.7.2
|
Requires: python-typing-extensions >= 3.7.2
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with test}
|
||||||
|
BuildRequires: %{python_module async_generator >= 1.3}
|
||||||
|
BuildRequires: %{python_module flaky >= 3.5.0}
|
||||||
|
BuildRequires: %{python_module hypothesis >= 5.7.1}
|
||||||
|
BuildRequires: %{python_module pytest >= 6.1.0}
|
||||||
|
BuildRequires: %{python_module pytest-asyncio = %{version}}
|
||||||
|
BuildRequires: %{python_module pytest-trio >= 0.7}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -54,18 +65,24 @@ provides useful fixtures and markers to make testing easier.
|
|||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%install
|
%install
|
||||||
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/pytest_asyncio
|
%{python_sitelib}/pytest_asyncio
|
||||||
%{python_sitelib}/pytest_asyncio-%{version}*-info
|
%{python_sitelib}/pytest_asyncio-%{version}*-info
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user