1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Add py-isodate 0.4.7

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: http://cheeseshop.python.org/pypi/isodate
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-02-10 01:49:41 +00:00
parent 55d8f7145b
commit 66f8914ca3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290813
4 changed files with 94 additions and 0 deletions

23
devel/py-isodate/Makefile Normal file
View File

@ -0,0 +1,23 @@
# New ports collection makefile for: py-isodate
# Date created: 2012-02-07
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= isodate
PORTVERSION= 0.4.7
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= An ISO 8601 date/time/duration parser and formater
USE_PYTHON= yes
USE_PYDISTUTILS= yes
post-patch:
@${REINPLACE_CMD} -e 's|setuptools|do_not_use_&|' ${WRKSRC}/${PYSETUP}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (isodate-0.4.7.tar.gz) = 62319ac34b2180d450a4d927873cb2600f3c13bce6b2077cdd770c77b3a987e1
SIZE (isodate-0.4.7.tar.gz) = 24172

View File

@ -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: http://cheeseshop.python.org/pypi/isodate

View File

@ -0,0 +1,50 @@
%%PYTHON_SITELIBDIR%%/isodate/__init__.py
%%PYTHON_SITELIBDIR%%/isodate/__init__.pyc
%%PYTHON_SITELIBDIR%%/isodate/__init__.pyo
%%PYTHON_SITELIBDIR%%/isodate/duration.py
%%PYTHON_SITELIBDIR%%/isodate/duration.pyc
%%PYTHON_SITELIBDIR%%/isodate/duration.pyo
%%PYTHON_SITELIBDIR%%/isodate/isodates.py
%%PYTHON_SITELIBDIR%%/isodate/isodates.pyc
%%PYTHON_SITELIBDIR%%/isodate/isodates.pyo
%%PYTHON_SITELIBDIR%%/isodate/isodatetime.py
%%PYTHON_SITELIBDIR%%/isodate/isodatetime.pyc
%%PYTHON_SITELIBDIR%%/isodate/isodatetime.pyo
%%PYTHON_SITELIBDIR%%/isodate/isoduration.py
%%PYTHON_SITELIBDIR%%/isodate/isoduration.pyc
%%PYTHON_SITELIBDIR%%/isodate/isoduration.pyo
%%PYTHON_SITELIBDIR%%/isodate/isoerror.py
%%PYTHON_SITELIBDIR%%/isodate/isoerror.pyc
%%PYTHON_SITELIBDIR%%/isodate/isoerror.pyo
%%PYTHON_SITELIBDIR%%/isodate/isostrf.py
%%PYTHON_SITELIBDIR%%/isodate/isostrf.pyc
%%PYTHON_SITELIBDIR%%/isodate/isostrf.pyo
%%PYTHON_SITELIBDIR%%/isodate/isotime.py
%%PYTHON_SITELIBDIR%%/isodate/isotime.pyc
%%PYTHON_SITELIBDIR%%/isodate/isotime.pyo
%%PYTHON_SITELIBDIR%%/isodate/isotzinfo.py
%%PYTHON_SITELIBDIR%%/isodate/isotzinfo.pyc
%%PYTHON_SITELIBDIR%%/isodate/isotzinfo.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/__init__.py
%%PYTHON_SITELIBDIR%%/isodate/tests/__init__.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/__init__.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/test_date.py
%%PYTHON_SITELIBDIR%%/isodate/tests/test_date.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/test_date.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/test_datetime.py
%%PYTHON_SITELIBDIR%%/isodate/tests/test_datetime.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/test_datetime.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/test_duration.py
%%PYTHON_SITELIBDIR%%/isodate/tests/test_duration.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/test_duration.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/test_strf.py
%%PYTHON_SITELIBDIR%%/isodate/tests/test_strf.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/test_strf.pyo
%%PYTHON_SITELIBDIR%%/isodate/tests/test_time.py
%%PYTHON_SITELIBDIR%%/isodate/tests/test_time.pyc
%%PYTHON_SITELIBDIR%%/isodate/tests/test_time.pyo
%%PYTHON_SITELIBDIR%%/isodate/tzinfo.py
%%PYTHON_SITELIBDIR%%/isodate/tzinfo.pyc
%%PYTHON_SITELIBDIR%%/isodate/tzinfo.pyo
@dirrm %%PYTHON_SITELIBDIR%%/isodate/tests
@dirrm %%PYTHON_SITELIBDIR%%/isodate