17
0

2 Commits

Author SHA256 Message Date
Markéta Machová
9c1d9bb720 Skip tests failing on recent python interpreters (bsc#1256318) 2026-01-08 11:21:31 +01:00
89c748c399 Convert to libalternatives, bsc#1245883 2025-11-03 15:07:29 +01:00
2 changed files with 28 additions and 4 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Dec 29 10:16:30 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Skip tests failing on recent python interpreters (bsc#1256318)
-------------------------------------------------------------------
Mon Aug 25 14:08:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
------------------------------------------------------------------- -------------------------------------------------------------------
Fri May 19 07:19:14 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri May 19 07:19:14 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tabulate # spec file for package python-tabulate
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,11 @@
# #
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-tabulate Name: python-tabulate
Version: 0.9.0 Version: 0.9.0
@@ -35,11 +40,16 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
Recommends: python-wcwidth Recommends: python-wcwidth
Suggests: python-pandas Suggests: python-pandas
BuildArch: noarch BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages %python_subpackages
%description %description
@@ -67,7 +77,11 @@ The main use cases of the library are:
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pytest # test_wrap_multiword_non_wide* fail on recent Python interpreters https://github.com/astanin/python-tabulate/issues/389
%pytest -k "not test_wrap_multiword_non_wide"
%pre
%python_libalternatives_reset_alternative tabulate
%post %post
%python_install_alternative tabulate %python_install_alternative tabulate