Standard app packaging
Project description
pyPackage module
Description
pyPackage module makes use of Pyinstaller to build an app package ready to go. It is a wrapper to ease the use of Pyinstaller. It defines the build parameters in a settings file (yml file) and also add the ability to add external documents (documentation, config files, ...) and a launcher (.bat or .sh file)
Note that Pyinstaller builds executable files according to the OS on which the program is exectuted :
- if executed on Windows, a windows executable file is generated
- if executed on Linux, a linux executable file is generated
Example
Here is a basic example of use:
from pyBaseApp.package import Package, Options
from pyBaseApp.applauncher import Configuration
settings = Configuration().settings('settings.yml')
try:
options = Options(settings)
Package(options, data)
except ValueError:
print('package value is missing in settings')
Where settings.yml could be:
name: myApp
package: C:/scripts/my_app.py
distpath: C:/dist/myApp
data:
- src: C:/scripts/resources/myapp.yml
root_level: true
- src: C:/scripts/resources/README.md
root_level: true
- src: C:\data\github\work\scripts\doc\easyPresentation\images
dst: images
root_level: true
sh:
path: mypath
options:
l: myloggerpath
s: mysettingspath
List of available options:
Pynstaller options and default values (See pyinstaller documentation for more info):
name = None
onefile=False
console=True
binaries = dict()
icon = None
distpath = None
workpath = None
specpath = 'pyinstaller'
paths = []
clean = True
loglevel = loglevels.DEBUG.name
hiddenimports = []
additionalhooks = []
runtimehooks = []
excludemodules = []
package = None
no_confirm = True
addons options :
data = None
version = None
sh = None
bat = None
Examples of data and sh structures are given above
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 pyInstallPackage-0.1.tar.gz
.
File metadata
- Download URL: pyInstallPackage-0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7bb2c81fa8d78da702db524bc9abcb935101b00170810f57cb08f296188bb6d |
|
MD5 | 36cfa316d6abf656d89e3ba043662112 |
|
BLAKE2b-256 | f3f73198e4d2891ead0a533ca473d79249dcfc420b733bd082b6ca50a0c10cdb |
File details
Details for the file pyInstallPackage-0.1-py3-none-any.whl
.
File metadata
- Download URL: pyInstallPackage-0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8dac16a8d16659b396748a13b7534ea77ad90bb2bb6da47b9f476cf614d3e83 |
|
MD5 | 9cecfef2663e4ca2d22a79f364c2727e |
|
BLAKE2b-256 | d8dda2c157801e24c6c394dd0ce07cf3257573d020847bf967b19d2ac12c8f48 |