Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37748455
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-prettytable

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: python3-module-prettytable-2.1.0-alt1.patch
Скачать


 .gear/rules                     |  4 ++
 .gear/tags/list                 |  1 +
 .gear/upstream/remotes          |  3 ++
 python3-module-prettytable.spec | 83 +++++++++++++++++++++++++++++++++++++++++
 src/prettytable/prettytable.py  |  1 -
 tests/test_prettytable.py       |  2 +-
 6 files changed, 92 insertions(+), 2 deletions(-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..3d696f4
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,4 @@
+tar: @version@:.
+copy?: *.patch
+diff: @version@:. .
+
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..0625d01
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+bc7e5319992304d820249e0530050671f217ef1d 2.1.0
diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes
new file mode 100644
index 0000000..e773c87
--- /dev/null
+++ b/.gear/upstream/remotes
@@ -0,0 +1,3 @@
+[remote "upstream"]
+	url = https://github.com/jazzband/prettytable
+	fetch = +refs/heads/*:refs/remotes/upstream/*
diff --git a/python3-module-prettytable.spec b/python3-module-prettytable.spec
new file mode 100644
index 0000000..a22b187
--- /dev/null
+++ b/python3-module-prettytable.spec
@@ -0,0 +1,83 @@
+%define _unpackaged_files_terminate_build 1
+
+%define oname prettytable
+
+%def_disable check
+
+Name: python3-module-%oname
+Version: 2.1.0
+Release: alt1
+Summary: Python3 library for easily displaying tabular data in a visually appealing ASCII table format
+
+Group: Development/Python3
+License: BSD
+Source: %name-%version.tar
+Patch: %name-%version-%release.patch
+Url: https://github.com/jazzband/prettytable
+BuildArch: noarch
+
+BuildRequires(pre): rpm-build-python3
+BuildRequires: python3-devel
+BuildRequires: python3-module-setuptools python3-module-setuptools_scm
+%if_enabled check
+BuildRequires: python3-module-pytest-cov python3-module-tox python3-module-wcwidth python3-module-coverage
+%endif
+
+%py3_provides %oname
+
+%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.
+
+%prep
+%setup
+%patch -p1
+
+%build
+export SETUPTOOLS_SCM_PRETEND_VERSION=%version
+%python3_build
+
+%install
+export SETUPTOOLS_SCM_PRETEND_VERSION=%version
+%python3_install
+
+%check
+export SETUPTOOLS_SCM_PRETEND_VERSION=%version
+export PIP_NO_INDEX=YES
+export TOXENV=py%{python_version_nodots python3}
+#tox.py3 --sitepackages -r -vv
+tox.py3 -e py%{python_version_nodots python3} -v
+
+%files
+%doc README.md COPYING CHANGELOG.md
+%python3_sitelibdir/*
+
+%changelog
+* Wed Apr 07 2021 Alexey Shabalin <shaba@altlinux.org> 2.1.0-alt1
+- 2.1.0
+
+* Fri May 25 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.10-alt2.g4676e41
+- NMU: packaged egg-info files.
+
+* Mon May 14 2018 L.A. Kostis <lakostis@altlinux.ru> 0.10-alt1.g4676e41
+- GIT 4676e41.
+- Added boxchar changes from https://github.com/platomav/PTable (need MCExtractor to work).
+- Disable tests (as they rely on coverage %% rather than exit code).
+
+* Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.7.2-alt2.1
+- (NMU) rebuild with rpm-build-python3-0.1.9
+  (for common python3/site-packages/ and auto python3.3-ABI dep when needed)
+
+* Sat Feb 07 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.7.2-alt2
+- Added provides: prettytable
+
+* Sat Feb 07 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.7.2-alt1
+- Version 0.7.2
+- Added module for Python 3
+
+* Mon Sep 17 2012 Pavel Shilovsky <piastry@altlinux.org> 0.6.1-alt1
+- Initial release for Sisyphus (based on Fedora)
diff --git a/src/prettytable/prettytable.py b/src/prettytable/prettytable.py
index 2ade247..9693124 100644
--- a/src/prettytable/prettytable.py
+++ b/src/prettytable/prettytable.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #
 # Copyright (c) 2009-2014, Luke Maurits <luke@maurits.id.au>
 # All rights reserved.
diff --git a/tests/test_prettytable.py b/tests/test_prettytable.py
index bcf34b6..4ce7c1e 100644
--- a/tests/test_prettytable.py
+++ b/tests/test_prettytable.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 
 import io
 import random
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin