Accepting request 489792 from devel:languages:python

tabulate is rather useful for ascii tables

OBS-URL: https://build.opensuse.org/request/show/489792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tabulate?expand=0&rev=1
This commit is contained in:
Dominique Leuenberger 2017-04-24 07:49:35 +00:00 committed by Git OBS Bridge
commit 7608aa6ecb
5 changed files with 121 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

31
python-tabulate.changes Normal file
View File

@ -0,0 +1,31 @@
-------------------------------------------------------------------
Thu Apr 20 03:38:33 UTC 2017 - sflees@suse.de
- Update to 0.7.7
* support. Iterables of dicts. ``latex_booktabs`` format.
* ```fancy_grid`` and ``html`` formats. Command line utility.
* ``--float`` format option for the command line utility.
* New table formats (``psql``, ``jira``, ``moinmoin``, ``textile``).
* Wide character support.
* Printing from database cursors.
* Option to print row indices.
* Boolean columns. Ragged rows.
* Option to disable number parsing.
* Bug Fixes
- Convert to single spec
-------------------------------------------------------------------
Wed Jul 6 15:52:35 UTC 2016 - tbechtold@suse.com
- Add LICENSE and README
-------------------------------------------------------------------
Thu Jul 24 08:58:20 UTC 2014 - fcastelli@suse.com
- Remove python-setuptools requirement
-------------------------------------------------------------------
Wed Jul 23 10:37:31 UTC 2014 - fcastelli@suse.com
- Initial version of the package (0.7.2)

63
python-tabulate.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package python-tabulate
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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-tabulate
Version: 0.7.7
Release: 0
Summary: Pretty-print tabular data in Python
License: MIT
Group: Development/Languages/Python
Url: https://bitbucket.org/astanin/python-tabulate
Source: ttps://pypi.io/packages/source/t/tabulate/tabulate-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Pretty-print tabular data in Python.
The main use cases of the library are:
* 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
%prep
%setup -q -n tabulate-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README
%{python_sitelib}/*
%changelog

3
tabulate-0.7.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:83a0b8e17c09f012090a50e1e97ae897300a72b35e0c86c0b53d3bd2ae86d8c6
size 39140