Poetry lock package generator
Project description
Poetry lock package generator
Simple script that will take a pyproject.toml
and a poetry.lock
and generate a new poetry project where all the lock versions are pinned dependencies.
In theory this will allow you to transport your lock file to any system that is able to install python packages and dependencies.
After installation, the command poetry-lock-package
should be run next to your pyproject.toml
and poetry.lock
files and will generate a subdirectory with a pyproject.toml
requiring all the dependencies of the lock file.
Simply enter the subdirectory, build and publish the package and you have a '-lock' package that depends on all the exact versions from your lock file.
Example worflow
Simply put, the workflow is as follows
pip install poetry poetry-lock-package
poetry new example-package
cd example-package
poetry add loguru
poetry-lock-package
cd example-package-lock
cat pyproject.toml
poetry install
Contributing code
-
Open an issue
-
Create an associated PR
-
Make sure to black format the proposed change
poetry run pre-commit install
-
Add tests where possible
License
GPLv3, use at your own risk.
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
Hashes for poetry-lock-package-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a6494bae1802f2839558d31e5709abb165f1ebd3561b91a1b79609633aae84 |
|
MD5 | 22998ae44f91ad67fc08c6c35e65c936 |
|
BLAKE2b-256 | 1cbe8e241dfdeabf680c5de9a422e577cc451842c9a6b48931fe853a2838b812 |
Hashes for poetry_lock_package-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040add35957fd3edb1c533fbd00ad4dc6ea051ff4a38133a61a4ab4b1a371d5c |
|
MD5 | cdb9671a844a023ff1266079dc67bcc1 |
|
BLAKE2b-256 | 29f59a6c5c0febe68b90d6a4f8fae523544ac213c83e4151552fe32a4d503a08 |