Packaging and Publication

pert_belly_hack.defaults.LATEST_OPK_PATH_REL = 'latest.opk'

relative path to be used for the ‘latest opk’ symlink

pert_belly_hack.defaults.OUTPUT_PATH = 'pages_out'

path for github-pages

pert_belly_hack.defaults.PACKAGE_META = {'epoch': 1, 'package': 'enigma2-plugin-extensions-openwebif', 'target_root_path': 'OpenWebif', 'upstream_version': u'1.3.2'}

meta data for opkg

pert_belly_hack.defaults.PACKAGE_OUTPUT_PATH = 'pack'

path for package contents

pert_belly_hack.defaults.TAG_PATH_REL = 'public/tag.json'

relative path of build tag information file

pert_belly_hack.defaults.TARGET_PATH_REL = 'usr/lib/enigma2/python/Plugins/Extensions'

relative path on enigma2 device

Packaging utilily functions

Helper functions for preparing OPKG package contents.

pert_belly_hack.packaging.compile_cheetah(target_path)[source]

Run cheetah template generator for target_path.

Parameters:target_path (basestring) – cheetah template path
pert_belly_hack.packaging.compile_locales(top='locale', target_path=None)[source]

Run locale generator for .po files in top.

Parameters:
  • top – location of .po files
  • target_path (basestring) – (optional) path where generated .mo files will be stored #NOQA
pert_belly_hack.packaging.mkdir_intermediate(path)[source]

Create intermediate folders of path.

Parameters:path (basestring) – full path
pert_belly_hack.packaging.source_files(top)[source]

Generator for paths of files to be included.

Parameters:top (basestring) – root path

Publishing utilily functions

Helper functions and classes for preparing publication as github pages.