[packages/python3-prettytable] - python-prettytable.spec updated to 3.16.0 for python 3.9+

qboosh qboosh at pld-linux.org
Thu Jul 10 17:26:32 CEST 2025


commit e93113756b020dd5e4f3b92c5b8816b0552a71dd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 10 17:28:03 2025 +0200

    - python-prettytable.spec updated to 3.16.0 for python 3.9+

 python-prettytable.spec  | 105 -----------------------------------------------
 python3-prettytable.spec |  74 +++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+), 105 deletions(-)
---
diff --git a/python-prettytable.spec b/python-prettytable.spec
deleted file mode 100644
index d68f61f..0000000
--- a/python-prettytable.spec
+++ /dev/null
@@ -1,105 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Python 2 library for displaying tabular data in nice ASCII table format
-Summary(pl.UTF-8):	Biblioteka Pythona 2 do wyświetlania danych tabelarycznych w ładnej tabelce ASCII
-Name:		python-prettytable
-# keep 1.x here for python2 support
-Version:	1.0.1
-Release:	3
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/prettytable/
-Source0:	https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz
-# Source0-md5:	b5bd0acec56ae7ccf5ac22d3f671c3a7
-URL:		https://pypi.org/project/PrettyTable
-%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
-BuildRequires:	glibc-localedb-all
-%endif
-%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
-A simple Python 2 library for easily displaying tabular data in a
-visually appealing ASCII table format.
-
-%description -l pl.UTF-8
-Prosta biblioteka Pythona 2 do łatwego wyświetlania danych
-tabelarycznych w ładnie wyglądającej tabelce ASCII.
-
-%package -n python3-prettytable
-Summary:	Python 3 library for displaying tabular data in nice ASCII table format
-Summary(pl.UTF-8):	Biblioteka Pythona 3 do wyświetlania danych tabelarycznych w ładnej tabelce ASCII
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-prettytable
-A simple Python 3 library for easily displaying tabular data in a
-visually appealing ASCII table format.
-
-%description -n python3-prettytable -l pl.UTF-8
-Prosta biblioteka Pythona 3 do łatwego wyświetlania danych
-tabelarycznych w ładnie wyglądającej tabelce ASCII.
-
-%prep
-%setup -q -n prettytable-%{version}
-
-%build
-%if %{with tests}
-export LC_ALL=C.UTF-8
-%endif
-
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%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.md COPYING README.md
-%{py_sitescriptdir}/prettytable.py[co]
-%{py_sitescriptdir}/prettytable-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-prettytable
-%defattr(644,root,root,755)
-%doc CHANGELOG.md COPYING README.md
-%{py3_sitescriptdir}/prettytable.py
-%{py3_sitescriptdir}/__pycache__/prettytable.cpython-*.py[co]
-%{py3_sitescriptdir}/prettytable-%{version}-py*.egg-info
-%endif
diff --git a/python3-prettytable.spec b/python3-prettytable.spec
new file mode 100644
index 0000000..a7d7dfd
--- /dev/null
+++ b/python3-prettytable.spec
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Python 3 library for displaying tabular data in nice ASCII table format
+Summary(pl.UTF-8):	Biblioteka Pythona 3 do wyświetlania danych tabelarycznych w ładnej tabelce ASCII
+Name:		python3-prettytable
+Version:	3.16.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/prettytable/
+Source0:	https://files.pythonhosted.org/packages/source/p/prettytable/prettytable-%{version}.tar.gz
+# Source0-md5:	85a6f1812e31ea2dcf8119f219c1a032
+URL:		https://pypi.org/project/PrettyTable
+%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
+BuildRequires:	glibc-localedb-all
+%endif
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-vcs
+BuildRequires:	python3-hatchling >= 1.27
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-cov
+BuildRequires:	python3-pytest-lazy-fixtures
+BuildRequires:	python3-wcwidth
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A simple Python library for easily displaying tabular data in a
+visually appealing ASCII table format.
+
+%description -l pl.UTF-8
+Prosta biblioteka Pythona do łatwego wyświetlania danych
+tabelarycznych w ładnie wyglądającej tabelce ASCII.
+
+%prep
+%setup -q -n prettytable-%{version}
+
+%build
+%if %{with tests}
+export LC_ALL=C.UTF-8
+%endif
+
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_lazy_fixtures.plugin \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{py3_sitescriptdir}/prettytable
+%{py3_sitescriptdir}/prettytable-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-prettytable.git/commitdiff/e93113756b020dd5e4f3b92c5b8816b0552a71dd



More information about the pld-cvs-commit mailing list