Commit graph

31 commits

Author SHA1 Message Date
wiz
350f83fd51 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.
2012-06-03 23:04:22 +00:00
drochner
b272326c2d update to 3.1.3
changes: misc fixes and improvements
2011-01-11 11:59:19 +00:00
zafer
145104482d update master site. 2009-05-30 00:58:30 +00:00
joerg
25a80fb4ab Remove PYBINMODULE. All it did was mark some packages as not available
on some platforms that lacked shared library support in the past. The
list hasn't been maintained at all and the gain is very limited, so just
get rid of it.
2009-03-05 18:51:26 +00:00
joerg
e2107c85f6 Remove Python 2.1 support. 2009-02-09 21:09:20 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
joerg
a77e7015fe Update PYTHON_VERSIONS_COMPATIBLE
- assume that Python 2.4 and 2.5 are compatible and allow checking for
fallout.
- remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+
default. Modify the others to deal with the removals.
2008-04-25 20:39:06 +00:00
abs
4ea2c1d487 enable python25 2008-04-15 16:00:58 +00:00
joerg
fc9991781a Doesn't work with distutils in Python 2.0, so mark 2.1+. 2006-06-02 18:35:53 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
darcy
94ac84002f Upgrade to 2.0.6 2004-12-27 13:03:04 +00:00
recht
4150812b27 add python as category
ok'd a while back at pkgsrcCon by agc and wiz
2004-07-22 09:15:59 +00:00
recht
340ff066b7 bl3ify
Patch provided by Michal Pasternak in PR 24664 (with fixes by me).
2004-03-04 11:11:30 +00:00
recht
8749cb5826 Update to 2.0.5.
The new version includes patches needed to compile the packages
under Python 2.3.
2003-09-09 14:50:51 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
drochner
ee8e9a16c3 -update to 2.0.4 (from 1.3.0... there are too many changes to list,
compatibility is maintained afaict, except an additional "mx" prefix
 in the namespace
-make it a "distutils" pkg, so it works with Python-2.2.x
-license change - now freely redistibutable
2002-10-24 17:26:12 +00:00
jlam
fcf4816dce Undo enabling on python2.2. 2002-10-19 02:49:40 +00:00
jlam
f8effca2a0 Use buildlink2. 2002-10-19 02:45:06 +00:00
jlam
e44bf515dc Strip the ".buildlink" from the names of the python application and
extension Makefile fragments, because they really don't have anything to
do with the buildlink[12] frameworks.  Change all the Makefiles that use
application.buildlink.mk and extension.buildlink.mk to use application.mk
and extension.mk instead.
2002-09-21 23:46:45 +00:00
jlam
e7de7e8840 Use the default EXTRACT_CMD instead of a hand-crafted one, as the default
is sufficient.
2002-02-25 04:47:21 +00:00
drochner
058663ffcc back out the last 2 commits - the conflict was between python-2.0.* and
python20-* and is listed in python20/Makefile now
2002-01-16 20:40:12 +00:00
tron
8a2a918d4f Add explicit conflict with version 2.0.* of the "python" package. 2002-01-16 12:46:33 +00:00
tron
b0b163a4a6 Remove 2.0 from list of accepted "python" version because this package
conflicts with it.
2002-01-16 12:45:00 +00:00
drochner
4b2318df11 convert to use python/extension.buildlink.mk 2002-01-15 18:25:38 +00:00
wiz
5de11cd51a Remove duplicate BUILD_DEPENDS for unzip (bsd.pkg.mk has an automatic one
if EXTRACT_SUFX is .zip); also remove EXTRACT_CMDs that are the same as
the implicit one.
2001-02-20 11:40:07 +00:00
wiz
ad02d69ab2 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:31:58 +00:00
jlam
c0de161e45 s/make/${MAKE_PROGRAM}/g 2000-12-22 18:30:59 +00:00
wiz
df7948804e New category: time. Move many packages here:
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime,
misc/remind, sysutils/logtime, and 19 more from x11.
2000-12-17 23:32:09 +00:00