Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Aug 2020 20:19:11 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r547079 - in head/devel: . py-csv23
Message-ID:  <202008302019.07UKJBXD094302@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Aug 30 20:19:10 2020
New Revision: 547079
URL: https://svnweb.freebsd.org/changeset/ports/547079

Log:
  Add py-csv23 0.3.2
  
  csv23 provides the unicode-based API of the Python 3 csv module for Python 2 and
  3. Code that should run under both versions of Python can use it to hide the
  bytes vs. text difference between 2 and 3 and stick to the newer unicode-based
  interface.
  
  It uses utf-8 as default encoding everywhere.
  
  WWW: https://github.com/xflr6/csv23

Added:
  head/devel/py-csv23/
  head/devel/py-csv23/Makefile   (contents, props changed)
  head/devel/py-csv23/distinfo   (contents, props changed)
  head/devel/py-csv23/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Aug 30 20:02:43 2020	(r547078)
+++ head/devel/Makefile	Sun Aug 30 20:19:10 2020	(r547079)
@@ -4290,6 +4290,7 @@
     SUBDIR += py-crashtest
     SUBDIR += py-crc32c
     SUBDIR += py-crcmod
+    SUBDIR += py-csv23
     SUBDIR += py-ctags
     SUBDIR += py-curio
     SUBDIR += py-cursive

Added: head/devel/py-csv23/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-csv23/Makefile	Sun Aug 30 20:19:10 2020	(r547079)
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	csv23
+PORTVERSION=	0.3.2
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python 2/3 unicode CSV compatibility layer
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		python zip
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>

Added: head/devel/py-csv23/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-csv23/distinfo	Sun Aug 30 20:19:10 2020	(r547079)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1598777612
+SHA256 (csv23-0.3.2.zip) = a33cc86b7c871fde3708c272ae1f6d496b0441d5dd0327ada1424e12af8a8bbe
+SIZE (csv23-0.3.2.zip) = 42760

Added: head/devel/py-csv23/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-csv23/pkg-descr	Sun Aug 30 20:19:10 2020	(r547079)
@@ -0,0 +1,8 @@
+csv23 provides the unicode-based API of the Python 3 csv module for Python 2 and
+3. Code that should run under both versions of Python can use it to hide the
+bytes vs. text difference between 2 and 3 and stick to the newer unicode-based
+interface.
+
+It uses utf-8 as default encoding everywhere.
+
+WWW: https://github.com/xflr6/csv23



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008302019.07UKJBXD094302>