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: Wed Sep 9 08:11:32 UTC 2026
Modified Files:
pkgsrc/time/py-time-machine: Makefile distinfo
Log Message:
py-time-machine: updated to 3.5.1
3.5.1
Only pass the compiler option -mno-omit-leaf-frame-pointer when the compiler supports it, checked with a tiny probe program. The option is unsupported outside of x86 and ARM64, so this fixes building
from source on other architectures, like PowerPC, which failed since the option was added in version 3.3.0.
Fix the mocked datetime.date.today() and datetime.datetime.today() to be exact for all supported dates, like datetime.datetime.now(). Previously, they went through a floating-point timestamp, which
could round the microseconds, or even the whole day, for dates far in the future.
Fix the class decorator to stop time travelling when tearDownClass() raises an exception, or when setUpClass() raises an exception not deriving from Exception, such as the skip outcome from
pytest.skip(). Previously, time remained mocked for the rest of the process in these cases.
Fix Traveller.move_to() to keep the current timezone mocked when the given destination is unsupported. Previously, the timezone was restored before the destination was checked, leaving it unmocked
whilst still time travelling.
Fix the time_machine pytest fixture to not try to stop a traveller that failed to start.
Fix the mocked time.strftime() to raise TypeError when passed None as its second argument, like the unmocked function, rather than treating it as the current time.
Fix the Migration CLI to keep the rewritten imports on the same line when a freezegun import shares its line with other code, like if TYPE_CHECKING: from freezegun import freeze_time, FakeDate.
Previously, the remaining from freezegun import FakeDate was moved to a new line, outside the block.
Extend the Migration CLI to migrate uses of FrozenDateTimeFactory in string annotations, like freezer: "FrozenDateTimeFactory". Previously, the import was removed whilst such annotations were left
referring to it.
Fix the Migration CLI to not rename a freezer argument when the function already has a time_machine argument, which produced invalid syntax.
Fix the Migration CLI to report positions in the rewritten file, rather than the original. Previously, positions could be off when rewrites earlier in the file changed the number of lines, or the
length of the same line.
Fix the Migration CLI to not report a freezegun usage for migrated calls with a parenthesized module name, like (freezegun).freeze_time(...).
Fix the Migration CLI to leave a pass statement when removing every unused FrozenDateTimeFactory import in a block, rather than producing invalid syntax.
Make TimeMachineFixture importable even when pytest isn’t installed. This avoids triggering possibly-missing-attribute or possibly-missing-import violations in ty for test files with annotations.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/time/py-time-machine/Makefile
cvs rdiff -u -r1.15 -r1.16 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.17 pkgsrc/time/py-time-machine/Makefile:1.18
--- pkgsrc/time/py-time-machine/Makefile:1.17 Thu Aug 27 05:43:54 2026
+++ pkgsrc/time/py-time-machine/Makefile Wed Sep 9 08:11:32 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2026/08/27 05:43:54 adam Exp $
+# $NetBSD: Makefile,v 1.18 2026/09/09 08:11:32 adam Exp $
-DISTNAME= time_machine-3.5.0
+DISTNAME= time_machine-3.5.1
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.15 pkgsrc/time/py-time-machine/distinfo:1.16
--- pkgsrc/time/py-time-machine/distinfo:1.15 Thu Aug 27 05:43:54 2026
+++ pkgsrc/time/py-time-machine/distinfo Wed Sep 9 08:11:32 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.15 2026/08/27 05:43:54 adam Exp $
+$NetBSD: distinfo,v 1.16 2026/09/09 08:11:32 adam Exp $
-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
+BLAKE2s (time_machine-3.5.1.tar.gz) = 557a3923d45ecaca76103f3ab5628b9be7550b68f6bfbaa40d88b59bf1e86012
+SHA512 (time_machine-3.5.1.tar.gz) = f604ad46f4b7ee20d675cd7af3357d71288c861952c0b80a3cc29f8ea3ed513bfe05d73fca0d0e0ab4f06861ebb3ebe62972225c06e914e31eef6ae1e3e367fe
+Size (time_machine-3.5.1.tar.gz) = 28434 bytes
Home |
Main Index |
Thread Index |
Old Index