This is a demonstration package showing the proper structure and metadata requirements for creating Polly-compatible packages.
This is the core metadata file that Polly uses to understand how to install your package.
Required fields:
install: a list of commands to be executed sequentially when the package is installed.uninstall: a list of commands to be executed sequentially when the package is uninstalled.
Note: On package upgrade, the uninstall commands and then the install commands will be executed!
Additional metadata for package discovery and information display.
{
"install": [
"echo Run commands here when the package is installed!"
],
"uninstall": [
"echo Run commands here when the package is uninstalled!"
]
}-
Test the example:
python3 main.py
-
Use as template:
- Copy this directory structure
- Modify
.install.polly.jsonwith your commands - Update
.polly.jsonwith your package information - Replace
main.pywith your application code
- Install/uninstall commands are executed in the package directory during installation
- Commands run with the privleges you give them, use
sudoto run as root - Use absolute paths in when possible
- Test your package structure before publishing