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

"Adam Ciarcinski" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	adam
Date:		Mon Aug 17 12:27:11 UTC 2026

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

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

3.4.0

Publish wheels for Python 3.15.

Fix a reference leak in the patched datetime.datetime.utcnow() that occurred when its Python 3.12+ DeprecationWarning was raised as an error, such as under -W error. Each such call leaked a reference to the active traveller object.

Extend the Migration CLI to migrate patterns from freezegun’s pytest plugins, pytest-freezegun and pytest-freezer: the freezer fixture and the pytest.mark.freeze_time marker. Also make it migrate freeze_time() context managers that bind the result with as, including converting tick() method calls to shift().

Fix the Migration CLI to handle trailing commas in freeze_time() calls when adding tick=False. Previously, it produced invalid syntax, like travel("2023-01-01",, tick=False).

Fix the Migration CLI to not indent imports kept from a rewritten from-import when the import doesn’t start its line, such as after if True: on one line. Previously, the kept import gained leading whitespace, producing invalid syntax.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/time/py-time-machine/Makefile
cvs rdiff -u -r1.13 -r1.14 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.
(unnamed) (text/x-diff, 1.6 KB)
Modified files:

Index: pkgsrc/time/py-time-machine/Makefile
diff -u pkgsrc/time/py-time-machine/Makefile:1.15 pkgsrc/time/py-time-machine/Makefile:1.16
--- pkgsrc/time/py-time-machine/Makefile:1.15	Mon Aug 10 11:42:43 2026
+++ pkgsrc/time/py-time-machine/Makefile	Mon Aug 17 12:27:11 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2026/08/10 11:42:43 adam Exp $
+# $NetBSD: Makefile,v 1.16 2026/08/17 12:27:11 adam Exp $
 
-DISTNAME=	time_machine-3.3.1
+DISTNAME=	time_machine-3.4.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.13 pkgsrc/time/py-time-machine/distinfo:1.14
--- pkgsrc/time/py-time-machine/distinfo:1.13	Mon Aug 10 11:42:43 2026
+++ pkgsrc/time/py-time-machine/distinfo	Mon Aug 17 12:27:11 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2026/08/10 11:42:43 adam Exp $
+$NetBSD: distinfo,v 1.14 2026/08/17 12:27:11 adam Exp $
 
-BLAKE2s (time_machine-3.3.1.tar.gz) = c1f4c06b2564d4f6f54e5f6fe51f493204575873798ca872f738ea80265e9c6d
-SHA512 (time_machine-3.3.1.tar.gz) = 990c547f7f8cd88c7b247155917a2b59524a474da39d9583268db4d7bbb48b43576b81b5c7d68ebd882771ed418ddf0bae9cfbffaf26530cfcc1b8be2c0e6834
-Size (time_machine-3.3.1.tar.gz) = 19481 bytes
+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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.