Skip to main content

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


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 details)

Uploaded Source

Built Distribution

pdm_winpacker-1.0.0-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file pdm-winpacker-1.0.0.tar.gz.

File metadata

  • Download URL: pdm-winpacker-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.4.9 CPython/3.10.10

File hashes

Hashes for pdm-winpacker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d620f5e7141b62f6b4d767a047c033a4697891b302a739993c2f69c47dbbbb69
MD5 82c6637afe41331c0261b08e8617a065
BLAKE2b-256 c86247198063766278eee0bf19efbe4b7fe10f93e6dad8375b95699773bf06bb

See more details on using hashes here.

File details

Details for the file pdm_winpacker-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdm_winpacker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f4372edb9f306a600c15e7fd417cffbc49126c7d5765df6a5ba7707613c0bea
MD5 5680b3d33f58dff30416f6256dc9377f
BLAKE2b-256 f08dd0de676487622abea3ed7d6277b1ccbb76885a2517511f3e6c0a8cbc5e65

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page