summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-07-13 18:06:28 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-07-13 18:06:28 +0000
commit220f50a7989f5e5adbad09503665bc0fb458a477 (patch)
tree5d79ab830b25b983a447a75d8d0d8f855f1806ae
parentAdd papilio-loader to the build. (diff)
Add py-backports.csv 1.0.5
The API of the csv module in Python 2 is drastically different from the csv module in Python 3. This is due, for the most part, to the difference between str in Python 2 and Python 3. The semantics of Python 3's version are more useful because they support unicode natively, while Python 2's csv does not. WWW: https://pypi.python.org/pypi/backports.csv WWW: https://github.com/ryanhiebert/backports.csv
Notes
Notes: svn path=/head/; revision=445675
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-backports.csv/Makefile20
-rw-r--r--devel/py-backports.csv/distinfo3
-rw-r--r--devel/py-backports.csv/pkg-descr9
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b366ba954694..747aca16e283 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4164,6 +4164,7 @@
SUBDIR += py-avro
SUBDIR += py-babel
SUBDIR += py-babelfish
+ SUBDIR += py-backports.csv
SUBDIR += py-backports.functools_lru_cache
SUBDIR += py-backports.shutil_get_terminal_size
SUBDIR += py-backports.weakref
diff --git a/devel/py-backports.csv/Makefile b/devel/py-backports.csv/Makefile
new file mode 100644
index 000000000000..cab38ee711c4
--- /dev/null
+++ b/devel/py-backports.csv/Makefile
@@ -0,0 +1,20 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= backports.csv
+PORTVERSION= 1.0.5
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Backport of Python 3 csv module
+
+LICENSE= PSFL
+LICENSE_FILE= ${WRKSRC}/LICENSE.rst
+
+NO_ARCH= yes
+USE_PYTHON= autoplist distutils
+USES= python:2.7
+
+.include <bsd.port.mk>
diff --git a/devel/py-backports.csv/distinfo b/devel/py-backports.csv/distinfo
new file mode 100644
index 000000000000..c09ec0e3dbcb
--- /dev/null
+++ b/devel/py-backports.csv/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1499965900
+SHA256 (backports.csv-1.0.5.tar.gz) = 8c421385cbc6042ba90c68c871c5afc13672acaf91e1508546d6cda6725ebfc6
+SIZE (backports.csv-1.0.5.tar.gz) = 12050
diff --git a/devel/py-backports.csv/pkg-descr b/devel/py-backports.csv/pkg-descr
new file mode 100644
index 000000000000..389966fe0761
--- /dev/null
+++ b/devel/py-backports.csv/pkg-descr
@@ -0,0 +1,9 @@
+The API of the csv module in Python 2 is drastically different from the csv
+module in Python 3. This is due, for the most part, to the difference between
+str in Python 2 and Python 3.
+
+The semantics of Python 3's version are more useful because they support unicode
+natively, while Python 2's csv does not.
+
+WWW: https://pypi.python.org/pypi/backports.csv
+WWW: https://github.com/ryanhiebert/backports.csv