Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-mypy for openSUSE:Factory checked in at 2025-07-30 11:41:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mypy (Old) and /work/SRC/openSUSE:Factory/.python-mypy.new.13279 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mypy" Wed Jul 30 11:41:11 2025 rev:16 rq:1296148 version:1.17.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-mypy/python-mypy.changes 2025-07-17 17:17:25.700415966 +0200 +++ /work/SRC/openSUSE:Factory/.python-mypy.new.13279/python-mypy.changes 2025-07-30 11:41:22.036753339 +0200 @@ -1,0 +2,5 @@ +Thu Jul 24 10:36:56 UTC 2025 - Markéta Machová <[email protected]> + +- Make the libalternatives transition conditional + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mypy.spec ++++++ --- /var/tmp/diff_new_pack.0bLSpp/_old 2025-07-30 11:41:23.908830910 +0200 +++ /var/tmp/diff_new_pack.0bLSpp/_new 2025-07-30 11:41:23.920831408 +0200 @@ -42,10 +42,8 @@ BuildRequires: %{python_module tomli >= 1.1.0} BuildRequires: %{python_module typing_extensions >= 4.6.0} BuildRequires: %{python_module wheel} -BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: alts Requires: python-mypy_extensions >= 0.4.3 Requires: python-pathspec Requires: python-typing_extensions >= 3.10 @@ -56,6 +54,13 @@ Provides: mypy = %{version} Obsoletes: mypy < %{version} %endif +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif %if %{with test} BuildRequires: %{python_module attrs >= 18} BuildRequires: %{python_module devel} @@ -116,7 +121,9 @@ %python_clone -a %{buildroot}%{_bindir}/mypyc %python_clone -a %{buildroot}%{_bindir}/stubgen %python_clone -a %{buildroot}%{_bindir}/stubtest +%if %{with libalternatives} %python_group_libalternatives mypy dmypy mypyc stubgen stubtest +%endif # solve "W: python-doc-in-package" in 3.9, 3.10 and 3.11, but not in 3.8 (thus -f to ignore the error) %python_expand rm -rf %{buildroot}%{$python_sitelib}/mypyc/doc %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -146,8 +153,17 @@ %pytest -n auto -k "not (testallexcept ${donttest})" %endif +%if %{with libalternatives} %pre %python_libalternatives_reset_alternative mypy +%else + +%post +%python_install_alternative mypy dmypy mypyc stubgen stubtest + +%postun +%python_uninstall_alternative mypy +%endif %files %{python_files} %doc docs/
