From b4d50706b4fb16e33c24ed96de662f761597cae9359c0feb48cfc612c8018831 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 24 Nov 2021 07:27:17 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prettytable?expand=0&rev=2 --- .gitattributes | 23 ++++++ .gitignore | 1 + prettytable-2.4.0.tar.gz | 3 + python-PrettyTable.changes | 160 +++++++++++++++++++++++++++++++++++++ python-PrettyTable.spec | 63 +++++++++++++++ 5 files changed, 250 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 prettytable-2.4.0.tar.gz create mode 100644 python-PrettyTable.changes create mode 100644 python-PrettyTable.spec 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/prettytable-2.4.0.tar.gz b/prettytable-2.4.0.tar.gz new file mode 100644 index 0000000..808c23b --- /dev/null +++ b/prettytable-2.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18e56447f636b447096977d468849c1e2d3cfa0af8e7b5acfcf83a64790c0aca +size 49756 diff --git a/python-PrettyTable.changes b/python-PrettyTable.changes new file mode 100644 index 0000000..ee2c06d --- /dev/null +++ b/python-PrettyTable.changes @@ -0,0 +1,160 @@ +------------------------------------------------------------------- +Mon Nov 8 21:56:21 UTC 2021 - Dirk Müller + +- update to 2.4.0: + * Markdown: Add colons to align the rendered output + * Add rows attribute to prettytable + * Add Jupyter repr and default interpreter repr methods + * Add custom format support + * Add method to generate LaTex formatted string + * Add support for Python 3.10 + * Update issue templates + * Add support for positional junction characters and add "double_border" table style + * Access properties instead of protected fields in _get_options() + * Use declarative metadata and support PyPy3 + * Add auto index column + * Support formatting options in get_json_string() + * Add tbody and thead tags + * Add add_rows to add several rows at once + * Add setuptools as a dependency + * Fix string comparison and deprecation warning +- skip python2 + +------------------------------------------------------------------- +Fri Oct 15 10:39:59 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + +------------------------------------------------------------------- +Tue Nov 10 03:28:39 UTC 2020 - Steve Kowalik + +- Update URL/Source0 due to Google Code Hosting being dead since 2016 + +------------------------------------------------------------------- +Thu Nov 7 15:05:10 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 4 12:51:40 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Sep 5 12:25:58 UTC 2017 - jengelh@inai.de + +- Make description neutral. + +------------------------------------------------------------------- +Fri Sep 1 15:02:31 UTC 2017 - sebix+novell.com@sebix.at + +- activate tests +- remove shebang from prettytable.py +- run spec-cleaner + +------------------------------------------------------------------- +Wed Aug 23 09:46:12 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + +------------------------------------------------------------------- +Thu Oct 24 11:10:15 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Fri Apr 26 12:09:07 UTC 2013 - speilicke@suse.com + +- Run testsuite + +------------------------------------------------------------------- +Fri Feb 22 13:29:12 UTC 2013 - saschpe@suse.de + +- Use upstream URL and fix copyright + +------------------------------------------------------------------- +Mon Feb 18 17:43:55 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.7: + + Improved Python 2 and 3 compatibility (2.4-3.2). + + Improved support for non-Latin characters. Table widths should + now be calculated correctly for tables with e.g. Japanese text. + + Table contents can now be read in from a .csv file + + Table contents can now be read in from a DB-API compatible cursor + + Table contents can now be read in from a string containing a + HTML table + + new valign attribute controls vertical alignment of text when + some cells in a row have multiple lines of text and others don't. + + hrules attribute can now be set to HEADER, which draws a rule only + under the header row + + new vrules attribute controls drawing of vertical rules and can + be set to FRAME, ALL or NONE + + new header_style attribute controls formatting of text in table + headers and can be set to "cap", "title", "upper", "lower" or None + + Fixed a simple bug regarding validation of max_width + + Fixed a simple bug regarding initialisation of int_format value + for new tables + + Fixed a bug regarding some constructor keywords, such as "border", + being ignored + +------------------------------------------------------------------- +Thu Jul 26 13:25:35 UTC 2012 - saschpe@suse.de + +- Update to version 0.6.1: + + Unicode encoding scheme can now be set by user + + __str__ now uses user-specified encoding instead of ASCII. This + fixes a bug where tables with non-ASCII characters would print + correctly with "print x.get_string()" but not "print x" in 2.x + (thanks to Google Code user kevincobain2000 for reporting this + bug!) + + Fixed an incompatibility with 3.0 and 3.1 (html.escape was new + in 3.2) +- Changes from version 0.6.0: + + Code is now simultaneously compatible with Python 2 and 3 + + Replaced all setter methods with managed attributes + + All styling options can now be set persistently as managed attributes + + Added "add_style" method to make setting style options easily + + Added "del_row", "clear_rows" and "clear" methods to facilitate + removal of data from table. + + Added "copy" method to facilitate cloning of a table. + + Removed caching functionality, which added complexity and fragility + for relatively little gain + + Removed methods that just printed strings produced by get_string and + get_html_string - just use inbuilt print! + + Improved unicode support + + Added support for decimal and floating point number formatting + support + + Added support for using a custom key sorting methods + + Added support for line breaks in data + + Added support for max column widths + + Fixed table slicing + + Fixed bug where closing tags in HTML tables were not printed + + Fixed HTML table sorting bug + + Fixed bug whereby changing field_names did not recompute widths + +------------------------------------------------------------------- +Wed Nov 30 13:41:40 UTC 2011 - cfarrell@suse.com + +- license update: BSD-2-Clause + SPDX + +------------------------------------------------------------------- +Tue Nov 29 14:37:34 UTC 2011 - saschpe@suse.de + +- Make it a noarch package +- %py_requires needed for SLE + +------------------------------------------------------------------- +Tue Nov 29 12:31:24 UTC 2011 - idoenmez@suse.de + +- Add license boilerplate + +------------------------------------------------------------------- +Thu Nov 24 14:07:29 UTC 2011 - idoenmez@suse.de + +- Name field shouldn't contain a macro + +------------------------------------------------------------------- +Wed Apr 20 19:29:33 CEST 2011 - berendt@b1-systems.de + +- created initial spec file using version 0.5 diff --git a/python-PrettyTable.spec b/python-PrettyTable.spec new file mode 100644 index 0000000..207d2f4 --- /dev/null +++ b/python-PrettyTable.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-PrettyTable +# +# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2011 Christian Berendt. +# +# 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%global skip_python2 1 +Name: python-PrettyTable +Version: 2.4.0 +Release: 0 +Summary: Library for displaying tabular data in formatted fashion +License: BSD-2-Clause +URL: https://github.com/jazzband/prettytable +Source0: https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz +BuildRequires: %{python_module dbm} +BuildRequires: %{python_module pytest-lazy-fixture} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +PrettyTable is a Python library for representing tabular data in +ASCII tables, inspired by the tables emitted by the PostgreSQL shell, +psql. PrettyTable allows for selection of which columns are to be +printed, independent alignment of columns (left or right justified or +centred) and printing of "sub-tables" by specifying a row range. + +%prep +%setup -q -n prettytable-%{version} + +%build +%python_build + +%install +%python_install + +%check +export LANG=en_US.UTF-8 +%pytest + +%files %{python_files} +%license COPYING +%doc CHANGELOG.md README.md +%{python_sitelib}/* + +%changelog