A PDM plugin to bundle python application with python and create a installer using NSIS
Project description
pdm-winpacker
A PDM plugin to bundle python application with python and create a installer using NSIS.
Configuration
Config item | Description | Default value | Required |
---|---|---|---|
win-packer.app_name |
Application name | Yes | |
win-packer.publisher |
Application publisher | No | |
win-packer.icon |
Application icon | No | |
win-packer.py_version |
Python version for bundle | Yes | |
win-packer.py_bit |
Python bit for bundle | 64 | No |
win-packer.local_wheels |
local list of wheel to add to bundle | [] | No |
win-packer.commands.{command_name}.entry_point |
Entry point for command | Yes | |
win-packer.commands.{command_name}.console |
If command is run in console | False |
No |
win-packer.commands.{command_name}.env |
Dictionary of environment variables | {} | No |
win-packer.shortcuts.{shortcut_name}.target |
Shortcut target | Yes | |
win-packer.shortcuts.{shortcut_name}.parameters |
Parameters for shortcut | No | |
win-packer.shortcuts.{shortcut_name}.icon |
Icon for shortcut | No |
All configuration items use prefix pdm.tool
, this is a viable configuration:
Example configuration
[tool.pdm.win-packer]
app_name = "Project"
publisher = "Project Lead"
py_version = "3.10.10"
py_bit = "64"
local_wheels = ["wheels/Flask_APScheduler-1.12.4-py3-none-any.whl"]
[tool.pdm.win-packer.commands.project]
entry_point = "project:cli"
console = true
env = {PROJECT_ENV = "packaged"}
[tool.pdm.win-packer.shortcuts."Project Kiosk"]
target = "http://localhost:9797/kiosk"
parameters = "kiosk"
icon = "project.ico"
[tool.pdm.win-packer.shortcuts."Project Manage"]
target = "http://localhost:9797/manage"
Usage
Note - nsismake is required to be installed.
pdm winpacker
- Command bundles the application with python and compiles the NSIS installer.
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
pdm-winpacker-1.0.0.tar.gz
(2.2 MB
view hashes)
Built Distribution
Close
Hashes for pdm_winpacker-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4372edb9f306a600c15e7fd417cffbc49126c7d5765df6a5ba7707613c0bea |
|
MD5 | 5680b3d33f58dff30416f6256dc9377f |
|
BLAKE2b-256 | f08dd0de676487622abea3ed7d6277b1ccbb76885a2517511f3e6c0a8cbc5e65 |