commit 7608aa6ecbdbaae25993302589b9a005c4c4041d8b53926d408d2a4770b2529a Author: Dominique Leuenberger Date: Mon Apr 24 07:49:35 2017 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-tabulate.changes b/python-tabulate.changes new file mode 100644 index 0000000..7a4c55d --- /dev/null +++ b/python-tabulate.changes @@ -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) + diff --git a/python-tabulate.spec b/python-tabulate.spec new file mode 100644 index 0000000..c38fc01 --- /dev/null +++ b/python-tabulate.spec @@ -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 diff --git a/tabulate-0.7.7.tar.gz b/tabulate-0.7.7.tar.gz new file mode 100644 index 0000000..76bfaaa --- /dev/null +++ b/tabulate-0.7.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83a0b8e17c09f012090a50e1e97ae897300a72b35e0c86c0b53d3bd2ae86d8c6 +size 39140