Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-tablib py-tablib: updated to 2.0.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3adbceca2c9
branches:  trunk
changeset: 431969:f3adbceca2c9
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun May 17 21:26:11 2020 +0000

description:
py-tablib: updated to 2.0.0

2.0.0:

Breaking changes
The Row.lpush/rpush logic was reversed. lpush was appending while rpush and append were prepending. This was fixed (reversed behavior). If you counted on the broken behavior, please update your code.

Bugfixes
Fixed minimal openpyxl dependency version to 2.6.0.
Dates from xls files are now read as Python datetime objects.
Allow import of "ragged" xlsx files.

Improvements
When importing an xlsx file, Tablib will now read cell values instead of formulas.

1.1.0:

Deprecations
Upcoming breaking change in Tablib 2.0.0: the Row.lpush/rpush logic is reversed. lpush is appending while rpush and append are prepending. The broken behavior will remain in Tablib 1.x and will be 
fixed (reversed) in Tablib 2.0.0. If you count on the broken behavior, please update your code when you upgrade to Tablib 2.x.

Improvements
Tablib is now able to import CSV content where not all rows have the same length. Missing columns on any line receive the empty string.

1.0.0:

Breaking changes
Dropped Python 2 support
Dependencies are now all optional. To install tablib as before with all possible supported formats, run pip install tablib[all]

Improvements
Formats can now be dynamically registered through the tablib.formats.registry.refister API.
Tablib methods expecting data input (detect_format, import_set, Dataset.load, Databook.load) now accepts file-like objects in addition to raw strings and bytestrings.

Bugfixes
Fixed a crash when exporting an empty string with the ReST format
Error cells from imported .xls files contain now the error string

diffstat:

 textproc/py-tablib/Makefile                                      |  21 ++-
 textproc/py-tablib/PLIST                                         |  50 +++------
 textproc/py-tablib/distinfo                                      |  11 +-
 textproc/py-tablib/patches/patch-tablib_packages_dbfpy_dbfnew.py |  36 -------
 4 files changed, 33 insertions(+), 85 deletions(-)

diffs (188 lines):

diff -r da45d0072955 -r f3adbceca2c9 textproc/py-tablib/Makefile
--- a/textproc/py-tablib/Makefile       Sun May 17 21:17:27 2020 +0000
+++ b/textproc/py-tablib/Makefile       Sun May 17 21:26:11 2020 +0000
@@ -1,28 +1,31 @@
-# $NetBSD: Makefile,v 1.3 2018/07/06 11:15:23 adam Exp $
+# $NetBSD: Makefile,v 1.4 2020/05/17 21:26:11 adam Exp $
 
-DISTNAME=      tablib-0.12.1
+DISTNAME=      tablib-2.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tablib/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://python-tablib.org/
+HOMEPAGE=      https://tablib.readthedocs.io/
 COMMENT=       Format agnostic tabular data library (XLS, JSON, YAML, CSV)
 LICENSE=       mit
 
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 DEPENDS+=      ${PYPKGPREFIX}-odfpy-[0-9]*:../../textproc/py-odfpy
-DEPENDS+=      ${PYPKGPREFIX}-openpyxl-[0-9]*:../../textproc/py-openpyxl
-DEPENDS+=      ${PYPKGPREFIX}-unicodecsv-[0-9]*:../../databases/py-unicodecsv
+DEPENDS+=      ${PYPKGPREFIX}-openpyxl>=2.6.0:../../textproc/py-openpyxl
+DEPENDS+=      ${PYPKGPREFIX}-tabulate-[0-9]*:../../textproc/py-tabulate
 DEPENDS+=      ${PYPKGPREFIX}-xlrd-[0-9]*:../../textproc/py-xlrd
 DEPENDS+=      ${PYPKGPREFIX}-xlwt-[0-9]*:../../textproc/py-xlwt
 DEPENDS+=      ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_LANGUAGES= # none
 
