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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c0385749856d7de4e8c525cc55deeae3c8e107548cedbc86ea7c85b8280d93b
|
|
| MD5 |
f2e5c3f9370b8d03694e1c7487580d03
|
|
| BLAKE2b-256 |
593bf241416f8cdca52fdf639523e4713f9b8845dcc393c2dea161068e09c68d
|
Provenance
The following attestation bundles were made for versioninfo_helper-1.0.0.3.tar.gz:
Publisher:
publish.yml on ReggX/versioninfo_helper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
versioninfo_helper-1.0.0.3.tar.gz -
Subject digest:
7c0385749856d7de4e8c525cc55deeae3c8e107548cedbc86ea7c85b8280d93b - Sigstore transparency entry: 465534337
- Sigstore integration time:
-
Permalink:
ReggX/versioninfo_helper@4b862d4536d8c11dd596abea9aec44839b0012a0 -
Branch / Tag:
refs/tags/v1.0.0.3 - Owner: https://github.com/ReggX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b862d4536d8c11dd596abea9aec44839b0012a0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file versioninfo_helper-1.0.0.3-py3-none-any.whl.
File metadata
- Download URL: versioninfo_helper-1.0.0.3-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
698f10905bb93463e32d08bcb004048e4667645896022951b6c64221f2b29e2d
|
|
| MD5 |
e47f8361e27e0c6f9cb12d3b8a504f23
|
|
| BLAKE2b-256 |
645479fd342be63b9e1a344118cb00363430262b2a3ca7f356d1d79c811c9503
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
versioninfo_helper-1.0.0.3-py3-none-any.whl -
Subject digest:
698f10905bb93463e32d08bcb004048e4667645896022951b6c64221f2b29e2d - Sigstore transparency entry: 465534377
- Sigstore integration time:
-
Permalink:
ReggX/versioninfo_helper@4b862d4536d8c11dd596abea9aec44839b0012a0 -
Branch / Tag:
refs/tags/v1.0.0.3 - Owner: https://github.com/ReggX
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b862d4536d8c11dd596abea9aec44839b0012a0 -
Trigger Event:
push
-
Statement type: