- Inject multibuild to stop a build loop

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpcore?expand=0&rev=8
This commit is contained in:
Steve Kowalik 2022-02-01 07:47:58 +00:00 committed by Git OBS Bridge
parent 0e1809b2b0
commit 27cac1d346
3 changed files with 23 additions and 3 deletions

3
_multibuild Normal file
View File

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

View File

@ -1,5 +1,5 @@
-------------------------------------------------------------------
Tue Feb 1 06:13:54 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
Tue Feb 1 07:47:22 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.14.5:
* SOCKS proxy support. (#478)
@ -22,6 +22,7 @@ Tue Feb 1 06:13:54 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
* Log SSL version info / certificate info.
* Fix broken error messaging when URL scheme is missing, or a non HTTP(S)
scheme is used. (Pull #403)
- Inject multibuild to stop a build loop
-------------------------------------------------------------------
Tue Jul 13 13:42:56 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -1,5 +1,5 @@
#
# spec file for package python-httpcore
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
@ -17,8 +17,16 @@
%{?!python_module:%define python_module() python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define skip_python2 1
Name: python-httpcore
Name: python-httpcore%{psuffix}
Version: 0.14.5
Release: 0
Summary: Minimal low-level Python HTTP client
@ -38,6 +46,7 @@ Requires: python-rfc3986 >= 1.0
Requires: python-sniffio >= 1.0
BuildArch: noarch
# SECTION test requirements
%if %{with test}
BuildRequires: %{python_module anyio >= 3.1.0}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module chardet >= 3.0}
@ -56,6 +65,7 @@ BuildRequires: %{python_module pytest-twisted}
BuildRequires: %{python_module rfc3986 >= 1.0}
BuildRequires: %{python_module trustme >= 0.7.0}
BuildRequires: %{python_module uvicorn >= 0.12.1}
%endif
# /SECTION
%python_subpackages
@ -70,19 +80,25 @@ Python minimal low-level HTTP client.
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
# ulimit -n 50000
# test_no_retries and test_retries are very slow and fails
# tests/async_tests + tests/sync_tests causes open file limit
# socks5 -- we don't ship socksio
%if %{with test}
%pytest -rs -k 'not (test_interfaces or test_no_retries or test_retries or test_threadsafe_basic or socks5)'
%endif
%if !%{with test}
%files %{python_files}
%doc README.md
%license LICENSE.md
%{python_sitelib}/*
%endif
%changelog