Sisyphus repository
Last update: 13 september 2019 | SRPMs: 17434 | Visits: 15095540
en ru br
ALT Linux repos
S:0.12.1-alt1

Group :: Development/Python
RPM: python-module-tablib

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define modname tablib

Name: python-module-%modname
Version: 0.12.1
Release: alt1
Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV)

Group: Development/Python
License: MIT
URL: http://github.com/kennethreitz/tablib
Source0: %name-%version.tar

BuildArch: noarch

BuildRequires: python-module-chardet python-module-docutils time
BuildRequires: python-module-hacking python-module-html5lib
BuildRequires: python-module-ndg-httpsclient python-module-ntlm python-module-yaml

BuildRequires(pre): rpm-build-python3
BuildPreReq: python3-module-html5lib python3-module-pbr python3-module-yaml


%description
Tablib is a format-agnostic tabular dataset library, written in Python.

Output formats supported:

- Excel (Sets + Books)
- JSON (Sets + Books)
- YAML (Sets + Books)
- HTML (Sets)
- TSV (Sets)
- CSV (Sets)

%package -n python3-module-%modname
Summary:        Format agnostic tabular data library (XLS, JSON, YAML, CSV)
Group:            Development/Python3

%add_python3_req_skip UserDict
%add_python3_req_skip odf

%description -n python3-module-%modname
Tablib is a format-agnostic tabular dataset library, written in Python.

Output formats supported:

- Excel (Sets + Books)
- JSON (Sets + Books)
- YAML (Sets + Books)
- HTML (Sets)
- TSV (Sets)
- CSV (Sets)

%prep
%setup
pushd tablib/packages/dbfpy/
sed -i '/print.*/ s/$/)/' dbfnew.py | sed 's/print/print(/' > dbfnew.py
popd
cp -fR . ../python3

%build
%python_build

pushd ../python3
%python3_build
popd

%install
%python_install

pushd ../python3
%python3_install
popd

%files
%doc README.rst AUTHORS LICENSE
%python_sitelibdir/*

%files -n python3-module-%modname
%doc README.rst AUTHORS LICENSE
%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