pkgsrc-WIP-changes archive

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

'Add py-isodate: ISO 8601 date/time/duration parser and formater'



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon@centosdev.local>
Pushed By:	outpaddling
Date:		Thu Mar 30 11:57:02 2017 -0500
Changeset:	3e9d6b197192baf8e7014e69ed17fff62d168243

Modified Files:
	Makefile
Added Files:
	py-isodate/DESCR
	py-isodate/Makefile
	py-isodate/PLIST
	py-isodate/TODO
	py-isodate/buildlink3.mk
	py-isodate/distinfo

Log Message:
'Add py-isodate: 	ISO 8601 date/time/duration parser and formater'

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3e9d6b197192baf8e7014e69ed17fff62d168243

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

diffstat:
 Makefile                 |  1 +
 py-isodate/DESCR         | 19 ++++++++++++++++
 py-isodate/Makefile      | 27 +++++++++++++++++++++++
 py-isodate/PLIST         | 56 ++++++++++++++++++++++++++++++++++++++++++++++++
 py-isodate/TODO          |  1 +
 py-isodate/buildlink3.mk | 12 +++++++++++
 py-isodate/distinfo      |  6 ++++++
 7 files changed, 122 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 0857921757..173d25d7a8 100644
--- a/Makefile
+++ b/Makefile
@@ -3080,6 +3080,7 @@ SUBDIR+=	py-ionize
 SUBDIR+=	py-iprogress
 SUBDIR+=	py-ipython-sql
 SUBDIR+=	py-irco
+SUBDIR+=	py-isodate
 SUBDIR+=	py-jabber-aimt
 SUBDIR+=	py-jabber-icqt
 SUBDIR+=	py-jabber-idavoll
