Skip to main content

Wayback machine for pip requirements.txt

Project description

CI - build CI - coverage MyPy checked PyPI - Version PyPI - Status PyPI - Python Version License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requirements-wayback-machine-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file requirements-wayback-machine-0.1.1.tar.gz.

File metadata

File hashes

Hashes for requirements-wayback-machine-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac02525a66ec9ab2be37bda50be484b48f0cb55fbf5061cdb5f194da82313b3a
MD5 d1a2f3668bddc01b68bdc61c67d785f6
BLAKE2b-256 3646b6aa212a9cabb43cc560d5a6f67eb71d44a2685b4ece9aa00d950e97703a

See more details on using hashes here.

File details

Details for the file requirements_wayback_machine-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requirements_wayback_machine-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5897cde29971d5e59b444df93db8c36f542e84d2def06874b4b9d91702e5def3
MD5 4c24076bcff2ac4a9ec785dcbb6beba7
BLAKE2b-256 af1e1349f57a01c4759baab6a5a0476ac00c3d6a18f9705ddcb27f721dc7eacd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page