pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/py-tablib



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun May 17 21:26:11 UTC 2020

Modified Files:
        pkgsrc/textproc/py-tablib: Makefile PLIST distinfo
Removed Files:
        pkgsrc/textproc/py-tablib/patches:
            patch-tablib_packages_dbfpy_dbfnew.py

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/textproc/py-tablib/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/py-tablib/PLIST \
    pkgsrc/textproc/py-tablib/distinfo
cvs rdiff -u -r1.1 -r0 \
    pkgsrc/textproc/py-tablib/patches/patch-tablib_packages_dbfpy_dbfnew.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/py-tablib/Makefile
diff -u pkgsrc/textproc/py-tablib/Makefile:1.3 pkgsrc/textproc/py-tablib/Makefile:1.4
--- pkgsrc/textproc/py-tablib/Makefile:1.3      Fri Jul  6 11:15:23 2018
+++ pkgsrc/textproc/py-tablib/Makefile  Sun May 17 21:26:11 2020
@@ -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"

Index: pkgsrc/textproc/py-tablib/PLIST
diff -u pkgsrc/textproc/py-tablib/PLIST:1.2 pkgsrc/textproc/py-tablib/PLIST:1.3
--- pkgsrc/textproc/py-tablib/PLIST:1.2 Sat Mar 24 13:55:08 2018
+++ pkgsrc/textproc/py-tablib/PLIST     Sun May 17 21:26:11 2020
@@ -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}/${EGG_INFODIR}/top_level.tx
 ${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/_df.pyo
 ${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/_latex.pyo
 ${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/recor
 ${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
Index: pkgsrc/textproc/py-tablib/distinfo
diff -u pkgsrc/textproc/py-tablib/distinfo:1.2 pkgsrc/textproc/py-tablib/distinfo:1.3
--- pkgsrc/textproc/py-tablib/distinfo:1.2      Fri Mar 30 06:35:44 2018
+++ pkgsrc/textproc/py-tablib/distinfo  Sun May 17 21:26:11 2020
@@ -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



Home | Main Index | Thread Index | Old Index