2024-01-06 11:14:47 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
Name: python-httpx
|
2024-01-06 11:14:48 +01:00
|
|
|
Version: 0.25.2
|
2024-01-06 11:14:48 +01:00
|
|
|
Release: 1mamba
|
2024-01-06 11:14:47 +01:00
|
|
|
Summary: The next generation HTTP client
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/encode/httpx
|
|
|
|
Source: https://pypi.debian.net/httpx/httpx-%{version}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: (python3.11dist(httpcore) >= 1 with python3.11dist(httpcore) < 2)
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: python3.11dist(anyio)
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: python3.11dist(certifi)
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: python3.11dist(idna)
|
2024-01-06 11:14:48 +01:00
|
|
|
BuildRequires: python3.11dist(sniffio)
|
2024-01-06 11:14:47 +01:00
|
|
|
## 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
|
2024-01-06 11:14:48 +01:00
|
|
|
* Sat Nov 25 2023 Automatic Build System <autodist@mambasoft.it> 0.25.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:48 +01:00
|
|
|
* Fri Nov 03 2023 Automatic Build System <autodist@mambasoft.it> 0.25.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 0.25.0-1mamba
|
|
|
|
- automatic version update by autodist
|
2024-01-06 11:14:48 +01:00
|
|
|
|
2024-01-06 11:14:47 +01:00
|
|
|
* Wed Jan 04 2023 Automatic Build System <autodist@mambasoft.it> 0.23.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:47 +01:00
|
|
|
* Mon Jan 02 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.23.2-1mamba
|
|
|
|
- update to 0.23.2
|
|
|
|
|
|
|
|
* Tue Dec 06 2022 Automatic Build System <autodist@mambasoft.it> 0.23.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Oct 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.23.0-1mamba
|
|
|
|
- package created using the webbuild interface
|