Generate AppImages from your Python projects
Project description
pyproject-appimage
pyproject-appimage allows you to create a AppImage in a few seconds. To get started, just add this to your pyproject.toml:
[tool.pyproject-appimage]
script = "my-app"
output = "MyApp.AppImage"
script
is here the script that should be run when executing the AppImage. You can use the project.scripts
section of your pyproject.toml or the entry_points
argument of your setup.py to create scripts.
To create a AppImage, just run this command in your project directory:
pyproject-appimage
Pyproject options
The following options cn be used in your pyproject.toml:
Option | Type | Description |
---|---|---|
script | string | The script that should be run |
output | string | The filename of your AppImage. Can be overwritten with the cli. |
icon | string | The path to your Icon |
rename-icon | string | Give your Icon another name inside the AppImage |
desktop-entry | string | The path to your .desktop file |
python-version | string | The Python version that is used. Default is your current version. Can be overwritten with the cli. |
Note: All paths are relativ to your project directory
Cli options
pyproject-appimage provides the following cli options:
usage: pyproject-appimage [-h] [--output OUTPUT] [--project-dir PROJECT_DIR] [--python-version PYTHON_VERSION] [--work-dir WORK_DIR] [--list-available-versions] [--no-fuse] [-v]
options:
-h, --help show this help message and exit
--output OUTPUT Sets the putput filename
--project-dir PROJECT_DIR
Sets the project dir
--python-version PYTHON_VERSION
Set a custom Python version
--work-dir WORK_DIR Set a custom directory to work in. Existing Directories will be removed.
--list-available-versions
Print available Python versions and exit
--no-fuse Use this, if FUSE is not available e.g. inside a Docker container
-v, --version Prints the version and exit
pyproject-appimage is of course also available as AppImage
pyproject-appimage is based on the work of niess
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
Hashes for pyproject_appimage-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7008e364d633f9047faeaf0036921391005fccc142bf0460b3bb6e5d6252ac7b |
|
MD5 | 3fccfd281b10c46c16c80faef103cb0d |
|
BLAKE2b-256 | edf766b42f1fbf33ac7c33d34c4fc948263108cc83322b8a510f23b595d76894 |