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 21 07:11:27 UTC 2025
Modified Files:
pkgsrc/time/py-time-machine: Makefile distinfo
Log Message:
py-time-machine: updated to 2.19.0
2.19.0 (2025-08-19)
Add marker support to the pytest plugin. Decorate tests with @pytest.mark.time_machine(<destination>) to set time during a test, affecting function-level fixtures as well.
Add asynchronous context manager support to time_machine.travel(). You can now use async with time_machine.travel(...): in asynchronous code, per the documentation.
Import date and time functions once in the C extension.
This should improve speed a little bit, and avoid segmentation faults when the functions have been swapped out, such as when freezegun is in effect. (time-machine still won’t apply if freezegun is in
effect.)
2.18.0 (2025-08-18)
Update the migration CLI to detect unittest classes based on whether they use self.assert* methods like self.assertEqual().
Fix free-threaded Python warning: RuntimeWarning: The global interpreter lock (GIL) has been enabled... as seen on Python 3.13+.
Add support to travel() for datetime destinations with tzinfo set to datetime.UTC (datetime.timezone.utc).
Prevent segmentation faults in unlikely scenarios, such as if the time_machine module cannot be imported.
Make travel() fully unpatch date and time functions when travel ends. This may fix certain edge cases.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/time/py-time-machine/Makefile
cvs rdiff -u -r1.9 -r1.10 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.11 pkgsrc/time/py-time-machine/Makefile:1.12
--- pkgsrc/time/py-time-machine/Makefile:1.11 Sun Aug 10 08:18:57 2025
+++ pkgsrc/time/py-time-machine/Makefile Thu Aug 21 07:11:27 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2025/08/10 08:18:57 adam Exp $
+# $NetBSD: Makefile,v 1.12 2025/08/21 07:11:27 adam Exp $
-DISTNAME= time_machine-2.17.0
+DISTNAME= time_machine-2.19.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.9 pkgsrc/time/py-time-machine/distinfo:1.10
--- pkgsrc/time/py-time-machine/distinfo:1.9 Sun Aug 10 08:18:57 2025
+++ pkgsrc/time/py-time-machine/distinfo Thu Aug 21 07:11:27 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2025/08/10 08:18:57 adam Exp $
+$NetBSD: distinfo,v 1.10 2025/08/21 07:11:27 adam Exp $
-BLAKE2s (time_machine-2.17.0.tar.gz) = e8f83f1048bb308f7bf658b32093a0749fd6812f9e210d1d46949cf37f895313
-SHA512 (time_machine-2.17.0.tar.gz) = 90c84dedcd7c7c0d8f86832e535f01c56b6df2c751bae096c129939f129c500e8079aedb9ec53366138930459c3b4d4b2a3ed6c0e4197ddc6deb32deac9d09a1
-Size (time_machine-2.17.0.tar.gz) = 13357 bytes
+BLAKE2s (time_machine-2.19.0.tar.gz) = b4b88e5957982f034d809836fee2f446d2f00b117b9deed0e3aaeef43a696fa4
+SHA512 (time_machine-2.19.0.tar.gz) = 922d37c29aea413fb5accb8f020467b697db3c9b38081f9d2ad154cbeb8c9c960f1a10836e316f7fa2c5155c4e5e4d8f0c04322981da59c45dac59890072c670
+Size (time_machine-2.19.0.tar.gz) = 14576 bytes
Home |
Main Index |
Thread Index |
Old Index