-do-test:
-       cd ${WRKSRC} && py.test-${PYVERSSUFFIX} test_tablib.py
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+# requires py-markuppy
+#do-test:
+#      cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests/test_tablib.py
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r da45d0072955 -r f3adbceca2c9 textproc/py-tablib/PLIST
--- a/textproc/py-tablib/PLIST  Sun May 17 21:17:27 2020 +0000
+++ b/textproc/py-tablib/PLIST  Sun May 17 21:26:11 2020 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/03/24 13:55:08 joerg Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/05/17 21:26:11 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,15 +7,18 @@
 ${PYSITELIB}/tablib/__init__.py
 ${PYSITELIB}/tablib/__init__.pyc
 ${PYSITELIB}/tablib/__init__.pyo
-${PYSITELIB}/tablib/compat.py
-${PYSITELIB}/tablib/compat.pyc
-${PYSITELIB}/tablib/compat.pyo
 ${PYSITELIB}/tablib/core.py
 ${PYSITELIB}/tablib/core.pyc
 ${PYSITELIB}/tablib/core.pyo
+${PYSITELIB}/tablib/exceptions.py
+${PYSITELIB}/tablib/exceptions.pyc
+${PYSITELIB}/tablib/exceptions.pyo
 ${PYSITELIB}/tablib/formats/__init__.py
 ${PYSITELIB}/tablib/formats/__init__.pyc
 ${PYSITELIB}/tablib/formats/__init__.pyo
+${PYSITELIB}/tablib/formats/_cli.py
+${PYSITELIB}/tablib/formats/_cli.pyc
+${PYSITELIB}/tablib/formats/_cli.pyo
 ${PYSITELIB}/tablib/formats/_csv.py
 ${PYSITELIB}/tablib/formats/_csv.pyc
 ${PYSITELIB}/tablib/formats/_csv.pyo
@@ -28,6 +31,9 @@
 ${PYSITELIB}/tablib/formats/_html.py
 ${PYSITELIB}/tablib/formats/_html.pyc
 ${PYSITELIB}/tablib/formats/_html.pyo
+${PYSITELIB}/tablib/formats/_jira.py
+${PYSITELIB}/tablib/formats/_jira.pyc
+${PYSITELIB}/tablib/formats/_jira.pyo
 ${PYSITELIB}/tablib/formats/_json.py
 ${PYSITELIB}/tablib/formats/_json.pyc
 ${PYSITELIB}/tablib/formats/_json.pyo
@@ -37,6 +43,9 @@
 ${PYSITELIB}/tablib/formats/_ods.py
 ${PYSITELIB}/tablib/formats/_ods.pyc
 ${PYSITELIB}/tablib/formats/_ods.pyo
+${PYSITELIB}/tablib/formats/_rst.py
+${PYSITELIB}/tablib/formats/_rst.pyc
+${PYSITELIB}/tablib/formats/_rst.pyo
 ${PYSITELIB}/tablib/formats/_tsv.py
 ${PYSITELIB}/tablib/formats/_tsv.pyc
 ${PYSITELIB}/tablib/formats/_tsv.pyo
@@ -73,33 +82,6 @@
 ${PYSITELIB}/tablib/packages/dbfpy/utils.py
 ${PYSITELIB}/tablib/packages/dbfpy/utils.pyc
 ${PYSITELIB}/tablib/packages/dbfpy/utils.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/__init__.py
-${PYSITELIB}/tablib/packages/dbfpy3/__init__.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/__init__.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/dbf.py
-${PYSITELIB}/tablib/packages/dbfpy3/dbf.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/dbf.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/dbfnew.py
-${PYSITELIB}/tablib/packages/dbfpy3/dbfnew.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/dbfnew.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/fields.py
-${PYSITELIB}/tablib/packages/dbfpy3/fields.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/fields.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/header.py
-${PYSITELIB}/tablib/packages/dbfpy3/header.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/header.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/record.py
-${PYSITELIB}/tablib/packages/dbfpy3/record.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/record.pyo
-${PYSITELIB}/tablib/packages/dbfpy3/utils.py
-${PYSITELIB}/tablib/packages/dbfpy3/utils.pyc
-${PYSITELIB}/tablib/packages/dbfpy3/utils.pyo
-${PYSITELIB}/tablib/packages/markup.py
-${PYSITELIB}/tablib/packages/markup.pyc
-${PYSITELIB}/tablib/packages/markup.pyo
-${PYSITELIB}/tablib/packages/markup3.py
-${PYSITELIB}/tablib/packages/markup3.pyc
-${PYSITELIB}/tablib/packages/markup3.pyo
-${PYSITELIB}/tablib/packages/ordereddict.py
-${PYSITELIB}/tablib/packages/ordereddict.pyc
-${PYSITELIB}/tablib/packages/ordereddict.pyo
+${PYSITELIB}/tablib/utils.py
+${PYSITELIB}/tablib/utils.pyc
+${PYSITELIB}/tablib/utils.pyo
diff -r da45d0072955 -r f3adbceca2c9 textproc/py-tablib/distinfo
--- a/textproc/py-tablib/distinfo       Sun May 17 21:17:27 2020 +0000
+++ b/textproc/py-tablib/distinfo       Sun May 17 21:26:11 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2018/03/30 06:35:44 adam Exp $
+$NetBSD: distinfo,v 1.3 2020/05/17 21:26:11 adam Exp $
 
