14
0

- Rename package according to the PyPI name

- 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

- %check: use %pyunittest rpm macro

- Update URL/Source0 due to Google Code Hosting being dead since 2016 

- Run through spec-cleaner

- Remove superfluous devel dependency for noarch package

- Make description neutral.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prettytable?expand=0&rev=3
This commit is contained in:
2021-11-24 10:00:39 +00:00
committed by Git OBS Bridge
parent b4d50706b4
commit a847a37670
2 changed files with 8 additions and 3 deletions

63
python-prettytable.spec Normal file
View File

@@ -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}/prettytable*
%changelog