Freeze Wheel Plugin
Poetry plugin for creating frozen wheels using lockfiles.
Why
A common issue when publishing a Python application's release into PyPI, is whether or not the dependencies specified will continue to work over time. This tends to happen due to a confluence of reasons, poor dependency specification, bad observance of semantic versioning, poor release management. That translates to a reality where installing an older release is unlikely to work, due to changes in the underlying dependecy graph.
The dependency ecosystem is both complex and fragile. The emergence of lock files to ensure repeatability is testimony both to the problem and one solution. Yet when we go to publish in the packaging ecosystem we do so with non frozen dependencies not with lockfiles. That means the testing pieplines that goes to produce a release is against a lockfile but the release is divorced of its contents.
The various language package distribution channels (npm, pypi, rubygems, etc) are used for two different distribution purposes, for both libraries and applications. Generally speaking libraries should be relatively liberal on their own dependencies baring perhaps major versions to minimize conflicts for applications depending on them and ideal consist of minimal dependencies graphs. But for applications repeatible, verifyable installs are fundamental goals with potentially large dependency graphs. ie. libraries have developers and applications as consumers, applications have users as consumers.
What
A post build / pre publish command to allow for creating wheels with frozen dependencies. Basically we update metadata on Requires-Dist to replace the pyproject.toml based version specification to a frozen (ie. ==version) one based on the version from the poetry lock information.
Usage
# install plugin
poetry self install poetry-plugin-freeze
# build per normal
poetry build
# add freeze step
poetry freeze-wheel
# publish per normal
poetry publish
Mono-Repo Support
To support mono repos consisting of multiple libraries/applications, when creating a frozen wheel, dev dependencies specified by path can be optionally substituted out for references to their release artifact versions.
This assumes automation to run build and publish across the various subpackages.
Metadata
Release files for poetry-plugin-freeze 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| poetry_plugin_freeze-1.0.0.tar.gz | 4.5 kB | Without provenance | Details for poetry_plugin_freeze-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poetry_plugin_freeze-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for poetry_plugin_freeze-1.0.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / poetry_plugin_freeze-1.0.0.tar.gz
| Download URL | poetry_plugin_freeze-1.0.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
458fbeaba13367fd85bc30a61117fb6f2515601b7372505cd29361b25ceeda20
|
|
BLAKE2b-256 checksum How to use checksums |
5fd56578239f818a3cfc814f7d0c272b6d363a0fde8e910e313068d3b3bcf65c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.1 Darwin/22.3.0
|
Release files / poetry_plugin_freeze-1.0.0-py3-none-any.whl
| Download URL | poetry_plugin_freeze-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf3d50649616a236fb4022333eb3a28b328774586ad9a9c4294f94b138f5889e
|
|
BLAKE2b-256 checksum How to use checksums |
34f09366102218b3ea6bf7421dcc20070ae3bedab8641df8d1910fafd72cf5c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.0 CPython/3.11.1 Darwin/22.3.0
|
Security for poetry-plugin-freeze 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.