Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-smartypants for openSUSE:Factory checked in at 2025-06-13 18:42:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-smartypants (Old) and /work/SRC/openSUSE:Factory/.python-smartypants.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smartypants" Fri Jun 13 18:42:38 2025 rev:9 rq:1285134 version:2.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-smartypants/python-smartypants.changes 2023-09-28 00:47:10.823821204 +0200 +++ /work/SRC/openSUSE:Factory/.python-smartypants.new.19631/python-smartypants.changes 2025-06-13 18:42:58.280789759 +0200 @@ -1,0 +2,5 @@ +Thu Jun 12 12:07:46 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Convert to pip-based build and libalternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-smartypants.spec ++++++ --- /var/tmp/diff_new_pack.5tPYRI/_old 2025-06-13 18:42:58.892814456 +0200 +++ /var/tmp/diff_new_pack.5tPYRI/_new 2025-06-13 18:42:58.896814618 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-smartypants # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-smartypants Version: 2.0.1 @@ -28,14 +29,15 @@ Patch0: use-sys-executable.patch Patch1: fix-312.patch BuildRequires: %{python_module docutils} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pygments} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires: alts BuildArch: noarch - %python_subpackages %description @@ -47,20 +49,17 @@ %autosetup -p1 -n smartypants.py-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %{python_expand sed -i '1{/^#!/d}' %{buildroot}%{$python_sitelib}/smartypants.py %fdupes %{buildroot}%{$python_sitelib} } %python_clone -a %{buildroot}%{_bindir}/smartypants -%post -%python_install_alternative smartypants - -%postun -%python_uninstall_alternative smartypants +%pre +%python_libalternatives_reset_alternative smartypants %check %pyunittest discover -v tests