17
0
Files
python-prettytable/python-prettytable.spec
Steve Kowalik b999f593ad - Update to 3.17.0:
* Added
    + Add support for Python 3.15
    + Set dicts with column-specific config for all column-specific attrs
    + Add add divider() method to create sections
    + Use PEP 639 licence expression
    + Add support for Python 3.14
    + Add new themes to ColorTable
    + Use SPDX license identifier
    + Add field selection to CSV and JSON outputs
    + Add options to disable escaping HTML tables
    + Add support for Python 3.13
  * Changed
    + Drop support for Python 3.9
    + Performance: remove unnecessary deepcopies and add some lru_caches
    + Drop support for Python 3.8
    + Update new home to prettytable/prettytable
    + Speedup: lazy imports and remove import
  * Fixed
    + Fix IndexError for add_rows() with an empty list
    + Fix sortby at class declaration
    + Fix divider intersection for border styles
    + Fix default styles not being reset between set_style() calls
    + Fix add_autoindex alignment for HTML
    + Consider column args when columns are set after initialization
    + Change how size of headers are calculated to fix ColorTable with title
    + Fix max table width calculation
- Update URL to new home.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-prettytable?expand=0&rev=27
2026-01-07 00:33:52 +00:00

74 lines
2.4 KiB
RPMSpec

#
# spec file for package python-prettytable
#
# Copyright (c) 2026 SUSE LLC and contributors
# 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/
#
%{?sle15_python_module_pythons}
Name: python-prettytable
Version: 3.17.0
Release: 0
Summary: Library for displaying tabular data in formatted fashion
License: BSD-2-Clause
URL: https://github.com/prettytable/prettytable
Source0: https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.10}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-lazy-fixtures}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wcwidth}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Requires: python-wcwidth
Provides: python-PrettyTable = %{version}-%{release}
Obsoletes: python-PrettyTable < %{version}-%{release}
%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
%autosetup -p1 -n prettytable-%{version}
sed -i '1 {/env python/d}' src/prettytable/prettytable.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LANG=en_US.UTF-8
%pytest
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md README.md
%{python_sitelib}/prettytable
%{python_sitelib}/prettytable-%{version}*-info
%changelog