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
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
Built Distribution
File details
Details for the file versioninfo_helper-0.1.0.tar.gz
.
File metadata
- Download URL: versioninfo_helper-0.1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bdc404920ec047dd09cec62453e4a2a9b6b4b8c6070568dd4b321a1831c834 |
|
MD5 | 669462a868517346159b9b73b204f410 |
|
BLAKE2b-256 | 63c35fc54a131c3e498c03031bf5eff3bb9bb95a2c8d01a4d3349a52116cb2f4 |
File details
Details for the file versioninfo_helper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: versioninfo_helper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e22dc57b726033a6e02a3d0576a635b4a2a631b62ea19dfebe6d7f049d18a93 |
|
MD5 | 3b87f98e3cad24400b0e6bf2556146fe |
|
BLAKE2b-256 | c710a0fe16aa26c117ed3f7b1fe4097de6a9cc94c862efdc20c96a5c32001963 |