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: Thu Aug 27 05:43:54 UTC 2026
Modified Files:
pkgsrc/time/py-time-machine: Makefile distinfo
Log Message:
py-time-machine: updated to 3.5.0
3.5.0 (2026-08-25)
Support None as a destination for travel() and Traveller.move_to(), meaning the current time. Use this with tick=False to freeze time at the present moment, matching freezegun’s behaviour when
freeze_time() is called with no arguments.
Extend the Migration CLI to migrate aliased imports: import freezegun as fg and from freezegun import freeze_time as ft, plus calls using such aliases.
Extend the Migration CLI to migrate the pytest.mark.freeze_time marker in module-level and class-level pytestmark assignments.
Extend the Migration CLI to migrate freeze_time() calls and markers that pass tz_offset with a literal zero value. The argument is dropped, since a zero offset has no effect.
Extend the Migration CLI to migrate freeze_time() calls and markers that pass real_asyncio. The argument is dropped, whatever its value, since time-machine does not mock time.monotonic(), so asyncio
event loops always see real time.
Extend the Migration CLI to migrate freeze_time() calls and markers with no destination argument, which freeze at the current time. None is added as the destination, using the new support for None
destinations (above).
Extend the Migration CLI to migrate freeze_time() calls and markers that pass ignore. The argument is dropped, since it works around problems with freezegun’s module patching, which time-machine’s
C-level mocking doesn’t have.
Make the Migration CLI report freezegun-related usages that it recognizes but cannot migrate, with their positions, like:
example/tests.py:9:2: freeze_time usage not migrated
This makes it easier to find and fix the remaining usages manually.
Make the Migration CLI report files that cannot be parsed, rather than skipping them silently. This helps notice files using syntax from a newer Python version than the tool is run with.
Extend the Migration CLI to migrate “raw use” assignments of freeze_time() to variables or self. attributes used with start() and stop(), covering unittest setUp() / tearDown() patterns like
self.freezer = freeze_time(...) with self.addCleanup(self.freezer.stop).
Extend the Migration CLI to migrate imports and uses of freezegun’s FrozenDateTimeFactory class, often used to annotate the freezer fixture argument, to time-machine’s newly-documented equivalent,
time_machine.TimeMachineFixture.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/time/py-time-machine/Makefile
cvs rdiff -u -r1.14 -r1.15 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.16 pkgsrc/time/py-time-machine/Makefile:1.17
--- pkgsrc/time/py-time-machine/Makefile:1.16 Mon Aug 17 12:27:11 2026
+++ pkgsrc/time/py-time-machine/Makefile Thu Aug 27 05:43:54 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2026/08/17 12:27:11 adam Exp $
+# $NetBSD: Makefile,v 1.17 2026/08/27 05:43:54 adam Exp $
-DISTNAME= time_machine-3.4.0
+DISTNAME= time_machine-3.5.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.14 pkgsrc/time/py-time-machine/distinfo:1.15
--- pkgsrc/time/py-time-machine/distinfo:1.14 Mon Aug 17 12:27:11 2026
+++ pkgsrc/time/py-time-machine/distinfo Thu Aug 27 05:43:54 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.14 2026/08/17 12:27:11 adam Exp $
+$NetBSD: distinfo,v 1.15 2026/08/27 05:43:54 adam Exp $
-BLAKE2s (time_machine-3.4.0.tar.gz) = 60e509f53f583613b50dd203a81e87ca56e964f3aa4d220f5d4bdf07fa0564dc
-SHA512 (time_machine-3.4.0.tar.gz) = e6a3b32b058ef6fdcbe627373df2d0eb4a4d330dcf39f05bd74572d6ff05344017fbdf281aab86c177626232dbc894c4753e372f7607d90b69c756eaf3b99944
-Size (time_machine-3.4.0.tar.gz) = 21106 bytes
+BLAKE2s (time_machine-3.5.0.tar.gz) = e79c0304752045edcba0ff4fa6ad1d75cc08bf281439408a134314822ebe9e90
+SHA512 (time_machine-3.5.0.tar.gz) = 3e946a52b2744cc93f727febf6f1a99c463fe32d21dcd098f05ef3d607afc89c3646f785b71377cfffddc3741d4be1d2ac251db9b2ec7d26d9ac9dc9e607a2e0
+Size (time_machine-3.5.0.tar.gz) = 25692 bytes
Home |
Main Index |
Thread Index |
Old Index