Port details |
- py-time-machine Travel through time in your Python tests
- 2.11.0 devel
=0 2.11.0Version of this port present on the latest quarterly branch. - Maintainer: nivit@FreeBSD.org
 - Port Added: 2023-06-17 08:21:30
- Last Update: 2023-07-18 00:53:09
- Commit Hash: 9a80a6e
- 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 py39-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 py39-time-machine listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-time-machine
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1689239888
SHA256 (time_machine-2.11.0.tar.gz) = 6c08a0f9ef8b53ca8b69c0be3f9ddb85a587a784fc239b74c35e6c47bf359515
SIZE (time_machine-2.11.0.tar.gz) = 23913
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:
-
- py39-setuptools>0 : devel/py-setuptools@py39
- py39-wheel>=0.40.0 : devel/py-wheel@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-dateutil>=2.8.2 : devel/py-dateutil@py39
- py39-six>=1.5 : devel/py-six@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
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: 3
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
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: 3
|