14
0

Accepting request 965856 from home:bnavigator:branches:devel:languages:python

- Update to 3.2.0
  * Drop support for EOL Python 3.6 (#152) @hugovk
  * Use <caption> tags to print html table titles (#160) @daibhid
  * Add colorful tables and themes (#140) @BD103
  * Convert None to empty cell or custom value (#164) @av-guy
  * Resolve "KeyError" issue on _stringify_row (#167)
    @michal-jagiello-tmpl
  * Use concrete built-in exceptions instead of Exception base
    class (#169) @hugovk
  * Fix width for custom none_format (#174) @av-guy
  * Enforce max widths for field names (#171) @OlafvdSpek

OBS-URL: https://build.opensuse.org/request/show/965856
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prettytable?expand=0&rev=11
This commit is contained in:
2022-03-30 12:17:20 +00:00
committed by Git OBS Bridge
parent 09a2321e9f
commit 9072a587e1
4 changed files with 28 additions and 7 deletions

View File

@@ -17,21 +17,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-prettytable
Version: 2.5.0
Version: 3.2.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 base >= 3.7}
BuildRequires: %{python_module importlib-metadata if %python-base < 3.8}
BuildRequires: %{python_module pytest-lazy-fixture}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wcwidth}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-wcwidth
@@ -51,12 +54,14 @@ centred) and printing of "sub-tables" by specifying a row range.
%prep
%setup -q -n prettytable-%{version}
sed -i '1 {/env python/d}' src/prettytable/prettytable.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
@@ -65,6 +70,7 @@ export LANG=en_US.UTF-8
%files %{python_files}
%license COPYING
%doc CHANGELOG.md README.md
%{python_sitelib}/prettytable*
%{python_sitelib}/prettytable
%{python_sitelib}/prettytable-%{version}*-info
%changelog