Port details |
- py-time-machine Travel through time in your Python tests
- 2.13.0 devel
=2 2.11.0_1Version of this port present on the latest quarterly branch. - Maintainer: nivit@FreeBSD.org
 - Port Added: 2023-06-17 08:21:30
- Last Update: 2025-03-12 20:50:19
- Commit Hash: c14ba65
- People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
- Also Listed In: python
- License: MIT
- WWW:
- https://github.com/adamchainz/time-machine
- Description:
- time-machine is intended to combine the advantages of freezegun and libfaketime
Python modules. It works without LD_PRELOAD but still mocks the standard
library functions everywhere they may be referenced. It does so by modifying
the built-in functions at the C level, to point them through wrappers that
return different values when mocking. Normally in Python, built-in functions
are immutable, but time-machine overcomes this by using C code to replace their
function pointers.
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}time-machine>0:devel/py-time-machine@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-time-machine/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-time-machine
- pkg install py311-time-machine
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-time-machine listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-time-machine
- Package flavors (<flavor>: <package>)
- py311: py311-time-machine
- distinfo:
- TIMESTAMP = 1741812443
SHA256 (time_machine-2.13.0.tar.gz) = c23b2408e3adcedec84ea1131e238f0124a5bc0e491f60d1137ad7239b37c01a
SIZE (time_machine-2.13.0.tar.gz) = 24606
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>0 : devel/py-setuptools@py311
- py311-wheel>=0.40.0 : devel/py-wheel@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-python-dateutil>=2.8.2 : devel/py-python-dateutil@py311
- py311-six>=1.5 : devel/py-six@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- devel/py-pendulum
Configuration Options:
- No options to configure
- Options name:
- devel_py-time-machine
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Number of commits found: 5
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
2.13.0 12 Mar 2025 20:50:19
    |
Nicola Vitale (nivit)  |
devel/py-time-machine: Update to 2.13.0
Reported by: portscout! |
2.11.0_1 13 Apr 2024 14:47:51
    |
Po-Chuan Hsieh (sunpoet)  |
devel/py-python-dateutil: Move devel/py-dateutil to devel/py-python-dateutil
- Convert to USE_PYTHON=pep517
- Bump PORTREVISION of dependent ports for dependency change
- While I'm here, update audio/py-pyradio to use PYTHON_PKGNAMEPREFIX instead of
PKGNAMEPREFIX for *_DEPENDS |
2.11.0 18 Jul 2023 00:53:09
    |
Charlie Li (vishwin)  |
devel/py-setuptools: convert individual consumers to ${PY_SETUPTOOLS}
Currently a no-op, but in the future outputs the correct setuptools
port depending on whether USES_PYTHON=distutils is specified.
With hat: python
PR: 270510, 270358 |
2.11.0 13 Jul 2023 09:25:36
    |
Nicola Vitale (nivit)  |
devel/py-time-machine: Update to 2.11.0
Reported by: portscout |
2.10.0 17 Jun 2023 08:19:46
    |
Nicola Vitale (nivit)  |
devel/py-time-machine: Add new port
time-machine, is intended to combine the advantages of freezegun and
libfaketime Python modules. It works without LD_PRELOAD but still mocks
the standard library functions everywhere they may be referenced.
It does so by modifying the built-in functions at the C level, to point
them through wrappers that return different values when mocking.
Normally in Python, built-in functions are immutable, but
time-machine overcomes this by using C code to replace their function
pointers.
https://github.com/adamchainz/time-machine |
Number of commits found: 5
|