summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2012-06-03 23:04:22 +0000
committerwiz <wiz@pkgsrc.org>2012-06-03 23:04:22 +0000
commit13c12676918949e9987ce16dfa35710cfb8703ff (patch)
tree04fe532cafb39a1fdf16ea8f8dfed73a81dfa6d2 /time
parent043155d7a83dfebb3d3398cbad793ad576874ba1 (diff)
downloadpkgsrc-13c12676918949e9987ce16dfa35710cfb8703ff.tar.gz
Update to 3.2.4:
Changes from 3.2.3 to 3.2.4 Fixed a possible double deallocation in the mxDateTime C API import helper. Thanks to Daniele Varrazzo for reporting this. Changes from 3.2.2 to 3.2.3 Fixed a possible segfault when using the .pydate(), .pydatetime() and .pytime() methods. Thanks to Daniel Szoska for reporting this. Changes from 3.2.1 to 3.2.2 mxDateTime seconds rounding is now more careful to not show 60.00 or 61.00 as second value. mxDateTime will now correctly work with numeric arrays (numpy) again. Thanks to Christian Marquardt for reporting the problem. mxDateTime's DateTimeFromAbsDateTime() now accepts leap second values (86400.0 - <86401.0) as well. Thanks to Christian Marquardt for reporting the problem. mxDateTime range errors did not always format the wrong value. Made mxDateTime compile again on Python 2.1 and 2.2. Changes from 3.2.0 to 3.2.1 Fixed a segfault when comparing DateTime/DateTimeDelta with None objects. Thanks to Mark Matthews for reporting this. Changes from 3.1.2 to 3.2.0 Added new .rebuild() methods to both DateTime and DateTimeDelta objects, making it easier creating new objects from existing ones by just replacing some of the parameters (akin to the mxURL .rebuild() method). Greatly enhanced the interoperability with the Python datetime module objects: Added support for handling mixed type operations with datetime.time objects. Added new constructor methods to DateTime and DateTimeDelta objects which aid in combining them with Python datetime module objects: .pytime(), .pytimedelta(), .pydatetime() and .pydate() as appropriate. Added support for Python datetime module objects to the generic mxDateTime constructors DateTimeFrom(), DateFrom(), DateTimeDeltaFrom() (and their aliases). The Python datetime module's C API is now loaded on demand whenever mxDateTime needs to work with PyDateTime objects. mxDateTime was updated to use mixed type number slots, a feature which was added to Python in version 2.1 (by the author of mxDateTime, Marc-André Lemburg). This has made working with DateTime and DateTimeDelta objects and other date/time types a lot more orbust. mxDateTime's gmtime() now also works for ticks values beyond 2038 on 32-bit platforms that implement a POSIX confirm gmtime(), but cannot handle post 2038 dates due to data type restrictions, e.g. older 32-bit Linux platforms. As side-effect, this also speeds up the gmtime() implementation on all platforms with POSIX conform date/time handling. mxDateTime will try to use the most accurate clock available on the system for now(). For most POSIX systems, this is a nanosecond resolution clock. A new global now_resolution allows checking the resolution reported by the system. The performance of now() was enhanced by directly interfacing to the various platform C APIs. Changed: mxDateTime will now format the seconds value in the repr() and the str() output rounded to two decimal places. In previous versions, it used to truncate the fraction after two decimal places. Known problem: mxDateTime doesn't build on FreeBSD with Python 2.7 and 2.7.1. This is a known problem with Python 2.7 and will be fixed in Python 2.7.2. See http://bugs.python.org/issue10547 for details. DateTimeFrom() now accepts a defaultdate parameter when parsing strings or keyword-only arguments. defaultdate provides the defaults to assume when pars of the date/time are not given. It defaults to today(). DateFrom() will now only parse the date parts of a string and only accept date-related keyword arguments. Fixed a bug in the mxDateTime parser that triggered with some ISO formats using second fractions. Thanks to Francesco Pierfederici for bringing this to our attention. Added support for more US AM/PM date formats such as "5:08pm" (without space), "5:08 p.m." (with additional dots) to the mxDateTime parser. Thanks to Tom at TicketStumbler for bringing this to our attention. Changed C API: mxDateTime now uses C longs for years internally and in the C API. Note that the published C API has changed because of this: mxDateTime.DateTime_FromDateAndTime() now expects a long as year instead of an int. This change will require a recompile of the applications using the mxDateTime C API, but should only be noticeable on 64-bit platforms. Added new C API DateTime_FromAbsDateTime to the mxDateTime C API. Added version number to C API object: Due to the changes in the C API, the name of the C API object "mxDateTimeAPI" was changed to "mxDateTimeAPI2", so that applications relying on the old API don't import the changed API by accident. Added optional calendar parameter to DateTimeFromAbsDateTime(). This allows creating DateTime instances with a given calendar. Default is to use the Gregorian calendar. Added BST to mx.DateTime.Timezone. Fixed problem with now() resolution on Windows. It now provides millisecond resolution again. Fixed a bug in mx.DateTime.DateTimeFromAbsDateTime() which caused an endless loop on 64-bit platforms for very large year values. Fixed Debian bug#494792: Incorrect subtraction with regular Python datetime. This was actually a side-effect of the coercion logic previously used in mxDateTime and not really a bug. The new mixed type number slot implementations made it possible to Darko Zurman for pointing this out. Removed left-over debug code which caused the builtin strptime() never to get used. Thanks to Alok Singhal for this one. Fixed a bug in the mxDateTime .ticks() method which causes it to raise an error for vahe Epoch.
Diffstat (limited to 'time')
-rw-r--r--time/py-mxDateTime/Makefile6
-rw-r--r--time/py-mxDateTime/PLIST21
-rw-r--r--time/py-mxDateTime/distinfo8
3 files changed, 17 insertions, 18 deletions
diff --git a/time/py-mxDateTime/Makefile b/time/py-mxDateTime/Makefile
index e3bf8be39ab..e3d9eee4a62 100644
--- a/time/py-mxDateTime/Makefile
+++ b/time/py-mxDateTime/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2011/01/11 11:59:19 drochner Exp $
+# $NetBSD: Makefile,v 1.31 2012/06/03 23:04:22 wiz Exp $
#
-DISTNAME= egenix-mx-base-3.1.3
-PKGNAME= ${PYPKGPREFIX}-mxDateTime-3.1.3
+DISTNAME= egenix-mx-base-3.2.4
+PKGNAME= ${PYPKGPREFIX}-mxDateTime-3.2.4
CATEGORIES= time python
MASTER_SITES= http://downloads.egenix.com/python/
diff --git a/time/py-mxDateTime/PLIST b/time/py-mxDateTime/PLIST
index 85c224d2ab7..3337d53786d 100644
--- a/time/py-mxDateTime/PLIST
+++ b/time/py-mxDateTime/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2011/01/11 11:59:19 drochner Exp $
+@comment $NetBSD: PLIST,v 1.6 2012/06/03 23:04:22 wiz Exp $
${PYSITELIB}/mx/BeeBase/BeeBase.py
${PYSITELIB}/mx/BeeBase/BeeBase.pyc
${PYSITELIB}/mx/BeeBase/BeeBase.pyo
@@ -117,6 +117,9 @@ ${PYSITELIB}/mx/DateTime/mxDateTime/mxh.h
${PYSITELIB}/mx/DateTime/mxDateTime/test.py
${PYSITELIB}/mx/DateTime/mxDateTime/test.pyc
${PYSITELIB}/mx/DateTime/mxDateTime/test.pyo
+${PYSITELIB}/mx/DateTime/mxDateTime/testabsdatetime.py
+${PYSITELIB}/mx/DateTime/mxDateTime/testabsdatetime.pyc
+${PYSITELIB}/mx/DateTime/mxDateTime/testabsdatetime.pyo
${PYSITELIB}/mx/DateTime/mxDateTime/testcmp.py
${PYSITELIB}/mx/DateTime/mxDateTime/testcmp.pyc
${PYSITELIB}/mx/DateTime/mxDateTime/testcmp.pyo
@@ -138,6 +141,9 @@ ${PYSITELIB}/mx/DateTime/mxDateTime/testrichard.pyo
${PYSITELIB}/mx/DateTime/mxDateTime/testroundoff.py
${PYSITELIB}/mx/DateTime/mxDateTime/testroundoff.pyc
${PYSITELIB}/mx/DateTime/mxDateTime/testroundoff.pyo
+${PYSITELIB}/mx/DateTime/mxDateTime/testslotops.py
+${PYSITELIB}/mx/DateTime/mxDateTime/testslotops.pyc
+${PYSITELIB}/mx/DateTime/mxDateTime/testslotops.pyo
${PYSITELIB}/mx/DateTime/mxDateTime/teststrftime.py
${PYSITELIB}/mx/DateTime/mxDateTime/teststrftime.pyc
${PYSITELIB}/mx/DateTime/mxDateTime/teststrftime.pyo
@@ -150,16 +156,6 @@ ${PYSITELIB}/mx/DateTime/mxDateTime/testticks.pyo
${PYSITELIB}/mx/DateTime/timegm.py
${PYSITELIB}/mx/DateTime/timegm.pyc
${PYSITELIB}/mx/DateTime/timegm.pyo
-${PYSITELIB}/mx/Doc/eGenix-mx-Extensions.html
-${PYSITELIB}/mx/Doc/mxBeeBase.pdf
-${PYSITELIB}/mx/Doc/mxDateTime.pdf
-${PYSITELIB}/mx/Doc/mxProxy.pdf
-${PYSITELIB}/mx/Doc/mxQueue.pdf
-${PYSITELIB}/mx/Doc/mxStack.pdf
-${PYSITELIB}/mx/Doc/mxTextTools.pdf
-${PYSITELIB}/mx/Doc/mxTools.pdf
-${PYSITELIB}/mx/Doc/mxUID.pdf
-${PYSITELIB}/mx/Doc/mxURL.pdf
${PYSITELIB}/mx/LICENSE
${PYSITELIB}/mx/Log.py
${PYSITELIB}/mx/Log.pyc
@@ -180,6 +176,9 @@ ${PYSITELIB}/mx/Misc/ConfigFile.pyo
${PYSITELIB}/mx/Misc/Cookie.py
${PYSITELIB}/mx/Misc/Cookie.pyc
${PYSITELIB}/mx/Misc/Cookie.pyo
+${PYSITELIB}/mx/Misc/Daemon.py
+${PYSITELIB}/mx/Misc/Daemon.pyc
+${PYSITELIB}/mx/Misc/Daemon.pyo
${PYSITELIB}/mx/Misc/ExitFunctions.py
${PYSITELIB}/mx/Misc/ExitFunctions.pyc
${PYSITELIB}/mx/Misc/ExitFunctions.pyo
diff --git a/time/py-mxDateTime/distinfo b/time/py-mxDateTime/distinfo
index 3af3c931f9a..8e789966329 100644
--- a/time/py-mxDateTime/distinfo
+++ b/time/py-mxDateTime/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2011/01/11 11:59:19 drochner Exp $
+$NetBSD: distinfo,v 1.10 2012/06/03 23:04:22 wiz Exp $
-SHA1 (egenix-mx-base-3.1.3.tar.gz) = 4bedefb9a698bad754b8847ab6432e77d1c58227
-RMD160 (egenix-mx-base-3.1.3.tar.gz) = 1629f25e4113493766bb0696856543dc7096c347
-Size (egenix-mx-base-3.1.3.tar.gz) = 8170718 bytes
+SHA1 (egenix-mx-base-3.2.4.tar.gz) = 22d7fcbd582177f9a43245eadc3644f3b48cc9a7
+RMD160 (egenix-mx-base-3.2.4.tar.gz) = 4ba81b9e7157e44371987df0e638b6ebeb513d4c
+Size (egenix-mx-base-3.2.4.tar.gz) = 4574057 bytes