forked from pool/python-exceptiongroup
- split tests into multibuild to solve cycle with pytest
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exceptiongroup?expand=0&rev=6
This commit is contained in:
parent
e433759168
commit
ce7d00b003
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 19 10:08:40 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- split tests into multibuild to solve cycle with pytest
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 1 09:42:08 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
Thu Dec 1 09:42:08 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-exceptiongroup
|
# spec file
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
@ -16,7 +16,17 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: python-exceptiongroup
|
# This is not only because of dependency of testsuite, but mostly
|
||||||
|
# because of cyclical dependencies between exceptiongroup and pytest.
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%bcond_without test
|
||||||
|
%define psuffix -test
|
||||||
|
%else
|
||||||
|
%bcond_with test
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%endif
|
||||||
|
Name: python-exceptiongroup%{psuffix}
|
||||||
Version: 1.0.4
|
Version: 1.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Backport of PEP 654 (exception groups)
|
Summary: Backport of PEP 654 (exception groups)
|
||||||
@ -26,7 +36,9 @@ Source: https://github.com/agronholm/exceptiongroup/archive/refs/tags/%{
|
|||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
BuildRequires: %{python_module flit-scm}
|
BuildRequires: %{python_module flit-scm}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
%endif
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -70,8 +82,10 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
|||||||
%pyproject_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user