-SHA1 (tablib-0.12.1.tar.gz) = d00fa84c5fd8d9d38c4ccc03dae6105342720b98
-RMD160 (tablib-0.12.1.tar.gz) = c81838594d30d82c6c912f57b409a56379892f82
-SHA512 (tablib-0.12.1.tar.gz) = 5207f59dab59f465584fc6c55d6322150f550c50f50a35d6901a39ed05a624a52dfdb5a9a9ddf0d6bc7285e5a3a4972c458895e4cc204a365c3df0d9ada0228a
-Size (tablib-0.12.1.tar.gz) = 63420 bytes
-SHA1 (patch-tablib_packages_dbfpy_dbfnew.py) = 688f06aea1f5ecf70f5a76e971cb193d65a424f9
+SHA1 (tablib-2.0.0.tar.gz) = 951a721aba46bfc8d04dfca7bcff8c5ae73ae679
+RMD160 (tablib-2.0.0.tar.gz) = 95fa1310979822e23634b7769405c7c0e517f20e
+SHA512 (tablib-2.0.0.tar.gz) = cfc4a8ac55a6a37644c3b23fceb1a45a78d52b18e76dd64c0a2e1ed82a710f559d4937c76a5803ad4f31ed0d3d49d0c95210a5b38ba380b24a488e56860c502d
+Size (tablib-2.0.0.tar.gz) = 86259 bytes
diff -r da45d0072955 -r f3adbceca2c9 textproc/py-tablib/patches/patch-tablib_packages_dbfpy_dbfnew.py
--- a/textproc/py-tablib/patches/patch-tablib_packages_dbfpy_dbfnew.py  Sun May 17 21:17:27 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-$NetBSD: patch-tablib_packages_dbfpy_dbfnew.py,v 1.1 2018/03/30 06:35:44 adam Exp $
-
-Python 3 compatibility.
-
---- tablib/packages/dbfpy/dbfnew.py.orig       2018-03-30 06:31:28.000000000 +0000
-+++ tablib/packages/dbfpy/dbfnew.py
-@@ -160,9 +160,9 @@ if __name__ == '__main__':
-     dbfn.add_field("date", 'D', 8)
-     dbfn.write("tst.dbf")
-     # test new dbf
--    print "*** created tst.dbf: ***"
-+    print("*** created tst.dbf: ***")
-     dbft = Dbf('tst.dbf', readOnly=0)
--    print repr(dbft)
-+    print(repr(dbft))
-     # add a record
-     rec = DbfRecord(dbft)
-     rec['name'] = 'something'
-@@ -177,13 +177,13 @@ if __name__ == '__main__':
-     rec.store()
- 
-     # show the records
--    print "*** inserted 2 records into tst.dbf: ***"
--    print repr(dbft)
-+    print("*** inserted 2 records into tst.dbf: ***")
-+    print(repr(dbft))
-     for i1 in range(len(dbft)):
-         rec = dbft[i1]
-         for fldName in dbft.fieldNames:
--            print '%s:\t %s' % (fldName, rec[fldName])
--        print
-+            print('%s:\t %s' % (fldName, rec[fldName]))
-+        print()
-     dbft.close()
- 
-     # vim: set et sts=4 sw=4 :



Home | Main Index | Thread Index | Old Index