oapkg package

Submodules

oapkg.config module

oapkg.config.check(cfg)[source]

Check the validity of parameters in working environment.

Parameters:cfg (Config) – current package configuration
Returns:list of faulty parameters
Return type:(list of str)
oapkg.config.require(purpose, cfg)[source]

List of requirements for this option for a given purpose.

Parameters:
  • purpose (str) – either ‘option’, ‘setup’, ‘install’ or ‘dvlpt’
  • cfg (Config) – current package configuration
Returns:

(list of Dependency)

oapkg.config.update_parameters(cfg)[source]

Update config with parameters necessary for this option.

Notes: create a section with option name to store params.

Parameters:cfg (dict) – dict of option parameters as seen in pkg_cfg.json
Returns:update in place
Return type:None

oapkg.handlers module

Used to extend Jinja2 environment with extra arguments

oapkg.handlers.environment_extensions(cfg)[source]

Add more functionality to an environment.

Parameters:cfg (Config) – current package configuration
Returns:any
Return type:dict of str
oapkg.handlers.installed_options(cfg)[source]

oapkg.version module

oapkg.version.MAJOR = 0

(int) Version major component.

oapkg.version.MINOR = 1

(int) Version minor component.

oapkg.version.POST = 0

(int) Version post or bugfix component.

Module contents