From 482df58221305c4b6c59732398031912cc340546 Mon Sep 17 00:00:00 2001 From: Mikel Olasagasti Uranga Date: Sat, 4 Mar 2023 17:06:15 -0500 Subject: [PATCH] Update to upstream 3.6.0 --- .gitignore | 1 + python-prettytable.spec | 79 ++++++++++++++++++++--------------------- sources | 2 +- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index 3c18650..825418f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /prettytable-0.6.tar.gz /prettytable-0.6.1.tar.gz /prettytable-0.7.2.tar.gz +/prettytable-3.6.0.tar.gz diff --git a/python-prettytable.spec b/python-prettytable.spec index 0de707b..109c3d8 100644 --- a/python-prettytable.spec +++ b/python-prettytable.spec @@ -1,36 +1,26 @@ -%global modname prettytable +%global pypi_name prettytable +Name: python-%{pypi_name} +Version: 3.6.0 +Release: %autorelease +Summary: Python library to display tabular data in tables -Name: python-%{modname} -Version: 0.7.2 -Release: 31%{?dist} -Summary: Python library to display tabular data in tables +License: BSD +URL: https://github.com/jazzband/prettytable +Source0: %{pypi_source} -License: BSD -Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz -URL: http://pypi.python.org/pypi/PrettyTable - -BuildArch: noarch +BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: sed +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-lazy-fixture) +BuildRequires: python3dist(wcwidth) -%global _description\ -PrettyTable is a simple Python library designed to make it quick and easy to\ -represent tabular data in visually appealing ASCII tables. It was inspired by\ -the ASCII tables used in 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. - -%description %_description - -%package -n python3-%{modname} -Summary: Python library to display tabular data in tables -%{?python_provide:%python_provide python3-%{modname}} - -%description -n python3-%{modname} +%description PrettyTable is a simple Python library designed to make it quick and easy to represent tabular data in visually appealing ASCII tables. It was inspired by the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for @@ -38,32 +28,41 @@ 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. +%package -n python3-%{pypi_name} +Summary: Python library to display tabular data in tables + +%description -n python3-%{pypi_name} +PrettyTable is a simple Python library designed to make it quick and easy to +represent tabular data in visually appealing ASCII tables. It was inspired by +the ASCII tables used in 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 %{modname}-%{version} +%autosetup -n %{pypi_name}-%{version} +sed -i -e '/^*!\//, 1d' src/prettytable/*.py +%generate_buildrequires +%pyproject_buildrequires -r %build -%py3_build - -%check -%{__python3} %{modname}_test.py - +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files prettytable +%check +%pytest -%files -n python3-%{modname} -%{!?_licensedir:%global license %%doc} -%license COPYING -%doc README CHANGELOG -%{python3_sitelib}/%{modname}.py* -%{python3_sitelib}/__pycache__/%{modname}* -%{python3_sitelib}/%{modname}-%{version}* - +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md CHANGELOG.md %changelog +* Sat Mar 04 2023 Mikel Olasagasti Uranga - 3.6.0-1 +- Update to upstream 3.6.0 + * Fri Jan 20 2023 Fedora Release Engineering - 0.7.2-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index bcea3f9..37c21bc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a6b80afeef286ce66733d54a0296b13b prettytable-0.7.2.tar.gz +SHA512 (prettytable-3.6.0.tar.gz) = 845ecb38e34c0c8455d9e7c7dddbd8ca7db06195c8ae13964e05762aaacc1ec1e3da45efcc9b09c6bcf0c5874bb251b975fa3f37112cbfc583d40e637537fbbd