Wayback machine for pip requirements.txt
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file requirements-wayback-machine-0.1.1.tar.gz
.
File metadata
- Download URL: requirements-wayback-machine-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac02525a66ec9ab2be37bda50be484b48f0cb55fbf5061cdb5f194da82313b3a |
|
MD5 | d1a2f3668bddc01b68bdc61c67d785f6 |
|
BLAKE2b-256 | 3646b6aa212a9cabb43cc560d5a6f67eb71d44a2685b4ece9aa00d950e97703a |
File details
Details for the file requirements_wayback_machine-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: requirements_wayback_machine-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5897cde29971d5e59b444df93db8c36f542e84d2def06874b4b9d91702e5def3 |
|
MD5 | 4c24076bcff2ac4a9ec785dcbb6beba7 |
|
BLAKE2b-256 | af1e1349f57a01c4759baab6a5a0476ac00c3d6a18f9705ddcb27f721dc7eacd |