2017-04-24 09:49:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-tabulate
|
|
|
|
#
|
2019-12-02 08:37:11 +01:00
|
|
|
# Copyright (c) 2019 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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-tabulate
|
2019-12-02 08:37:11 +01:00
|
|
|
Version: 0.8.6
|
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
|
|
|
|
BuildRequires: %{python_module nose}
|
2019-02-14 14:31:11 +01:00
|
|
|
BuildRequires: %{python_module pandas}
|
2018-03-28 10:33:25 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-02-14 14:31:11 +01:00
|
|
|
BuildRequires: %{python_module wcwidth}
|
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
|
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
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
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
|
|
|
|
%python_exec setup.py test
|
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
|
2018-03-28 10:33:25 +02:00
|
|
|
%python3_only %{_bindir}/tabulate
|
2019-12-02 08:37:11 +01:00
|
|
|
%{python_sitelib}/tabulate.*
|
|
|
|
%{python_sitelib}/tabulate-%{version}-py*.egg-info
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__
|
2017-04-24 09:49:35 +02:00
|
|
|
|
|
|
|
%changelog
|