[packages/python3-httpcore] - new
qboosh
qboosh at pld-linux.org
Thu Jan 8 22:30:11 CET 2026
commit 5e533f0279ec7217ea83689387c9abc206f56d79
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 8 22:29:59 2026 +0100
- new
python3-httpcore.spec | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 101 insertions(+)
---
diff --git a/python3-httpcore.spec b/python3-httpcore.spec
new file mode 100644
index 0000000..a08b302
--- /dev/null
+++ b/python3-httpcore.spec
@@ -0,0 +1,101 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: A minimal low-level HTTP client
+Summary(pl.UTF-8): Minimalny, niskopoziomowy klient HTTP
+Name: python3-httpcore
+Version: 1.0.9
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/httpcore/
+Source0: https://files.pythonhosted.org/packages/source/h/httpcore/httpcore-%{version}.tar.gz
+# Source0-md5: 5157e7240632c2984cfda1f7ac54dfc7
+URL: https://pypi.org/project/httpcore/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-hatch-fancy-pypi-readme
+BuildRequires: python3-hatchling
+BuildRequires: python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires: python3-anyio
+BuildRequires: python3-certifi
+BuildRequires: python3-h11 >= 0.16
+BuildRequires: python3-h2 >= 3
+BuildRequires: python3-h2 < 5
+BuildRequires: python3-hpack
+BuildRequires: python3-hyperframe
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-httpbin
+BuildRequires: python3-pytest-trio
+BuildRequires: python3-socksio
+BuildRequires: python3-trio
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The HTTP Core package provides a minimal low-level HTTP client, which
+does one thing only. Sending HTTP requests.
+
+It does not provide any high level model abstractions over the API,
+does not handle redirects, multipart uploads, building authentication
+headers, transparent HTTP caching, URL parsing, session cookie
+handling, content or charset decoding, handling JSON, environment
+based configuration defaults, or any of that Jazz.
+
+Some things HTTP Core does do:
+- Sending HTTP requests.
+- Thread-safe / task-safe connection pooling.
+- HTTP(S) proxy & SOCKS proxy support.
+- Supports HTTP/1.1 and HTTP/2.
+- Provides both sync and async interfaces.
+- Async backend support for asyncio and trio.
+
+%description -l pl.UTF-8
+Pakiet HTTP Core udostępnia minimalnego, niskopoziomowego klienta
+HTTP, wykonującego tylko jedną rzecz: wysyłanie żądań HTTP.
+
+Nie dostarcza żadnych wysokopoziomowych abstrakcji modelu na API, nie
+obsługuje przekierowań, przesyłania wieloczęściowego, tworzenia
+nagłówków uwierzytelniających, przezroczystego buforowania HTTP,
+analizy URL-i, obsługi ciasteczek sesyjnych, dekodowania treści czy
+zestawów znaków, obsługi JSON-a, ustawień domyślnych konfiguracji itd.
+
+Niektóre zadania, które HTTP Core wykonuje:
+- wysyłanie żądań HTTP
+- pula połączeń bezpieczna pod kątem wątków
+- obsługa proxy HTTP(S) i SOCKS
+- obsługa HTTP/1.1 i HTTP/2
+- interfejs synchroniczny i asynchroniczny
+- obsługa backendu asynchronicznego dla asyncio i trio
+
+%prep
+%setup -q -n httpcore-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=anyio.pytest_plugin,pytest_httpbin.plugin,pytest_trio.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE.md README.md
+%{py3_sitescriptdir}/httpcore
+%{py3_sitescriptdir}/httpcore-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-httpcore.git/commitdiff/5e533f0279ec7217ea83689387c9abc206f56d79
More information about the pld-cvs-commit
mailing list