62e71d
# python-pandas creates a cyclic dependency on python-Bottleneck;
62e71d
# we need to be able to break it during the new Python bootstrap
62e71d
%bcond bootstrap 0
62e71d
%bcond pandas_tests %{without bootstrap}
62e71d
62e71d
Name:           python-tabulate
62e71d
Version:        0.9.0
62e71d
Release:        11%{?dist}
62e71d
Summary:        Pretty-print tabular data in Python, a library and a command-line utility
62e71d
62e71d
# SPDX
62e71d
License:        MIT
62e71d
URL:            https://github.com/astanin/python-tabulate
62e71d
Source0:        %{pypi_source tabulate}
62e71d
# Hand-written for Fedora based on --help output using groff_man(7) format
62e71d
Source1:        tabulate.1
62e71d
62e71d
BuildArch:      noarch
62e71d
62e71d
BuildRequires:  python3-devel
62e71d
62e71d
# Additional test deps; see tox.ini, not in the sdist
62e71d
BuildRequires:  python3dist(pytest)
62e71d
BuildRequires:  python3dist(numpy)
62e71d
%if ! 0%{?el9} && %{with pandas_tests}
62e71d
# The pandas backport is not finished yet in EPEL 9. See BZ 2032550.
62e71d
# The BR is needed only for Pandas integration tests.
62e71d
BuildRequires:  python3dist(pandas)
62e71d
%endif
62e71d
62e71d
%global _description %{expand:
62e71d
The main use cases of the library are:
62e71d
62e71d
• printing small tables without hassle: just one function call, formatting is
62e71d
  guided by the data itself
62e71d
• authoring tabular data for lightweight plain-text markup: multiple output
62e71d
  formats suitable for further editing or transformation
62e71d
• readable presentation of mixed textual and numeric data: smart column
62e71d
  alignment, configurable number formatting, alignment by a decimal point}
62e71d
62e71d
%description %{_description}
62e71d
62e71d
62e71d
%package -n python3-tabulate
62e71d
Summary:        %{summary}
62e71d
62e71d
Recommends:     python3-tabulate+widechars
62e71d
62e71d
%description -n python3-tabulate %{_description}
62e71d
62e71d
62e71d
%pyproject_extras_subpkg -n python3-tabulate widechars
62e71d
62e71d
62e71d
%prep
62e71d
%autosetup -n tabulate-%{version}
62e71d
62e71d
62e71d
%generate_buildrequires
62e71d
%pyproject_buildrequires -x widechars
62e71d
62e71d
62e71d
%build
62e71d
%pyproject_wheel
62e71d
62e71d
62e71d
%install
62e71d
%pyproject_install
62e71d
%pyproject_save_files tabulate
62e71d
62e71d
install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p '%{SOURCE1}'
62e71d
62e71d
62e71d
%check
62e71d
%pytest --doctest-modules --ignore benchmark.py
62e71d
62e71d
62e71d
%files -n python3-tabulate -f %{pyproject_files}
62e71d
%doc CHANGELOG
62e71d
%doc README.md
62e71d
62e71d
%{_bindir}/tabulate
62e71d
%{_mandir}/man1/tabulate.1*
62e71d
62e71d
62e71d
%changelog
62e71d
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-11
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
62e71d
62e71d
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-10
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
62e71d
62e71d
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.9.0-9
62e71d
- Rebuilt for Python 3.13
62e71d
62e71d
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.9.0-8
62e71d
- Bootstrap for Python 3.13
62e71d
62e71d
* Thu May 30 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.0-7
62e71d
- Add bcond to allow breaking cyclic dependency on python-Bottleneck
62e71d
62e71d
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
62e71d
62e71d
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
62e71d
62e71d
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
62e71d
62e71d
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 0.9.0-3
62e71d
- Rebuilt for Python 3.12
62e71d
62e71d
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
62e71d
62e71d
* Sat Oct 08 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.0-1
62e71d
- Update to 0.9.0 (close RHBZ#2132789)
62e71d
62e71d
* Fri Oct 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.10-2
62e71d
- Use pyproject-rpm-macros
62e71d
- Adjust packaged documentation files
62e71d
- Run doctests; see tox.ini, not in the sdist
62e71d
- Tidy up package description
62e71d
- Switch URL from PyPI project to GitHub project
62e71d
- Add a man page
62e71d
62e71d
* Thu Aug 18 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.10-1
62e71d
- Update to 0.8.10 (close RHBZ#2099766)
62e71d
- Drop EPEL9 numpy workaround; the flexiblas-related crashes have been fixed
62e71d
62e71d
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-5
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
62e71d
62e71d
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.8.9-4
62e71d
- Rebuilt for Python 3.11
62e71d
62e71d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-3
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
62e71d
62e71d
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
62e71d
62e71d
* Sun Jul 04 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.9-1
62e71d
- Update to latest release
62e71d
- replace nose with pytest
62e71d
- drop no longer needed patch
62e71d
62e71d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
62e71d
62e71d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
62e71d
62e71d
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.7-3
62e71d
- Add tabulate[widechars] subpackage
62e71d
62e71d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.7-2
62e71d
- Rebuilt for Python 3.9
62e71d
62e71d
* Sun Mar 29 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 0.8.7-1
62e71d
- Update to 0.8.7
62e71d
62e71d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
62e71d
62e71d
* Wed Jan 22 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 0.8.6-1
62e71d
- Update to 0.8.6
62e71d
62e71d
* Wed Nov 20 12:21:20 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.5-2
62e71d
- Remove all useless changes in spec
62e71d
62e71d
* Fri Oct 25 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.5-1
62e71d
- Update to 0.8.5
62e71d
62e71d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-7
62e71d
- Rebuilt for Python 3.8.0rc1 (#1748018)
62e71d
62e71d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-6
62e71d
- Rebuilt for Python 3.8
62e71d
62e71d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
62e71d
62e71d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-4
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
62e71d
62e71d
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-3
62e71d
- Remove py2 subpackage
62e71d
62e71d
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-2
62e71d
- Fix FTBFS
62e71d
62e71d
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-1
62e71d
- Update to latest upstream release
62e71d
62e71d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
62e71d
62e71d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.2-3
62e71d
- Rebuilt for Python 3.7
62e71d
62e71d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
62e71d
62e71d
* Tue Jan 09 2018 Steve Traylen <steve.traylen@cern.ch> - 0.8.2-1
62e71d
- Update to 0.8.2, Correct source URL.
62e71d
62e71d
* Tue Oct 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.1-1
62e71d
- Update to 0.8.1
62e71d
- Run more tests
62e71d
62e71d
* Sun Oct 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
62e71d
- Update to 0.8.0
62e71d
62e71d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-7
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
62e71d
62e71d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-6
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
62e71d
62e71d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.5-5
62e71d
- Rebuild for Python 3.6
62e71d
62e71d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
62e71d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
62e71d
62e71d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
62e71d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
62e71d
62e71d
* Sun Nov 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.5-2
62e71d
- Drop multiple versions of bins
62e71d
62e71d
* Tue Nov 24 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.5-1
62e71d
- Initial package