Sync from SUSE:SLFO:Main python-httpx revision 9d36e902bf61b443c9c681187d36bcaf

This commit is contained in:
Adrian Schröter 2025-02-07 18:17:29 +01:00
parent 843d59b528
commit e3020a672b
2 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 17 14:03:29 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Use libalternatives instead of update-alternatives, bsc#1235784
-------------------------------------------------------------------
Sun Sep 8 13:05:12 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -25,6 +25,12 @@
%bcond_with test
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-httpx%{psuffix}
Version: 0.27.2
@ -50,8 +56,13 @@ Recommends: python-Pygments >= 2
Recommends: python-click >= 8
Recommends: python-h2 >= 3.0
Recommends: python-rich >= 10
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
# SECTION test requirements
%if %{with test}
@ -99,6 +110,10 @@ donttest="$donttest or socks"
%pytest -vv -k "not ($donttest)" --asyncio-mode=strict
%endif
%pre
# If libalternatives is used: Removing old update-alternatives entries.
%python_libalternatives_reset_alternative httpx
%post
%python_install_alternative httpx