pkgsrc-Changes archive

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

CVS commit: pkgsrc/time/py-time-machine



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Dec 22 10:05:18 UTC 2025

Modified Files:
        pkgsrc/time/py-time-machine: Makefile distinfo

Log Message:
py-time-machine: updated to 3.2.0

3.2.0

Add time_machine.naive_mode to control how time-machine interprets naive datetimes.
The default mode is MIXED, which preserves existing behaviour: naive datetime objects and date objects are interpreted as UTC, while naive datetime strings are interpreted as local time.

Three alternative modes are available:

UTC: naive datetimes are always interpreted as UTC.
LOCAL: naive datetimes are interpreted as local time, matching Python’s default semantics, and freezegun.
ERROR: naive datetimes raise a RuntimeError, ensuring your tests are isolated from the current timezone.
Note

It’s recommended you use LOCAL or ERROR to avoid confusion around naive datetimes.

Raise RuntimeError when attempting to start time travelling if freezegun is active.
This change should help avoid surprises when migrating complex test suites from freezegun to time-machine.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/time/py-time-machine/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/time/py-time-machine/distinfo

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

Modified files:

Index: pkgsrc/time/py-time-machine/Makefile
diff -u pkgsrc/time/py-time-machine/Makefile:1.13 pkgsrc/time/py-time-machine/Makefile:1.14
--- pkgsrc/time/py-time-machine/Makefile:1.13   Mon Dec  1 13:25:47 2025
+++ pkgsrc/time/py-time-machine/Makefile        Mon Dec 22 10:05:18 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2025/12/01 13:25:47 adam Exp $
+# $NetBSD: Makefile,v 1.14 2025/12/22 10:05:18 adam Exp $
 
-DISTNAME=      time_machine-3.1.0
+DISTNAME=      time_machine-3.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
 CATEGORIES=    time python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/time-machine/}

Index: pkgsrc/time/py-time-machine/distinfo
diff -u pkgsrc/time/py-time-machine/distinfo:1.11 pkgsrc/time/py-time-machine/distinfo:1.12
--- pkgsrc/time/py-time-machine/distinfo:1.11   Mon Dec  1 13:25:48 2025
+++ pkgsrc/time/py-time-machine/distinfo        Mon Dec 22 10:05:18 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2025/12/01 13:25:48 adam Exp $
+$NetBSD: distinfo,v 1.12 2025/12/22 10:05:18 adam Exp $
 
-BLAKE2s (time_machine-3.1.0.tar.gz) = 566b7f7851df61cd6c6d03f81145d8f00643ad8876ae5af9252e08a3d3095944
-SHA512 (time_machine-3.1.0.tar.gz) = 634a6c7d54141dd3f0b8d0b8469dab022b7554b62f746a627f266b7be252390ae7380a0f960afd48fdc2dddee7280b41cea7fd25125c8c2329907285da1202a9
-Size (time_machine-3.1.0.tar.gz) = 14436 bytes
+BLAKE2s (time_machine-3.2.0.tar.gz) = 772a85a8d79a6681eb83ad8a80ebb312ab3a8306d3074c91d3020d2948ba74c6
+SHA512 (time_machine-3.2.0.tar.gz) = a7855f4a93faa275d38f2f88d206ae2e664f3e5ca82eef5ea680cf411a9ef5edaa0771cc85f39fdb81e30143799a6e4e0d55d4f085dcc9bdc860d4a4c93898de
+Size (time_machine-3.2.0.tar.gz) = 14804 bytes



Home | Main Index | Thread Index | Old Index