Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37048526
en ru br
ALT Linux repos
S:2.1.0-alt1

Group :: Development/Python3
RPM: python3-module-prettytable

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%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

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin