[packages/python3-tabulate] - python-tabulate.spec updated to 0.9.0 for python 3.7+
qboosh
qboosh at pld-linux.org
Sun Oct 26 12:28:30 CET 2025
commit 742bd3f0d9c84dee35094af8b406c6d1604e3972
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 26 12:28:23 2025 +0100
- python-tabulate.spec updated to 0.9.0 for python 3.7+
python-tabulate.spec | 136 --------------------------------------------------
python3-tabulate.spec | 81 ++++++++++++++++++++++++++++++
2 files changed, 81 insertions(+), 136 deletions(-)
---
diff --git a/python-tabulate.spec b/python-tabulate.spec
deleted file mode 100644
index 7a2a86c..0000000
--- a/python-tabulate.spec
+++ /dev/null
@@ -1,136 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module tabulate
-Summary: Pretty-print tabular data
-Summary(pl.UTF-8): Ładne wypisywanie danych tabelarycznych
-Name: python-%{module}
-# keep 0.8.x here for python2 support
-Version: 0.8.10
-Release: 3
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/tabulate/
-Source0: https://files.pythonhosted.org/packages/source/t/tabulate/%{module}-%{version}.tar.gz
-# Source0-md5: 70cc6906675fc840e2675ecd022641bc
-URL: https://github.com/astanin/python-tabulate
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.7
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Pretty-print tabular data in Python.
-
-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 -l pl.UTF-8
-Ładne wypisywanie danych tabelarycznych w Pythonie.
-
-Główne przypadki użycia tej biblioteki to:
-- proste wypisywanie małych tabelek - tylko jedno wywołanie funkcji,
- formatowanie sugerowane przez same dane
-- tworzenie danych tabelarycznych do lekkich znaczników tekstowych -
- wiele formatów wyjściowych, odpowiednich do dalszej edycji lub
- przekształceń
-- czytelna prezentacja mieszanych danych tekstowych i liczbowych -
- inteligentne wyrównywanie kolumn, konfigurowalne formatowanie liczb,
- wyrównywanie do kropki/przecinka dziesiętnego
-
-%package -n python3-%{module}
-Summary: Pretty-print tabular data
-Summary(pl.UTF-8): Ładne wypisywanie danych tabelarycznych
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Pretty-print tabular data in Python.
-
-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 -n python3-%{module} -l pl.UTF-8
-Ładne wypisywanie danych tabelarycznych w Pythonie.
-
-Główne przypadki użycia tej biblioteki to:
-- proste wypisywanie małych tabelek - tylko jedno wywołanie funkcji,
- formatowanie sugerowane przez same dane
-- tworzenie danych tabelarycznych do lekkich znaczników tekstowych -
- wiele formatów wyjściowych, odpowiednich do dalszej edycji lub
- przekształceń
-- czytelna prezentacja mieszanych danych tekstowych i liczbowych -
- inteligentne wyrównywanie kolumn, konfigurowalne formatowanie liczb,
- wyrównywanie do kropki/przecinka dziesiętnego
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG README.md
-%if %{without python3}
-%attr(755,root,root) %{_bindir}/tabulate
-%endif
-%{py_sitescriptdir}/%{module}.py[co]
-%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGELOG README.md
-%attr(755,root,root) %{_bindir}/tabulate
-%{py3_sitescriptdir}/__pycache__/%{module}.cpython-*.py[co]
-%{py3_sitescriptdir}/%{module}.py
-%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%endif
diff --git a/python3-tabulate.spec b/python3-tabulate.spec
new file mode 100644
index 0000000..a557e1d
--- /dev/null
+++ b/python3-tabulate.spec
@@ -0,0 +1,81 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+%define module tabulate
+Summary: Pretty-print tabular data
+Summary(pl.UTF-8): Ładne wypisywanie danych tabelarycznych
+Name: python3-%{module}
+Version: 0.9.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/tabulate/
+Source0: https://files.pythonhosted.org/packages/source/t/tabulate/%{module}-%{version}.tar.gz
+# Source0-md5: 3b10bb64f8a06ca7549d3481b7e6c028
+URL: https://github.com/astanin/python-tabulate
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools >= 1:61.2.0
+BuildRequires: python3-setuptools_scm >= 3.4.3
+BuildRequires: python3-wheel
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.045
+Requires: python3-modules >= 1:3.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Pretty-print tabular data in Python.
+
+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 -l pl.UTF-8
+Ładne wypisywanie danych tabelarycznych w Pythonie.
+
+Główne przypadki użycia tej biblioteki to:
+- proste wypisywanie małych tabelek - tylko jedno wywołanie funkcji,
+ formatowanie sugerowane przez same dane
+- tworzenie danych tabelarycznych do lekkich znaczników tekstowych -
+ wiele formatów wyjściowych, odpowiednich do dalszej edycji lub
+ przekształceń
+- czytelna prezentacja mieszanych danych tekstowych i liczbowych -
+ inteligentne wyrównywanie kolumn, konfigurowalne formatowanie liczb,
+ wyrównywanie do kropki/przecinka dziesiętnego
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest -v --doctest-modules test tabulate
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README.md
+%attr(755,root,root) %{_bindir}/tabulate
+%{py3_sitescriptdir}/tabulate
+%{py3_sitescriptdir}/tabulate-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-tabulate.git/commitdiff/742bd3f0d9c84dee35094af8b406c6d1604e3972
More information about the pld-cvs-commit
mailing list