0 purchases
requirementswaybackmachine 0.1.1
Requirements.txt Wayback Machine 🚂🕒️
Note: This is script is not developed nor endorsed by the
Python Packaging Authority (PyPA)
or other official Python body.
If you're struggling to get correct Python dependencies for an older project,
requirements_wayback_machine is a script that gets you from this requirements.txt:
torch
torchvision
imageio
to this:
# requirements_wayback_machine: reference date 2021-02-03
# requirements_wayback_machine: torch<=1.7.1
torch
# requirements_wayback_machine: torchvision<=0.8.2
torchvision
# requirements_wayback_machine: imageio<=2.9.0
imageio
Installation
$ pip install requirements-wayback-machine
Usage
$ requirements_wayback_machine -r <path_to_requirements.txt> -d <YYYY-MM-DD>
This will print annotated requirements.txt to console, including upper bound
specifiers that approximate dependency resolution at given date
(for each requirement line, we print the last version of that dependency
released by given date that also satisfies specifiers already present
in the input requirement line, if any).
For more information and options, run requirements_wayback_machine -h.
Example:
$ requirements_wayback_machine -r requirements.txt -d 2021-02-03
# requirements_wayback_machine: reference date 2021-02-03
# requirements_wayback_machine: torch<=1.7.1
torch
# requirements_wayback_machine: torchvision<=0.8.2
torchvision
# requirements_wayback_machine: imageio<=2.9.0
imageio
License
MIT - see LICENSE.txt.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.