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.

📚 Build and publish documentation Documentation on Github Pages
🔄 Integration Testing 🧪 Unittests with Coverage Coverage Status
🔍 Typecheck: Mypy 🧠 Typecheck: Pyright 🦋 Typecheck: Pyrefly
🧹 Linters 🚦 Noxfile Self Check
📦 Publish Python Package PyPI - Version PyPI - Python Version

Motivation

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

Wheels are available on PyPI, install with:

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.3.tar.gz (69.4 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.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: versioninfo_helper-1.0.0.3.tar.gz
  • Upload date:
  • Size: 69.4 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.3.tar.gz
Algorithm Hash digest
SHA256 7c0385749856d7de4e8c525cc55deeae3c8e107548cedbc86ea7c85b8280d93b
MD5 f2e5c3f9370b8d03694e1c7487580d03
BLAKE2b-256 593bf241416f8cdca52fdf639523e4713f9b8845dcc393c2dea161068e09c68d

See more details on using hashes here.

Provenance

The following attestation bundles were made for versioninfo_helper-1.0.0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for versioninfo_helper-1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 698f10905bb93463e32d08bcb004048e4667645896022951b6c64221f2b29e2d
MD5 e47f8361e27e0c6f9cb12d3b8a504f23
BLAKE2b-256 645479fd342be63b9e1a344118cb00363430262b2a3ca7f356d1d79c811c9503

See more details on using hashes here.

Provenance

The following attestation bundles were made for versioninfo_helper-1.0.0.3-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