diff --git a/.python-tabulate.metadata b/.python-tabulate.metadata new file mode 100644 index 0000000..fd06ffe --- /dev/null +++ b/.python-tabulate.metadata @@ -0,0 +1 @@ +4b01c101daa78fea695eb246072a478f8421741d SOURCES/tabulate-0.8.7.tar.gz diff --git a/SOURCES/0001-python3.10-fix-ImportError.patch b/SOURCES/0001-python3.10-fix-ImportError.patch new file mode 100644 index 0000000..3eba785 --- /dev/null +++ b/SOURCES/0001-python3.10-fix-ImportError.patch @@ -0,0 +1,28 @@ +From ff1277a665997f340c8926fe1cb9a9c0c4fe3432 Mon Sep 17 00:00:00 2001 +From: Tomas Hrnciar +Date: Mon, 8 Feb 2021 10:55:57 +0100 +Subject: [PATCH] python3.10 fix ImportError + +--- + tabulate.py | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/tabulate.py b/tabulate.py +index e035a8c..fac90e5 100644 +--- a/tabulate.py ++++ b/tabulate.py +@@ -10,10 +10,7 @@ import re + import math + + +-if python_version_tuple() >= ("3", "3", "0"): +- from collections.abc import Iterable +-else: +- from collections import Iterable ++from collections.abc import Iterable + + if python_version_tuple()[0] < "3": + from itertools import izip_longest +-- +2.29.2 + diff --git a/SPECS/python-tabulate.spec b/SPECS/python-tabulate.spec new file mode 100644 index 0000000..d4355b8 --- /dev/null +++ b/SPECS/python-tabulate.spec @@ -0,0 +1,159 @@ +%global srcname tabulate + +Name: python-%{srcname} +Version: 0.8.7 +Release: 5%{?dist} +Summary: Pretty-print tabular data in Python, a library and a command-line utility + +License: MIT +URL: https://pypi.python.org/pypi/tabulate +Source: %{pypi_source} + +# Python 3.10 removes deprecated aliases to Collections Abstract Base Classes +# from the collections module. This patch fixes ImportError until it's fixed in +# upstream. +# https://github.com/astanin/python-tabulate/issues/104 +Patch1: 0001-python3.10-fix-ImportError.patch + +BuildArch: noarch + +%global _description %{expand: +The main use cases of the library are: + +* printing small tables without hassle: just one function call, formatting is + guided by the data itself +* authoring tabular data for lightweight plain-text markup: multiple output + formats suitable for further editing or transformation +* readable presentation of mixed textual and numeric data: smart column + alignment, configurable number formatting, alignment by a decimal point} + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +# Test deps +BuildRequires: python3dist(nose) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(pandas) +BuildRequires: python3dist(wcwidth) +# widechars support +%{?python_extras_subpkg:Recommends: python3-%{srcname}+widechars} +%{!?python_extras_subpkg:Recommends: python%{python3_version}dist(wcwidth)} + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{srcname} -i %{python3_sitelib}/%{srcname}*.egg-info widechars} + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{srcname} +%license LICENSE +%doc README README.md +%{_bindir}/%{srcname} +%{python3_sitelib}/%{srcname}*.egg-info/ +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/__pycache__/%{srcname}.* + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.8.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.8.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Miro Hrončok - 0.8.7-3 +- Add tabulate[widechars] subpackage + +* Tue May 26 2020 Miro Hrončok - 0.8.7-2 +- Rebuilt for Python 3.9 + +* Sun Mar 29 2020 Aniket Pradhan - 0.8.7-1 +- Update to 0.8.7 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.8.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jan 22 2020 Aniket Pradhan - 0.8.6-1 +- Update to 0.8.6 + +* Wed Nov 20 12:21:20 CET 2019 Igor Gnatenko - 0.8.5-2 +- Remove all useless changes in spec + +* Fri Oct 25 2019 Ankur Sinha - 0.8.5-1 +- Update to 0.8.5 + +* Thu Oct 03 2019 Miro Hrončok - 0.8.3-7 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.8.3-6 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.8.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.8.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jan 26 2019 Ankur Sinha - 0.8.3-3 +- Remove py2 subpackage + +* Sat Jan 26 2019 Ankur Sinha - 0.8.3-2 +- Fix FTBFS + +* Sat Jan 26 2019 Ankur Sinha - 0.8.3-1 +- Update to latest upstream release + +* Sat Jul 14 2018 Fedora Release Engineering - 0.8.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.8.2-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 09 2018 Steve Traylen - 0.8.2-1 +- Update to 0.8.2, Correct source URL. + +* Tue Oct 03 2017 Igor Gnatenko - 0.8.1-1 +- Update to 0.8.1 +- Run more tests + +* Sun Oct 01 2017 Igor Gnatenko - 0.8.0-1 +- Update to 0.8.0 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.7.5-5 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.5-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Sun Nov 29 2015 Igor Gnatenko - 0.7.5-2 +- Drop multiple versions of bins + +* Tue Nov 24 2015 Igor Gnatenko - 0.7.5-1 +- Initial package