Package setuplib

Package setuplib

source code

Setup helper library specific for the runtime environment of *distutils* and *setuptools*.


Version: 01.01.001

Author: Arno-Can Uestuensoez

Copyright: Copyright (C) 2015-2019 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez

License: Artistic-License-2.0 + Forced-Fairplay-Constraints

Submodules

Classes
  SetuplibError
Functions
 
help_on_user_options(uopt, uoptions, raw=False)
Displays the standard option data as provided by the "distuitls" API variable 'user_options'.
source code
 
check_for_context_help(cmdobj, raw=False)
Scans for any requested context help, if present returns either a formatted string for console display, or the reference to the raw help entry.
source code
Variables
  __author_email__ = 'acue_sf2@sourceforge.net'
  __uuid__ = "239b0bf7-674a-4f53-a646-119f591af806"
Function Details

help_on_user_options(uopt, uoptions, raw=False)

source code 
Displays the standard option data as provided by the
"distuitls" API variable 'user_options'.

The supported format is::

    user_options = [
        (<user-option-long>, <user-option-short>,  <user-option-description>),
        ...
    ]

Args:
    uopt:
        User option::

            uopt := (
                  <user-option-long>
                | <user-option-short>
                | #index
            )

            user-option-long := (
                  <literal-no-args>
                | <literal-with-hyphen-no-args>  # leading '--'
                | <literal-with-args>    # trailing '='
                | <literal-with-hyphen-with-args>  # leading '--' and trailing '='
            )

            user-option-short := (
                    <literal-no-hyphen>
                  | <literal-with-hyphen>  # leading '--'
            )
            
            index := int[0, length(user_options))  
                # use for development and test only,
                # production use is not recommended

    uoptions:
        The options definition.

    raw:
        If set to 'True', the original entry tuple is returned,
        else the formatted string for console display. 

Results:
    Return string reference to the defined help-string. 

Raises:
    SetupDocXError

    pass-through

Decorators:

check_for_context_help(cmdobj, raw=False)

source code 
Scans for any requested context help, if present returns either a formatted
string for console display, or the reference to the raw help entry.

Args:
    cmdobj:
        The command object 'distutils.cmd.Command'.

    raw:
        If 'True' returns the raw entry. else a formatted
        string for console display.

Returns:
    The help entry, either raw, or as a formatted console string.

Raises: 
    pass-through

Decorators: