# forked from: https://src.fedoraproject.org/rpms/python-tablib %global modname tablib Name: python-tablib Version: 1.1.0 Release: 1%{?dist} Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV) License: MIT URL: http://github.com/kennethreitz/tablib Source0: https://files.pythonhosted.org/packages/source/t/tablib/%{modname}-%{version}.tar.gz # FIXME(hguemar): fix compat with openpyxl 2.5.x from upstream PR #296 # https://github.com/kennethreitz/tablib/pull/296 #Patch001: fix-openpyxl-2.5.x-compat-pr-296.patch #Patch002: tablib-0.13.0-print-as-function.patch #Patch003: tablib-0.13.0-remove-py2-dependency.patch Patch001: tablib-1.1.0_disable_setuptools_scm.patch BuildArch: noarch BuildRequires: /usr/bin/2to3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-setuptools_scm #BuildRequires: python3-markuppy BuildRequires: python3-pyyaml BuildRequires: python3-odfpy BuildRequires: python3-openpyxl BuildRequires: python3-pytest BuildRequires: python3-pytest-cov BuildRequires: python3-xlrd BuildRequires: python3-xlwt %global _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) %description %_description %package -n python3-tablib Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV) Requires: python3-markuppy Requires: python3-odfpy Requires: python3-openpyxl Requires: python3-pyyaml Requires: python3-xlrd Requires: python3-xlwt Requires: python3-pandas Requires: python3-pyyaml Requires: python3-tabulate %description -n python3-tablib 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 %autosetup -n %{modname}-%{version} # Remove shebangs for lib in $(find . -name "*.py"); do sed -i.new -e '/\/usr\/bin\/env/d' $lib done sed -i "/\(xlwt\|odf\|xlrd\|openpyxl\|openpyxl\..*\|yaml\)'/d" setup.py #find . -name "*.py" | grep -v 3 | xargs 2to3 -w #sed -i '/tablib.packages.*3/d' setup.py %build %{py3_build} %install %{py3_install} %check # todo: require build depedency to MarkupPy # %%{__python3} -m pytest tests/test_tablib.py %files -n python3-%{modname} %license %doc AUTHORS README.md HISTORY.md %{python3_sitelib}/%{modname} %{python3_sitelib}/*.egg-info %changelog * Wed May 6 2019 Satoru SATOH - 1.1.0-1 - New upstream * Fri Nov 15 2019 Satoru SATOH - 0.14.0-1 - New upstream - Cleanup this RPM SPEC * Sat Feb 02 2019 Fedora Release Engineering - 0.12.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 04 2019 Miro Hrončok - 0.12.1-8 - Subpackage python2-tablib has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.12.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 4 2018 Haïkel Guémar - 0.12.1-6 - Fix compatibility with openpyxl 2.5.x * Tue Jun 19 2018 Miro Hrončok - 0.12.1-5 - Rebuilt for Python 3.7 * Mon Mar 26 2018 Iryna Shcherbina - 0.12.1-4 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Oct 20 2017 Kevin Fenzi - 0.12.1-2 - Change BuildRequires for older PyYAML packages. * Wed Oct 11 2017 Kevin Fenzi - 0.12.1-1 - Update to 0.12.1. - Fix requires for no longer bundled items. Fixes bug #1499306 - Enable tests. * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.11.5-3 - Python 2 binary package renamed to python2-tablib See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.11.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 21 2017 Ralph Bean - 0.11.5-1 - new version * Sat Feb 11 2017 Fedora Release Engineering - 0.10.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 20 2016 Tomas Orsava - 0.10.0-6 - Added a patch for Python 3.6 compatibility - Updated PyPI download URL * Mon Dec 19 2016 Miro Hrončok - 0.10.0-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.10.0-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Wed Aug 05 2015 Haïkel Guémar - 0.10.0-1 - Upstream 0.10.0 - Enable python3 subpackage * Thu Jun 18 2015 Fedora Release Engineering - 0.9.11.20120702git752443f-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.11.20120702git752443f-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.9.11.20120702git752443f-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.9.11.20120702git752443f-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.9.11.20120702git752443f-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jul 06 2012 Ralph Bean - 0.9.11.20120702git752443f-5 - Disable python3 for now since the package is so unstable. * Fri Jul 06 2012 Ralph Bean - 0.9.11.20120702git752443f-4 - Patch to fix broken setup.py * Wed Jul 04 2012 Ralph Bean - 0.9.11.20120702git752443f-3 - Removed shebangs. * Wed Jul 04 2012 Ralph Bean - 0.9.11.20120702git752443f-2 - Added link to upstream bug for patch. * Thu Jun 28 2012 Ralph Bean - 0.9.11.20120702git752443f-1 - Initial package for Fedora