diff --git a/py-isodate/DESCR b/py-isodate/DESCR
new file mode 100644
index 0000000000..3fd3baa206
--- /dev/null
+++ b/py-isodate/DESCR
@@ -0,0 +1,19 @@
+This module implements ISO 8601 date, time and duration parsing. The
+implementation follows ISO8601:2004 standard, and implements only date/time
+representations mentioned in the standard. If something is not mentioned there,
+then it is treated as non existent, and not as an allowed option.
+
+For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended
+by this module to support 2 digit years. (while it may still be valid as ISO
+date, because it is not explicitly forbidden.) Another example is, when no time
+zone information is given for a time, then it should be interpreted as local
+time, and not UTC.
+
+As this module maps ISO 8601 dates/times to standard Python data types, like
+date, time, datetime and timedelta, it is not possible to convert all possible
+ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by
+the Python date and datetime classes. Additionally fractional seconds are
+limited to microseconds. That means if the parser finds for instance nanoseconds
+it will round it to microseconds.
+
+WWW: https://pypi.python.org/pypi/isodate
diff --git a/py-isodate/Makefile b/py-isodate/Makefile
new file mode 100644
index 0000000000..b8e45d2b79
--- /dev/null
+++ b/py-isodate/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD$
+
+###########################################################
+#               Generated by fbsd2pkg                     #
+###########################################################
+
+DISTNAME=	isodate-${PORTVERSION}
+PKGNAME=	${PYPKGPREFIX}-isodate-${PORTVERSION}
+CATEGORIES=	devel
+MASTER_SITES=	${CHEESESHOP}
+
+MAINTAINER=	bacon4000%gmail.com@localhost
+
+COMMENT=	ISO 8601 date/time/duration parser and formater
+# Double-check this
+LICENSE=	modified-bsd
+
+# Pessimistic assumption.  Test and change if possible.
+MAKE_JOBS_SAFE=	no
+
+PYDISTUTILSPKG=	yes
+
+PORTVERSION=	0.5.0
+CHEESESHOP=	http://pypi.python.org/packages/source/i/isodate/
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-isodate/PLIST b/py-isodate/PLIST
new file mode 100644
index 0000000000..18976b57c6
--- /dev/null
+++ b/py-isodate/PLIST
@@ -0,0 +1,56 @@
+@comment $NetBSD$
+${PYSITELIB}/isodate-${PKGVERSION}-py2.7.egg-info/PKG-INFO
+${PYSITELIB}/isodate-${PKGVERSION}-py2.7.egg-info/SOURCES.txt
+${PYSITELIB}/isodate-${PKGVERSION}-py2.7.egg-info/dependency_links.txt
+${PYSITELIB}/isodate-${PKGVERSION}-py2.7.egg-info/top_level.txt
+${PYSITELIB}/isodate/__init__.py
+${PYSITELIB}/isodate/__init__.pyc
+${PYSITELIB}/isodate/__init__.pyo
+${PYSITELIB}/isodate/duration.py
+${PYSITELIB}/isodate/duration.pyc
+${PYSITELIB}/isodate/duration.pyo
+${PYSITELIB}/isodate/isodates.py
+${PYSITELIB}/isodate/isodates.pyc
+${PYSITELIB}/isodate/isodates.pyo
+${PYSITELIB}/isodate/isodatetime.py
+${PYSITELIB}/isodate/isodatetime.pyc
+${PYSITELIB}/isodate/isodatetime.pyo
+${PYSITELIB}/isodate/isoduration.py
+${PYSITELIB}/isodate/isoduration.pyc
+${PYSITELIB}/isodate/isoduration.pyo
+${PYSITELIB}/isodate/isoerror.py
+${PYSITELIB}/isodate/isoerror.pyc
+${PYSITELIB}/isodate/isoerror.pyo
+${PYSITELIB}/isodate/isostrf.py
+${PYSITELIB}/isodate/isostrf.pyc
+${PYSITELIB}/isodate/isostrf.pyo
+${PYSITELIB}/isodate/isotime.py
+${PYSITELIB}/isodate/isotime.pyc
+${PYSITELIB}/isodate/isotime.pyo
+${PYSITELIB}/isodate/isotzinfo.py
+${PYSITELIB}/isodate/isotzinfo.pyc
+${PYSITELIB}/isodate/isotzinfo.pyo
+${PYSITELIB}/isodate/tests/__init__.py
+${PYSITELIB}/isodate/tests/__init__.pyc
+${PYSITELIB}/isodate/tests/__init__.pyo
+${PYSITELIB}/isodate/tests/test_date.py
+${PYSITELIB}/isodate/tests/test_date.pyc
+${PYSITELIB}/isodate/tests/test_date.pyo
+${PYSITELIB}/isodate/tests/test_datetime.py
+${PYSITELIB}/isodate/tests/test_datetime.pyc
+${PYSITELIB}/isodate/tests/test_datetime.pyo
+${PYSITELIB}/isodate/tests/test_duration.py
+${PYSITELIB}/isodate/tests/test_duration.pyc
+${PYSITELIB}/isodate/tests/test_duration.pyo
+${PYSITELIB}/isodate/tests/test_pickle.py
+${PYSITELIB}/isodate/tests/test_pickle.pyc
+${PYSITELIB}/isodate/tests/test_pickle.pyo
+${PYSITELIB}/isodate/tests/test_strf.py
+${PYSITELIB}/isodate/tests/test_strf.pyc
+${PYSITELIB}/isodate/tests/test_strf.pyo
+${PYSITELIB}/isodate/tests/test_time.py
+${PYSITELIB}/isodate/tests/test_time.pyc
+${PYSITELIB}/isodate/tests/test_time.pyo
+${PYSITELIB}/isodate/tzinfo.py
+${PYSITELIB}/isodate/tzinfo.pyc
+${PYSITELIB}/isodate/tzinfo.pyo
diff --git a/py-isodate/TODO b/py-isodate/TODO
new file mode 100644
index 0000000000..b687356e6b
--- /dev/null
+++ b/py-isodate/TODO
@@ -0,0 +1 @@
+Clean up and test
diff --git a/py-isodate/buildlink3.mk b/py-isodate/buildlink3.mk
new file mode 100644
index 0000000000..d7cceca452
--- /dev/null
+++ b/py-isodate/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	py27-isodate
+
+.if !defined(PY27_ISODATE_BUILDLINK3_MK)
+PY27_ISODATE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.py27-isodate+=	py27-isodate>=0.5.0
+BUILDLINK_PKGSRCDIR.py27-isodate?=	../../wip/py-isodate
+.endif	# PY27_ISODATE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-py27-isodate
diff --git a/py-isodate/distinfo b/py-isodate/distinfo
new file mode 100644
index 0000000000..512fc42542
--- /dev/null
+++ b/py-isodate/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (isodate-0.5.0.tar.gz) = 1174aeb482567df02933bdc6f6e7c2a9a72eb31e
+RMD160 (isodate-0.5.0.tar.gz) = 4154ab9e03a9a35649569d4dc65bae1d40f58d88
+SHA512 (isodate-0.5.0.tar.gz) = 5f45fee798e8f79a5f9f271570d542fb68936577e3670a675e66e037bb15d76653717d7fcdeae1cd6ae9afb2f153206210c40d4cfcd8bd60c3ed873d2e6b19d4
+Size (isodate-0.5.0.tar.gz) = 25917 bytes


Home | Main Index | Thread Index | Old Index