Install wheels with pre-resolved dependencies
Project description
pip-resolved
Why?
With tools such as Poetry, PDM (thanks to pdm-buildlocked) and pip-tools and we have the tools to build wheels with pinned dependencies, resolved at development time. Unfortunately, pip doesn't offer an easy way to install that without performing a full dependency-tree resolution at install time, which slows down the process.
pip-resolved was created as a thin wrapper around pip's existing functionality to allow users to install wheels with pre-resolved dependencies, without the need to package an extra requirements.txt or contraints file.
This is specially useful for applications (not libraries) that are being distributed as wheels with a fixed set of pinned dependencies to ensure reproducibility.
Installation
With pip
$ pip install pip-resolved
With pipx
$ pipx install pip-resolved
Usage
As simple as :point_down:
$ pip-resolved install <WHEEL>
How it works
pip-resolved extracts all pinned dependencies defined as Requires-Dist
on your artifact metadata, generates a temporary requirements.txt file and executes the following command
$ pip install --no-deps -r requirements.txt <WHEEL>
The --no-deps
command is key to make sure pip doesn't attempt to resolve the whole dependency tree.
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 pip-resolved-0.3.0.tar.gz
.
File metadata
- Download URL: pip-resolved-0.3.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6184dce1f84f8d500a3270692eeb435c6dca10a206b110397c4006ba3b3550f |
|
MD5 | 6acbda5669edcc8cce47e657191a2035 |
|
BLAKE2b-256 | a4f772f808a76ff18ab8783fa7bf6bca1bbf8f5047787c5b375320930cc5b6e0 |
File details
Details for the file pip_resolved-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pip_resolved-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba747d4b3c86afc7ba64074ba42eb2c6c3cee0d7dbd3e5fdfe6ccae3bbb598c7 |
|
MD5 | 0c67333b07886e77698ec9858efddec2 |
|
BLAKE2b-256 | 46f6098482e39608eedb573d8427fb91ea475dbe545801e70a42384d5f275549 |