3692656
3692656
%global modname tablib
3692656
3692656
Name:             python-tablib
253bcb8
Version:          0.12.1
c50e45b
Release:          15%{?dist}
3692656
Summary:          Format agnostic tabular data library (XLS, JSON, YAML, CSV)
3692656
3692656
License:          MIT
3692656
URL:              http://github.com/kennethreitz/tablib
ae738ed
Source0:          https://files.pythonhosted.org/packages/source/t/tablib/%{modname}-%{version}.tar.gz
62aef6d
# FIXME(hguemar): fix compat with openpyxl 2.5.x from upstream PR #296
62aef6d
# https://github.com/kennethreitz/tablib/pull/296
62aef6d
Patch001:         fix-openpyxl-2.5.x-compat-pr-296.patch
3692656
BuildArch:        noarch
3692656
df9dbc8
BuildRequires:    /usr/bin/2to3
3692656
253bcb8
BuildRequires: python3-pytest
253bcb8
BuildRequires: python3-unicodecsv
253bcb8
BuildRequires: python3-openpyxl
253bcb8
BuildRequires: python3-odfpy
253bcb8
BuildRequires: python3-xlrd
253bcb8
BuildRequires: python3-xlwt
253bcb8
BuildRequires: python3-PyYAML
253bcb8
BuildRequires: python3-pandas
253bcb8
c24b069
%global _description\
c24b069
Tablib is a format-agnostic tabular dataset library, written in Python.\
c24b069
\
c24b069
Output formats supported:\
c24b069
\
c24b069
 - Excel (Sets + Books)\
c24b069
 - JSON (Sets + Books)\
c24b069
 - YAML (Sets + Books)\
c24b069
 - HTML (Sets)\
c24b069
 - TSV (Sets)\
c24b069
 - CSV (Sets)
3692656
c24b069
%description %_description
3692656
3692656
%package -n python3-tablib
3692656
Summary:        Format agnostic tabular data library (XLS, JSON, YAML, CSV)
3692656
daaffc0
BuildRequires:    python3-devel
daaffc0
BuildRequires:    python3-setuptools
253bcb8
Requires: python3-PyYAML
253bcb8
Requires: python3-unicodecsv
253bcb8
Requires: python3-openpyxl
253bcb8
Requires: python3-odfpy
253bcb8
Requires: python3-xlrd
253bcb8
Requires: python3-xlwt
3692656
3692656
%description -n python3-tablib
3692656
Tablib is a format-agnostic tabular dataset library, written in Python.
3692656
3692656
Output formats supported:
3692656
3692656
 - Excel (Sets + Books)
3692656
 - JSON (Sets + Books)
3692656
 - YAML (Sets + Books)
3692656
 - HTML (Sets)
3692656
 - TSV (Sets)
3692656
 - CSV (Sets)
3692656
3692656
3692656
%prep
daaffc0
%setup -q -n %{modname}-%{version}
62aef6d
%patch001 -p1
3692656
# Remove shebangs
3692656
for lib in $(find . -name "*.py"); do
3692656
 sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
3692656
 touch -r $lib $lib.new &&
3692656
 mv $lib.new $lib
3692656
done
3692656
daaffc0
sed -i "/\(xlwt\|odf\|xlrd\|openpyxl\|openpyxl\..*\|yaml\)'/d" setup.py
3692656
find . -name "*.py" | grep -v 3 | xargs 2to3 -w
3692656
daaffc0
sed -i '/tablib.packages.*3/d' setup.py
daaffc0
3692656
3692656
%build
3692656
3692656
%{__python3} setup.py build
3692656
3692656
%install
3692656
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
253bcb8
 
253bcb8
%check
a6bfcd4
%{__python3} -m pytest test_tablib.py
3692656
3692656
%files -n python3-%{modname}
daaffc0
%license
daaffc0
%doc README.rst AUTHORS
3692656
%{python3_sitelib}/%{modname}
daaffc0
%{python3_sitelib}/*.egg-info
3692656
3692656
3692656
%changelog
c50e45b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-15
c50e45b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c50e45b
04d970a
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-14
04d970a
- Rebuilt for Python 3.9
04d970a
74ba860
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-13
74ba860
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
74ba860
ee74352
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-12
ee74352
- Rebuilt for Python 3.8.0rc1 (#1748018)
ee74352
5db8eea
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-11
5db8eea
- Rebuilt for Python 3.8
5db8eea
4ad8420
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-10
4ad8420
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4ad8420
0a6bb67
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-9
0a6bb67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0a6bb67
a6bfcd4
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-8
a6bfcd4
- Subpackage python2-tablib has been removed
a6bfcd4
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
a6bfcd4
61176de
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-7
61176de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
61176de
62aef6d
* Wed Jul  4 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 0.12.1-6
62aef6d
- Fix compatibility with openpyxl 2.5.x
62aef6d
9e73c17
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.12.1-5
9e73c17
- Rebuilt for Python 3.7
9e73c17
c1e758b
* Mon Mar 26 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.12.1-4
c1e758b
- Update Python 2 dependency declarations to new packaging standards
c1e758b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c1e758b
aa4d500
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.1-3
aa4d500
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aa4d500
e1363fc
* Fri Oct 20 2017 Kevin Fenzi <kevin@scrye.com> - 0.12.1-2
e1363fc
- Change BuildRequires for older PyYAML packages. 
e1363fc
253bcb8
* Wed Oct 11 2017 Kevin Fenzi <kevin@scrye.com> - 0.12.1-1
253bcb8
- Update to 0.12.1.
253bcb8
- Fix requires for no longer bundled items. Fixes bug #1499306
253bcb8
- Enable tests. 
253bcb8
c24b069
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.11.5-3
c24b069
- Python 2 binary package renamed to python2-tablib
c24b069
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
c24b069
5db3ed8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.5-2
5db3ed8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5db3ed8
8ddf10e
* Fri Jul 21 2017 Ralph Bean <rbean@redhat.com> - 0.11.5-1
8ddf10e
- new version
8ddf10e
263951e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
263951e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
263951e
ae738ed
* Tue Dec 20 2016 Tomas Orsava <torsava@redhat.com> - 0.10.0-6
ae738ed
- Added a patch for Python 3.6 compatibility
ae738ed
- Updated PyPI download URL
ae738ed
5878285
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-5
5878285
- Rebuild for Python 3.6
5878285
811a7c9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
811a7c9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
811a7c9
829a34a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
829a34a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
829a34a
78b4f3b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
78b4f3b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
78b4f3b
daaffc0
* Wed Aug 05 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.0-1
daaffc0
- Upstream 0.10.0
daaffc0
- Enable python3 subpackage
daaffc0
185513b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-10
185513b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
185513b
0a2ee61
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-9
0a2ee61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0a2ee61
b1b33b9
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-8
b1b33b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b1b33b9
fed4944
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-7
fed4944
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fed4944
0bb6e9d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-6
0bb6e9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0bb6e9d
25f841f
* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-5
25f841f
- Disable python3 for now since the package is so unstable.
25f841f
a4a352a
* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-4
a4a352a
- Patch to fix broken setup.py
a4a352a
3692656
* Wed Jul 04 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-3
3692656
- Removed shebangs.
3692656
3692656
* Wed Jul 04 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-2
3692656
- Added link to upstream bug for patch.
3692656
3692656
* Thu Jun 28 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-1
3692656
- Initial package for Fedora