# # spec file for package python-tableprint # # Copyright (c) 2020, Martin Hauke # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tableprint Version: 0.8.0 Release: 0 Summary: Pretty console printing of tabular data License: MIT Group: Development/Languages/Python URL: https://github.com/nirum/tableprint Source: https://github.com/nirum/tableprint/archive/v%{version}.tar.gz#/tableprint-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module future} BuildRequires: %{python_module pandas} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} BuildRequires: %{python_module wcwidth} # /SECTION Requires: python-future Requires: python-six Requires: python-wcwidth BuildArch: noarch %python_subpackages %description Formatted console printing of tabular data. tableprint lets you easily print formatted tables of data. Unlike other modules, you can print single rows of data at a time (useful for printing ongoing computation results). %prep %setup -q -n tableprint-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %license License.md %doc README.md %{python_sitelib}/* %changelog