Changelog History
Page 2
-
v2.2.0 Changes
July 02, 2021Include type hints.
Convert C module to use PEP 489 multi-phase extension module initialization. This makes the module ready for Python sub-interpreters.
π Release now includes a universal2 wheel for Python 3.9 on macOS, to work on Apple Silicon.
π¦ Stop distributing tests to reduce package size. Tests are not intended to be run outside of the tox setup in the repository. Repackagers can use GitHub's tarballs per tag.
-
v2.1.0 Changes
February 19, 2021- π Release now includes wheels for ARM on Linux.
-
v2.0.1 Changes
January 18, 2021- π Prevent
ImportError
on Windows wheretime.tzset()
is unavailable.
- π Prevent
-
v2.0.0 Changes
January 17, 2021- π Release now includes wheels for Windows and macOS.
- π Move internal calculations to use nanoseconds, avoiding a loss of precision.
- π After a call to
move_to()
, the first function call to retrieve the current time will return exactly the destination time, copying the behaviour of the first call totravel()
. - β Add the ability to shift timezone by passing in a
ZoneInfo
timezone. - β Remove
tz_offset
argument. This was incorrectly copied fromfreezegun
. Use the new timezone mocking withZoneInfo
instead. - β Add pytest plugin and fixture
time_machine
. - π Work with Windowsβ different epoch.
-
v1.3.0 Changes
December 12, 2020- π Support Python 3.9.
- π Move license from ISC to MIT License.
-
v1.2.1 Changes
August 29, 2020- Correctly return naive datetimes from
datetime.utcnow()
whilst time travelling.
Thanks to SΓΈren PilgΓ₯rd and Bart Van Loon for the report in
Issue #52 <https://github.com/adamchainz/time-machine/issues/52>
__. - Correctly return naive datetimes from
-
v1.2.0 Changes
July 08, 2020- β Add
move_to()
method to move to a different time whilst travelling. This is based on freezegun'smove_to()
method.
- β Add
-
v1.1.1 Changes
June 22, 2020- Move C-level
clock_gettime()
andclock_gettime_ns()
checks to runtime to allow distribution of macOS wheels.
- Move C-level
-
v1.1.0 Changes
June 08, 2020- β Add
shift()
method to move forward in time by a delta whilst travelling. This is based on freezegun'stick()
method.
Thanks to Alex Subbotin for the feature in
PR #27 <https://github.com/adamchainz/time-machine/pull/27>
__.- Fix to work when either
clock_gettime()
orCLOCK_REALTIME
is not present. This happens on some Unix platforms, for example on macOS with the official Python.org installer, which is compiled against macOS 10.9.
Thanks to Daniel Crowe for the fix in
PR #30 <https://github.com/adamchainz/time-machine/pull/30>
__. - β Add
-
v1.0.1 Changes
May 29, 2020- π Fix
datetime.now()
behaviour with thetz
argument when not time-travelling.
- π Fix