https://github.com/gazpachoking/pdm-buildlocked
https://github.com/gazpachoking/pdm-buildlocked
hacktoberfest pdm plugin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gazpachoking/pdm-buildlocked
- Owner: gazpachoking
- Created: 2022-10-17T05:12:42.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T13:48:26.000Z (over 3 years ago)
- Last Synced: 2025-03-28T00:44:09.167Z (about 1 year ago)
- Topics: hacktoberfest, pdm, plugin
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```toml
[tool.pdm.build]
buildlocked = true
```