From 5999a45ce0e6c7cfc2712e126b1bfa1f963972efb9550b9d4eb076bad13e1cdb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 May 2021 15:32:01 +0000 Subject: [PATCH] Accepting request 893789 from home:mcepl:branches:devel:languages:python Dependency for python-httpx OBS-URL: https://build.opensuse.org/request/show/893789 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpcore?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + httpcore-0.12.2.tar.gz | 3 ++ python-httpcore.changes | 14 +++++++ python-httpcore.spec | 88 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 httpcore-0.12.2.tar.gz create mode 100644 python-httpcore.changes create mode 100644 python-httpcore.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/httpcore-0.12.2.tar.gz b/httpcore-0.12.2.tar.gz new file mode 100644 index 0000000..90b96ab --- /dev/null +++ b/httpcore-0.12.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a3dd01e123e0916551485f52ac966aa6337324e9e35f8d1be28f23c0f2328a0 +size 56120 diff --git a/python-httpcore.changes b/python-httpcore.changes new file mode 100644 index 0000000..426ab46 --- /dev/null +++ b/python-httpcore.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Sat May 1 20:32:11 UTC 2021 - Matej Cepl + +- Don't build on python36, because of missing dependencies. + +------------------------------------------------------------------- +Sat Nov 21 11:09:07 UTC 2020 - John Vandenberg + +- Update to v0.12.2 + +------------------------------------------------------------------- +Wed Jan 8 12:28:26 AM UTC 2020 - John Vandenberg + +- Initial spec for v0.4.0 diff --git a/python-httpcore.spec b/python-httpcore.spec new file mode 100644 index 0000000..cc370eb --- /dev/null +++ b/python-httpcore.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-httpcore +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +%define skip_python36 1 +Name: python-httpcore +Version: 0.12.2 +Release: 0 +Summary: Minimal low-level Python HTTP client +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/encode/httpcore +Source: https://github.com/encode/httpcore/archive/%{version}.tar.gz#/httpcore-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-certifi +Requires: python-chardet >= 3.0 +Requires: python-h11 >= 0.8.0 +Requires: python-h2 >= 3.0 +Requires: python-idna >= 2.0 +Requires: python-rfc3986 >= 1.0 +Requires: python-sniffio >= 1.0 +Recommends: python-anyio +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module anyio} +BuildRequires: %{python_module certifi} +BuildRequires: %{python_module chardet >= 3.0} +BuildRequires: %{python_module h11 >= 0.8.0} +BuildRequires: %{python_module h2 >= 3.0} +BuildRequires: %{python_module idna >= 2.0} +BuildRequires: %{python_module mitmproxy} +BuildRequires: %{python_module pproxy} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest-curio} +BuildRequires: %{python_module pytest-tornasync} +BuildRequires: %{python_module pytest-trio >= 0.7.0} +BuildRequires: %{python_module pytest-twisted} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module rfc3986 >= 1.0} +BuildRequires: %{python_module trustme >= 0.6.0} +BuildRequires: %{python_module uvicorn >= 0.12.1} +# /SECTION +%python_subpackages + +%description +Python minimal low-level HTTP client. + +%prep +%setup -q -n httpcore-%{version} +#sed -i 's/"localhost"/"127.0.0.1"/' tests/*sync_tests/test_interfaces.py tests/conftest.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%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 +%pytest -rs -k 'not (test_interfaces or test_no_retries or test_retries or test_threadsafe_basic)' + +%files %{python_files} +%doc README.md +%license LICENSE.md +%{python_sitelib}/* + +%changelog