コード例 #1
0
ファイル: test_builder.py プロジェクト: GetAttached/vdist
def test_output_script():
    with temporary_directory() as output_dir:
        ubuntu_argparsed_arguments_output_script = test_console.UBUNTU_ARGPARSED_ARGUMENTS.copy()
        ubuntu_argparsed_arguments_output_script["output_script"] = True
        ubuntu_argparsed_arguments_output_script["output_folder"] = output_dir
        _configuration = configuration.Configuration(ubuntu_argparsed_arguments_output_script)
        builder.build_package(_configuration)
        copied_script_path = _get_copied_script_path(_configuration)
        assert os.path.isfile(copied_script_path)
コード例 #2
0
ファイル: vdist_launcher.py プロジェクト: pingf/vdist
def _load_default_configuration(arguments: Dict[str, str]) -> Dict[str, configuration.Configuration]:
    arguments.name = defaults.BUILD_NAME
    _configuration = configuration.Configuration(arguments)
    configurations = {defaults.BUILD_NAME: _configuration, }
    return configurations
コード例 #3
0
ファイル: test_builder.py プロジェクト: pingf/vdist
def _call_builder(builder_parameters):
    _configuration = configuration.Configuration(builder_parameters)
    builder.build_package(_configuration)
コード例 #4
0
                'country where'
                ' IP address or URL is located. Geolocate is designed to be'
                ' used in console with pipes and redirections along with '
                'applications like traceroute, nslookup, etc."'
                ' --license BSD-3 --category net',
    "requirements_path": '/REQUIREMENTS.txt',
    "runtime_deps": ["libssl1.0.0", "dummy1.0.0"],
    "after_install": 'packaging/postinst.sh',
    "after_remove": 'packaging/postuninst.sh'
}

DUMMY_PACKAGE_NAME = "geolocate-1.3.0-ubuntu-trusty"
DUMMY_PACKAGE_EXTENSION = ".deb"
DUMMY_CONFIGURATION_ARGUMENTS = copy.deepcopy(CORRECT_UBUNTU_PARAMETERS)
DUMMY_CONFIGURATION_ARGUMENTS["output_folder"] = DUMMY_OUTPUT_FOLDER
DUMMY_CONFIGURATION = configuration.Configuration(UBUNTU_ARGPARSED_ARGUMENTS)
CORRECT_OUTPUT_FOLDER = "./vdist"
DUMMY_CONFIGURATION_FILE_ARGUMENTS = ["batch", "config.cfg"]
DUMMY_MANUAL_ARGUMENTS = ["manual",
                          "--app", "geolocate",
                          "--version", "1.3.0",
                          "--source_git", "https://github.com/dante-signal31/geolocate, master",
                          "--profile", "ubuntu-trusty",
                          "--compile_python",
                          "--python_version", "3.4.4",
                          "--fpm_args", '--maintainer [email protected] -a native --url '
                                        'https://github.com/dante-signal31/geolocate --description '
                                        '"This program accepts any text and searchs inside every IP'
                                        ' address. With each of those IP addresses, '
                                        'geolocate queries '
                                        'Maxmind GeoIP database to look for the city and '
コード例 #5
0
ファイル: vdist_launcher.py プロジェクト: wheelpharaoh/vdist
def _load_default_configuration(arguments):
    _configuration = configuration.Configuration(arguments)
    configurations = {
        "Default project": _configuration,
    }
    return configurations