https://github.com/astrofrog/tox-timemachine
https://github.com/astrofrog/tox-timemachine
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/astrofrog/tox-timemachine
- Owner: astrofrog
- License: bsd-2-clause
- Created: 2021-08-11T12:52:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T12:54:10.000Z (almost 5 years ago)
- Last Synced: 2025-03-03T21:18:52.698Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
About tox-timemachine
=====================
Installing
----------
To install::
pip install tox-timemachine
Using
-----
This plugin provides a ``--time-travel`` command-line option that takes either
a date in YYYY-MM-DD format or a date and time in YYYY-MM-DDTHH-MM-SS format,
and will internally use a proxy PyPI server that does not include packages
released after this date (using the pypi-timemachine package). For instance::
tox --time-travel=2018-02-03T12:33:02-e py37-test
will run tox as if it was being run on that date as far as PyPI is concerned.
Bisection (experimental)
------------------------
This package also provides a command to automatically bisect between two dates
to pinpoint when a tox build started failing::
tox-timemachine-bisect 2021-01-01 2021-08-10 -r -e py38-test -- -k test_coadd_solar_map
The format is::
tox-timemachine-bisect start_date end_date
This is still very experimental and does not yet explicitly say which package update
caused the issue (for now one needs to diff the log files) but this should be
made more user-friendly in future.
Caveats
-------
This plugin will not work properly if you use the ``-i/--index-url`` option
manually when calling tox. In addition, this will only work with pip-based
installs, and will not work with e.g. `tox-conda
`_.