Skip to main content

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

Metadata

Release files for pdm-buildlocked 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdm-buildlocked 0.3.0
File Size Uploaded
pdm-buildlocked-0.3.0.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdm-buildlocked 0.3.0
File Interpreter ABI Platform
pdm_buildlocked-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.4 kB

Release files / pdm-buildlocked-0.3.0.tar.gz

Download URL pdm-buildlocked-0.3.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
333ef9d58906fe3c30a67fb42b3df6b2e228c734692325e0c86a1b3663feebf6
BLAKE2b-256 checksum
How to use checksums
753b04c794bf20625b219638ba566b71ebc7301ad2f0ec3f7854b1e3ae1bdcc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.3.2 CPython/3.10.5

Release files / pdm_buildlocked-0.3.0-py3-none-any.whl

Download URL pdm_buildlocked-0.3.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a78aaadad86494ec521efb5022c39f9feb9b4ad9e17f42fc80e79ea745f7db46
BLAKE2b-256 checksum
How to use checksums
0f772e44c950fcc0d37bc05824470a961bdd9292dc9587b6a859d7fef298b331
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.3.2 CPython/3.10.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page