Skip to main content

VersionInfo helper script for PyInstaller

Project description

VersionInfo helper script for PyInstaller

This repository contains helper scripts to dynamically create VersionInfo objects that can be embedded in .exe files created by PyInstaller.

This project was created because existing solutions to embed version information inside executables relied on creating artifact files that get read (and eval-ed) by PyInstaller during the build process. Dynamically creating such files essentially boiled down to inserting data in a string template, with no guides to the user if their entered data is valid or not. A bit of exploration of PyInstaller's source code and official Microsoft documentation revealed that it should be possible to provide PyInstaller with necessary data straight from .spec files without file-read-and-eval step. This approach has the added bonus of being type hint compatible, offering rich auto-complete in supported IDEs.

Installation

pip install versioninfo_helper

Usage

See example_simple.onefile.spec and example_dynamic.onefile.spec for examples on how to integrate VersionInfo creation directly into PyInstaller .spec files.

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

versioninfo_helper-1.0.0.1.tar.gz (66.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versioninfo_helper-1.0.0.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file versioninfo_helper-1.0.0.1.tar.gz.

File metadata

  • Download URL: versioninfo_helper-1.0.0.1.tar.gz
  • Upload date:
  • Size: 66.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for versioninfo_helper-1.0.0.1.tar.gz
Algorithm Hash digest
SHA256 99aca010096ff18aa28c0b85da448c0b37674cbcf226ec4e2d2cf6c7b2267b41
MD5 91e45cf3d116ccb0e1750c30228735f3
BLAKE2b-256 4fb5fcc5cf0302f9be3917c44ed6f8437a343255cd13b4ec70465ca51f61a2d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for versioninfo_helper-1.0.0.1.tar.gz:

Publisher: publish.yml on ReggX/versioninfo_helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file versioninfo_helper-1.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for versioninfo_helper-1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16683704e45ca8a1dd5912070e185c049d3fc8b508dcb5e54e9c093cfcc71a49
MD5 9a4f04d6d06584188bc15f686bd73891
BLAKE2b-256 3ac1838e23d5b0dbabec68811770a068684a8e31eaa0444541926a9998bbdc1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for versioninfo_helper-1.0.0.1-py3-none-any.whl:

Publisher: publish.yml on ReggX/versioninfo_helper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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