From dd21b322fe6cda0a66d777fa801f798239512cb0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:14:47 +0100 Subject: [PATCH] update to 0.23.2 [release 0.23.2-1mamba;Mon Jan 02 2023] --- README.md | 2 ++ python-httpx.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 python-httpx.spec diff --git a/README.md b/README.md index ad408b3..a97bb50 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-httpx +The next generation HTTP client. + diff --git a/python-httpx.spec b/python-httpx.spec new file mode 100644 index 0000000..a1b4363 --- /dev/null +++ b/python-httpx.spec @@ -0,0 +1,65 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-httpx +Version: 0.23.2 +Release: 1mamba +Summary: The next generation HTTP client +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/encode/httpx +Source: https://pypi.debian.net/httpx/httpx-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(certifi) +BuildRequires: python3.7dist(httpcore) +BuildRequires: python3.7dist(rfc3986) +BuildRequires: python3.7dist(sniffio) +## AUTOBUILDREQ-END +BuildRequires: python-hatch_fancy_pypi_readme-py3 + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n httpx-%{version} +# Remove requirement for rtc3986 < 2 +sed -i "s|\(rfc3986.*\),<2|\1|" pyproject.toml +sed -i "s|\(rfc3986.*\)<2,|\1|" PKG-INFO + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/httpx; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +%endif + +%files %{?pyappend} +%defattr(-,root,root) +%{_bindir}/httpx* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* + +%changelog +* Mon Jan 02 2023 Silvan Calarco 0.23.2-1mamba +- update to 0.23.2 + +* Tue Dec 06 2022 Automatic Build System 0.23.1-1mamba +- automatic version update by autodist + +* Sun Oct 02 2022 Silvan Calarco 0.23.0-1mamba +- package created using the webbuild interface