Пример #1
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run cmake commands
CMAKE_COMMAND = 'cmake'

#: cmake host tool helper
CMAKE = RelengTool(CMAKE_COMMAND)
Пример #2
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run mercurial commands
HG_COMMAND = 'hg'

#: list of environment keys to filter from a environment dictionary
HG_SANITIZE_ENV_KEYS = [
    'HGENCODING',
    'HGENCODINGMODE',
    'HGENCODINGAMBIGUOUS',
    'HGRCPATH',
    'HGPLAIN',
    'HGPLAINEXCEPT',
]

#: dictionary of environment entries append to the environment dictionary
HG_EXTEND_ENV = {
    # hg is most likely a python script; ensure output is unbuffered
    'PYTHONUNBUFFERED': '1',
}

#: mercurial host tool helper
HG = RelengTool(HG_COMMAND,
                env_sanitize=HG_SANITIZE_ENV_KEYS,
                env_include=HG_EXTEND_ENV)
Пример #3
0
from releng_tool.tool import RelengTool
import sys

#: executable used to run bzr commands
BZR_COMMAND = 'bzr'

#: list of environment keys to filter from a environment dictionary
BZR_SANITIZE_ENV_KEYS = [
    # prevent debugger from loading
    'BZR_PDB',
    # misc
    'BZR_REMOTE_PATH',
    'BZR_TEXTUI_INPUT',
]

#: dictionary of environment entries append to the environment dictionary
BZR_EXTEND_ENV = {
    # always use a progress bar
    'BZR_PROGRESS_BAR': 'text',
}

# always suppress file logging
if sys.platform != 'win32':
    BZR_EXTEND_ENV['BZR_LOG'] = '/dev/null'
else:
    BZR_EXTEND_ENV['BZR_LOG'] = 'NUL'

#: bzr host tool helper
BZR = RelengTool(BZR_COMMAND,
    env_sanitize=BZR_SANITIZE_ENV_KEYS, env_include=BZR_EXTEND_ENV)
Пример #4
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run autoreconf commands
AUTORECONF_COMMAND = 'autoreconf'

#: autoreconf host tool helper
AUTORECONF = RelengTool(AUTORECONF_COMMAND)
Пример #5
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run patch commands
PATCH_COMMAND = 'patch'

#: list of environment keys to filter from a environment dictionary
PATCH_SANITIZE_ENV_KEYS = [
    'PATCH_GET',
    'PATCH_VERSION_CONTROL',
    'POSIXLY_CORRECT',
    'QUOTING_STYLE',
    'SIMPLE_BACKUP_SUFFIX',
    'VERSION_CONTROL',
]

#: patch host tool helper
PATCH = RelengTool(PATCH_COMMAND, env_sanitize=PATCH_SANITIZE_ENV_KEYS)
Пример #6
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run cvs commands
CVS_COMMAND = 'cvs'

#: list of environment keys to filter from a environment dictionary
CVS_SANITIZE_ENV_KEYS = [
    'CVSIGNORE',
    'CVSREAD',
    'CVSUMASK',
    'CVSWRAPPERS',
    'CVS_SERVER',
]

#: dictionary of environment entries append to the environment dictionary
CVS_EXTEND_ENV = {
    # assume ssh authentication if configured with an :ext: cvsroot
    'CVS_RSH': 'ssh',
}

#: cvs host tool helper
CVS = RelengTool(CVS_COMMAND,
    env_sanitize=CVS_SANITIZE_ENV_KEYS, env_include=CVS_EXTEND_ENV)
Пример #7
0
# -*- coding: utf-8 -*-
# Copyright 2018-2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run svn commands
SVN_COMMAND = 'svn'

#: list of environment keys to filter from a environment dictionary
SVN_SANITIZE_ENV_KEYS = [
    'SVN_MERGE',
]

#: svn host tool helper
SVN = RelengTool(SVN_COMMAND, env_sanitize=SVN_SANITIZE_ENV_KEYS)
Пример #8
0
# -*- coding: utf-8 -*-
# Copyright 2021 releng-tool

from releng_tool.tool import RelengTool

#: executable used to run rsync commands
RSYNC_COMMAND = 'rsync'

#: list of environment keys to filter from a environment dictionary
RSYNC_SANITIZE_ENV_KEYS = [
    'RSYNC_CHECKSUM_LIST',
    'RSYNC_PARTIAL_DIR',
]

#: rsync host tool helper
RSYNC = RelengTool(RSYNC_COMMAND, env_sanitize=RSYNC_SANITIZE_ENV_KEYS)