From f3a0f5aabf7c3ed52c7494ed9e995f91d877f84bdd99832082709998c312aa05 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 3 Dec 2019 21:12:00 +0000 Subject: [PATCH] Accepting request 753796 from home:TheBlackCat:branches:devel:languages:python - Update to 0.14.0 - Drop python2 support due to dependencies dropping python2 support OBS-URL: https://build.opensuse.org/request/show/753796 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tablib?expand=0&rev=8 --- python-tablib.changes | 23 +++++++++++++++++++++++ python-tablib.spec | 17 ++++++++++------- tablib-0.13.0.tar.gz | 3 --- tablib-0.14.0.tar.gz | 3 +++ 4 files changed, 36 insertions(+), 10 deletions(-) delete mode 100644 tablib-0.13.0.tar.gz create mode 100644 tablib-0.14.0.tar.gz diff --git a/python-tablib.changes b/python-tablib.changes index 4082288..e54e028 100644 --- a/python-tablib.changes +++ b/python-tablib.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Mon Dec 2 16:03:37 UTC 2019 - Todd R + +- Drop python2 support due to dependencies dropping python2 support +- Update to 0.14.0 + + Deprecations + * The 0.14.x series will be the last to support Python 2 + + Breaking changes + * Dropped Python 3.4 support + + Improvements + * Added Python 3.7 and 3.8 support + * The project is now maintained by the Jazzband team, https://jazzband.co + * Improved format autodetection and added autodetection for the odf format. + * Added search to all documentation pages + * Open xlsx workbooks in read-only mode + * Unpin requirements + * Only install backports.csv on Python 2 + + Bugfixes + * Fixed `DataBook().load` parameter ordering (first stream, then format). + * Fixed a regression for xlsx exports where non-string values were forced to + strings + * Fixed xlsx format detection (which was often detected as `xls` format) + ------------------------------------------------------------------- Sat Apr 6 15:07:34 UTC 2019 - John Vandenberg diff --git a/python-tablib.spec b/python-tablib.spec index c7a889e..c1f63f4 100644 --- a/python-tablib.spec +++ b/python-tablib.spec @@ -21,25 +21,31 @@ # I get syntax errors in the brp-python-bytecompile step... %define _python_bytecompile_errors_terminate_build 0 %endif +%define skip_python2 1 Name: python-tablib -Version: 0.13.0 +Version: 0.14.0 Release: 0 Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV) License: MIT Group: Development/Languages/Python URL: http://python-tablib.org Source: https://files.pythonhosted.org/packages/source/t/tablib/tablib-%{version}.tar.gz +BuildRequires: %{python_module MarkupPy} BuildRequires: %{python_module PyYAML >= 3.12} BuildRequires: %{python_module odfpy >= 1.3.5} BuildRequires: %{python_module openpyxl >= 2.4.8} BuildRequires: %{python_module pandas >= 0.20.3} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module xlrd >= 1.1.0} BuildRequires: %{python_module xlwt >= 1.3.0} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python2-backports.csv +Requires: python-MarkupPy Requires: python-PyYAML >= 3.12 Requires: python-odfpy >= 1.3.5 Requires: python-openpyxl >= 2.4.8 @@ -68,24 +74,21 @@ Output formats supported: %prep %setup -q -n tablib-%{version} # Remove shebang lines from non-executable scripts: -find tablib -name "*.py" | xargs sed -i '1 { /^#!/ d }' +find src -name "*.py" | xargs sed -i '1 { /^#!/ d }' %build %python_build %install %python_install -# Remove dependency on backports.csv from egg-info, as it isnt -# installed on Python 3, breaking pkg_resources resolver. -sed -i '/backports.csv/d' %{buildroot}%{python3_sitelib}/tablib*egg-info/requires.txt %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec test_tablib.py +%pytest %files %{python_files} %license LICENSE -%doc README.rst HISTORY.rst +%doc AUTHORS README.md HISTORY.md %{python_sitelib}/* %changelog diff --git a/tablib-0.13.0.tar.gz b/tablib-0.13.0.tar.gz deleted file mode 100644 index 3acc9c7..0000000 --- a/tablib-0.13.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5f33c079b07eb10cf9c4b4696add2ecf32c89db7729240546ecdcd5c92f67e13 -size 65131 diff --git a/tablib-0.14.0.tar.gz b/tablib-0.14.0.tar.gz new file mode 100644 index 0000000..607287c --- /dev/null +++ b/tablib-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6336e7aa3f0e5894b47270a3dc639cc2e78eb823c7ccb8c4512fb408cdc18d08 +size 76937