Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-starlette for
openSUSE:Factory checked in at 2022-07-29 16:48:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-starlette (Old)
and /work/SRC/openSUSE:Factory/.python-starlette.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-starlette"
Fri Jul 29 16:48:26 2022 rev:9 rq:991718 version:0.20.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-starlette/python-starlette.changes
2022-07-13 13:45:49.486068990 +0200
+++
/work/SRC/openSUSE:Factory/.python-starlette.new.1533/python-starlette.changes
2022-07-29 16:48:32.150758982 +0200
@@ -1,0 +2,5 @@
+Fri Jul 29 10:21:51 UTC 2022 - Torsten Gruner <[email protected]>
+
+- enable multibuild for test
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-starlette.spec ++++++
--- /var/tmp/diff_new_pack.tosE2T/_old 2022-07-29 16:48:32.682760462 +0200
+++ /var/tmp/diff_new_pack.tosE2T/_new 2022-07-29 16:48:32.686760473 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package python-starlette
+# spec file
#
# Copyright (c) 2022 SUSE LLC
#
@@ -16,9 +16,17 @@
#
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
-Name: python-starlette
+Name: python-starlette%{psuffix}
Version: 0.20.4
Release: 0
Summary: Lightweight ASGI framework/toolkit
@@ -27,25 +35,27 @@
Source:
https://github.com/encode/starlette/archive/refs/tags/%{version}.tar.gz#/starlette-%{version}.tar.gz
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module PyYAML}
-BuildRequires: %{python_module aiofiles}
-BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module anyio}
+BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module contextlib2}
+BuildRequires: %{python_module itsdangerous}
+BuildRequires: %{python_module requests}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module typing_extensions}
+%if %{with test}
+BuildRequires: %{python_module aiofiles}
+BuildRequires: %{python_module aiosqlite}
BuildRequires: %{python_module databases}
BuildRequires: %{python_module flake8}
BuildRequires: %{python_module graphene}
-BuildRequires: %{python_module itsdangerous}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-multipart}
-BuildRequires: %{python_module requests}
-BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module trio}
-BuildRequires: %{python_module typing_extensions}
+%endif
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRequires: python3-base >= 3.7
BuildArch: noarch
%python_subpackages
@@ -60,20 +70,26 @@
%python_build
%install
+%if ! %{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
%check
+%if %{with test}
# Remove unrecognized arguments: --strict-config --strict-markers
sed -i "s|--strict-config||" setup.cfg
sed -i "s|--strict-markers||" setup.cfg
sed -i "s| error$||" setup.cfg
%pytest --asyncio-mode=strict
+%endif
+%if ! %{with test}
%files %{python_files}
%doc README.md
%license LICENSE.md
%{python_sitelib}/starlette
%{python_sitelib}/starlette-%{version}*-info
+%endif
%changelog
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>