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.0.tar.gz
.
File metadata
- Download URL: requirements-wayback-machine-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41e656eb92d3524a2b6ba50f2257cc3f79eb3ac489fc7598ffc009309ebba76 |
|
MD5 | d57435a4dada9d4f6d3dbb86b1424692 |
|
BLAKE2b-256 | 047ed83ed871b9381fcd221705b7f9ea5dafc8608785c98920726ba50f87363e |
File details
Details for the file requirements_wayback_machine-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: requirements_wayback_machine-0.1.0-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 | 06db2c3be91ee94d5b5a7ba6a4e16a095b934bd353da58871d3537d17be14c8c |
|
MD5 | 86b76f4f8cc0c4b42de4e2990a6d4155 |
|
BLAKE2b-256 | 371c86f64ac7988c3e6cf80226155b6a85a9510ad3b3de3a18940384e475a611 |