pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/py-isodate Import py27-isodate-0.5.1 as time/py-i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8d3bb10617a
branches:  trunk
changeset: 650243:a8d3bb10617a
user:      rodent <rodent%pkgsrc.org@localhost>
date:      Sun Apr 19 21:27:58 2015 +0000

description:
Import py27-isodate-0.5.1 as time/py-isodate.

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.

diffstat:

 time/py-isodate/DESCR    |  17 ++++++++++++++
 time/py-isodate/Makefile |  19 ++++++++++++++++
 time/py-isodate/PLIST    |  56 ++++++++++++++++++++++++++++++++++++++++++++++++
 time/py-isodate/distinfo |   5 ++++
 4 files changed, 97 insertions(+), 0 deletions(-)

diffs (113 lines):

diff -r 1c3edd5cb8d8 -r a8d3bb10617a time/py-isodate/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-isodate/DESCR     Sun Apr 19 21:27:58 2015 +0000
@@ -0,0 +1,17 @@
+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.
diff -r 1c3edd5cb8d8 -r a8d3bb10617a time/py-isodate/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-isodate/Makefile  Sun Apr 19 21:27:58 2015 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2015/04/19 21:27:58 rodent Exp $
+
+DISTNAME=      isodate-0.5.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    python time
+MASTER_SITES=  https://pypi.python.org/packages/source/i/isodate/
+
+MAINTAINER=    kamelderouiche%yahoo.com@localhost
+HOMEPAGE=      http://cheeseshop.python.org/pypi/isodate
+COMMENT=       ISO 8601 date/time/duration parser and formatter
+LICENSE=       modified-bsd
+
+USE_LANGUAGES= # none
+
+do-test:
+       ${RUN} cd ${WRKSRC}/src/isodate/tests; ${SETENV} ${TEST_ENV} ${PYTHONBIN} __init__.py
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1c3edd5cb8d8 -r a8d3bb10617a time/py-isodate/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-isodate/PLIST     Sun Apr 19 21:27:58 2015 +0000
@@ -0,0 +1,56 @@
+@comment $NetBSD: PLIST,v 1.1 2015/04/19 21:27:58 rodent Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/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 -r 1c3edd5cb8d8 -r a8d3bb10617a time/py-isodate/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/py-isodate/distinfo  Sun Apr 19 21:27:58 2015 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/04/19 21:27:58 rodent Exp $
+
+SHA1 (isodate-0.5.1.tar.gz) = b4ee406451fbc95cf12beac368a7155704c52635
+RMD160 (isodate-0.5.1.tar.gz) = b8d10643027b172f6841d255ab086085bdc70b42
+Size (isodate-0.5.1.tar.gz) = 26859 bytes



Home | Main Index | Thread Index | Old Index