2017-04-24 09:49:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-tabulate
|
|
|
|
#
|
2023-02-16 19:05:16 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-04-24 09:49:35 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-02-14 14:31:11 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-24 09:49:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-04-26 23:10:51 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-04-24 09:49:35 +02:00
|
|
|
Name: python-tabulate
|
2023-02-16 19:05:16 +01:00
|
|
|
Version: 0.9.0
|
2017-04-24 09:49:35 +02:00
|
|
|
Release: 0
|
2019-02-14 14:31:11 +01:00
|
|
|
Summary: Pretty-printer for tabular data in Python
|
2017-04-24 09:49:35 +02:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2018-03-28 10:33:25 +02:00
|
|
|
URL: https://bitbucket.org/astanin/python-tabulate
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tabulate/tabulate-%{version}.tar.gz
|
2023-02-16 19:05:16 +01:00
|
|
|
BuildRequires: %{python_module base > 3.6}
|
|
|
|
BuildRequires: %{python_module pip}
|
2021-01-13 14:21:23 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-02-16 19:05:16 +01:00
|
|
|
BuildRequires: %{python_module setuptools >= 61.2.0}
|
2023-05-19 09:19:32 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2019-02-14 14:31:11 +01:00
|
|
|
BuildRequires: %{python_module wcwidth}
|
2023-02-16 19:05:16 +01:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-24 09:49:35 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-03-28 10:33:25 +02:00
|
|
|
Requires: python-setuptools
|
2020-05-19 10:53:35 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-07-16 21:56:34 +02:00
|
|
|
Requires(postun):update-alternatives
|
2019-02-14 14:31:11 +01:00
|
|
|
Recommends: python-wcwidth
|
|
|
|
Suggests: python-pandas
|
2017-04-24 09:49:35 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-02-14 14:31:11 +01:00
|
|
|
Pretty-printer for tabular data in Python.
|
2017-04-24 09:49:35 +02:00
|
|
|
|
|
|
|
The main use cases of the library are:
|
|
|
|
|
2018-03-28 10:33:25 +02:00
|
|
|
* printing small tables without hassle: just one function call,
|
|
|
|
formatting is guided by the data itself
|
|
|
|
* authoring tabular data for lightweight plain-text markup: multiple
|
|
|
|
output formats suitable for further editing or transformation
|
|
|
|
* readable presentation of mixed textual and numeric data: smart
|
|
|
|
column alignment, configurable number formatting, alignment by a
|
|
|
|
decimal point
|
2017-04-24 09:49:35 +02:00
|
|
|
|
|
|
|
%prep
|
2019-12-02 08:37:11 +01:00
|
|
|
%setup -q -n tabulate-%{version}
|
2018-03-28 10:33:25 +02:00
|
|
|
|
2017-04-24 09:49:35 +02:00
|
|
|
%build
|
2023-02-16 19:05:16 +01:00
|
|
|
%pyproject_wheel
|
2017-04-24 09:49:35 +02:00
|
|
|
|
|
|
|
%install
|
2023-02-16 19:05:16 +01:00
|
|
|
%pyproject_install
|
2020-05-19 10:53:35 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/tabulate
|
2018-03-28 10:33:25 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-04-24 09:49:35 +02:00
|
|
|
|
2018-03-28 10:33:25 +02:00
|
|
|
%check
|
2021-01-13 14:21:23 +01:00
|
|
|
%pytest
|
2017-04-24 09:49:35 +02:00
|
|
|
|
2020-05-19 10:53:35 +02:00
|
|
|
%post
|
|
|
|
%python_install_alternative tabulate
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative tabulate
|
|
|
|
|
2017-04-24 09:49:35 +02:00
|
|
|
%files %{python_files}
|
2018-03-28 10:33:25 +02:00
|
|
|
%license LICENSE
|
2019-10-08 11:18:28 +02:00
|
|
|
%doc README.md
|
2020-05-19 10:53:35 +02:00
|
|
|
%python_alternative %{_bindir}/tabulate
|
2023-02-16 19:05:16 +01:00
|
|
|
%{python_sitelib}/tabulate
|
2023-05-19 09:19:32 +02:00
|
|
|
%{python_sitelib}/tabulate-%{version}.dist-info
|
2017-04-24 09:49:35 +02:00
|
|
|
|
|
|
|
%changelog
|