Adds the ability to build the project using locked dependencies.
Project description
pdm-buildlocked
Adds the ability to build the project using locked dependencies.
This is useful when distributing an application via PyPi. It should probably not be
used if you are developing a library. Packages built this way can cause version
conflicts when installed alongside other packages. It should be clearly documented that
projects built in this way should be installed with pipx
, or in their own isolated
virtual environment.
Installation
This pdm plugin can be installed with the command:
pdm plugin add pdm-buildlocked
Usage
Locked build mode can be enabled by including the following in your pyproject.toml
file. When enabled, running pdm build
or pdm publish
will cause the resulting
distribution will have all dependencies (including transitive ones) pinned to the
versions specified in the lock file.
[tool.pdm.build]
buildlocked = true
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 pdm_buildlocked-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a78aaadad86494ec521efb5022c39f9feb9b4ad9e17f42fc80e79ea745f7db46 |
|
MD5 | a0065c0dc188cfeb1cde36d4ab32bad7 |
|
BLAKE2b-256 | 0f772e44c950fcc0d37bc05824470a961bdd9292dc9587b6a859d7fef298b331 |