本文整理汇总了Python中mozharness.mozilla.l10n.locales.LocalesMixin.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python LocalesMixin.__init__方法的具体用法?Python LocalesMixin.__init__怎么用?Python LocalesMixin.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mozharness.mozilla.l10n.locales.LocalesMixin
的用法示例。
在下文中一共展示了LocalesMixin.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
LocalesMixin.__init__(self)
MercurialScript.__init__(
self,
config_options=self.config_options,
all_actions=[
"clobber",
"pull",
"list-locales",
"setup",
"repack",
"upload-repacks",
"submit-to-balrog",
"summary",
],
require_config_file=require_config_file
)
self.base_package_name = None
self.buildid = None
self.make_ident_output = None
self.repack_env = None
self.revision = None
self.upload_env = None
self.version = None
self.upload_urls = {}
self.locales_property = {}
示例2: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
# fxbuild style:
buildscript_kwargs = {
'all_actions': [
"clobber",
"pull",
"list-locales",
"setup",
"repack",
"taskcluster-upload",
"funsize-props",
"submit-to-balrog",
"summary",
],
'config': {
"buildbot_json_path": "buildprops.json",
"ignore_locales": ["en-US"],
"locales_dir": "browser/locales",
"update_mar_dir": "dist/update",
"buildid_section": "App",
"buildid_option": "BuildID",
"application_ini": "application.ini",
"log_name": "single_locale",
"clobber_file": 'CLOBBER',
"appName": "Firefox",
"hashType": "sha512",
"taskcluster_credentials_file": "oauth.txt",
'virtualenv_modules': [
'requests==2.2.1',
'PyHawk-with-a-single-extra-commit==0.1.5',
'taskcluster==0.0.15',
],
'virtualenv_path': 'venv',
},
}
#
LocalesMixin.__init__(self)
BaseScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
**buildscript_kwargs
)
self.buildid = None
self.make_ident_output = None
self.bootstrap_env = None
self.upload_env = None
self.revision = None
self.version = None
self.upload_urls = {}
self.locales_property = {}
self.package_urls = {}
self.pushdate = None
# upload_files is a dictionary of files to upload, keyed by locale.
self.upload_files = {}
if 'mock_target' in self.config:
self.enable_mock()
示例3: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
LocalesMixin.__init__(self)
BaseScript.__init__(
self,
config_options=self.config_options,
all_actions=[
"clobber",
"pull",
"list-locales",
"setup",
"repack",
#"generate-complete-mar",
#"generate-partials",
"create-nightly-snippets",
"upload-nightly-repacks",
"upload-snippets",
"summary",
],
require_config_file=require_config_file
)
self.buildid = None
self.make_ident_output = None
self.repack_env = None
self.revision = None
self.version = None
self.upload_urls = {}
self.locales_property = {}
self.l10n_dir = None
if 'mock_target' in self.config:
self.enable_mock()
示例4: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=False):
LocalesMixin.__init__(self)
BaseScript.__init__(self,
config_options=self.config_options,
all_actions=[
'pull',
'build',
'summary',
],
require_config_file=require_config_file,
# Default configuration
config={
'gaia_l10n_vcs': 'hg',
'vcs_share_base': os.environ.get('HG_SHARE_BASE_DIR'),
'locales_dir': 'b2g/locales',
'l10n_dir': 'gecko-l10n',
# I forget what this was for. Copied from the Android multilocale stuff
'ignore_locales': ["en-US", "multi"],
# This only has 2 locales in it. We probably need files that mirror gaia's locale lists
# We need 2 sets of locales files because the locale names in gaia are different than gecko, e.g. 'es' vs 'es-ES'
# We'll need to override this for localizer buidls
'locales_file': 'build/b2g/locales/all-locales',
'mozilla_dir': 'build',
'objdir': 'obj-firefox',
'merge_locales': True,
'work_dir': '.',
'vcs_output_timeout': 600, # 10 minutes should be enough for anyone!
},
)
示例5: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=False, config={},
all_actions=all_actions,
default_actions=default_actions):
# Default configuration
default_config = {
'default_vcs': 'hgtool',
'ccache': True,
'locales_dir': 'gecko/b2g/locales',
'l10n_dir': 'gecko-l10n',
'ignore_locales': ['en-US', 'multi'],
'locales_file': 'gecko/b2g/locales/all-locales',
'mozilla_dir': 'build/gecko',
'objdir': 'build/objdir-gecko',
'merge_locales': True,
'compare_locales_repo': 'https://hg.mozilla.org/build/compare-locales',
'compare_locales_rev': 'RELEASE_AUTOMATION',
'compare_locales_vcs': 'hgtool',
'repo_remote_mappings': {},
'influx_credentials_file': 'oauth.txt',
'balrog_credentials_file': 'oauth.txt',
'build_resources_path': '%(abs_obj_dir)s/.mozbuild/build_resources.json',
'virtualenv_modules': [
'requests==2.8.1',
],
'virtualenv_path': 'venv',
}
default_config.update(config)
self.buildid = None
self.dotconfig = None
LocalesMixin.__init__(self)
B2GBuildBaseScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
config=default_config,
all_actions=all_actions,
default_actions=default_actions,
)
dirs = self.query_abs_dirs()
self.objdir = self.config.get("gecko_objdir",
os.path.join(dirs['work_dir'], 'objdir-gecko'))
self.abs_dirs['abs_obj_dir'] = self.objdir
# Evaluating the update type to build.
# Default is OTA if config do not specifies anything
if "update_types" in self.config:
self.update_types = self.config["update_types"]
elif "update_type" in self.config:
self.update_types = [self.config["update_type"]]
else:
self.update_types = ["ota"]
self.package_urls = {}
# We need to create the virtualenv directly (without using an action) in
# order to use python modules in PreScriptRun/Action listeners
self.create_virtualenv()
示例6: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=False, config={},
all_actions=all_actions,
default_actions=default_actions):
# Default configuration
default_config = {
'default_vcs': 'hgtool',
'ccache': True,
'locales_dir': 'gecko/b2g/locales',
'l10n_dir': 'gecko-l10n',
'ignore_locales': ['en-US', 'multi'],
'locales_file': 'gecko/b2g/locales/all-locales',
'mozilla_dir': 'build/gecko',
'objdir': 'build/objdir-gecko',
'merge_locales': True,
'compare_locales_repo': 'https://hg.mozilla.org/build/compare-locales',
'compare_locales_rev': 'RELEASE_AUTOMATION',
'compare_locales_vcs': 'hgtool',
'repo_remote_mappings': {},
'influx_credentials_file': 'oauth.txt',
'balrog_credentials_file': 'oauth.txt',
'build_resources_path': '%(abs_obj_dir)s/.mozbuild/build_resources.json',
'virtualenv_modules': [
'requests==2.2.1',
],
'virtualenv_path': 'venv',
}
default_config.update(config)
self.buildid = None
self.dotconfig = None
LocalesMixin.__init__(self)
B2GBuildBaseScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
config=default_config,
all_actions=all_actions,
default_actions=default_actions,
)
dirs = self.query_abs_dirs()
self.objdir = self.config.get("gecko_objdir",
os.path.join(dirs['work_dir'], 'objdir-gecko'))
self.abs_dirs['abs_obj_dir'] = self.objdir
if self.config.get("update_type", "ota") == "fota":
self.make_updates_cmd = ['./build.sh', 'gecko-update-fota']
self.extra_update_attrs = 'isOsUpdate="true"'
self.isOSUpdate = True
else:
self.make_updates_cmd = ['./build.sh', 'gecko-update-full']
self.extra_update_attrs = None
self.isOSUpdate = False
self.package_urls = {}
# We need to create the virtualenv directly (without using an action) in
# order to use python modules in PreScriptRun/Action listeners
self.create_virtualenv()
示例7: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
LocalesMixin.__init__(self)
MercurialScript.__init__(self, config_options=self.config_options,
all_actions=['clobber', 'pull-build-source',
'pull-locale-source',
'build', 'package-en-US',
'upload-en-US',
'add-locales', 'package-multi',
'upload-multi'],
require_config_file=require_config_file)
示例8: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
# fxbuild style:
buildscript_kwargs = {
'all_actions': [
"clobber",
"pull",
"list-locales",
"setup",
"repack",
"upload-repacks",
"submit-to-balrog",
"summary",
],
'config': {
"buildbot_json_path": "buildprops.json",
"ignore_locales": ["en-US"],
"locales_dir": "browser/locales",
"previous_mar_dir": "previous",
"current_mar_dir": "current",
"update_mar_dir": "dist/update",
"previous_mar_filename": "previous.mar",
"current_work_mar_dir": "current.work",
"buildid_section": "App",
"buildid_option": "BuildID",
"application_ini": "application.ini",
"unpack_script": "tools/update-packaging/unwrap_full_update.pl",
"log_name": "single_locale",
"clobber_file": 'CLOBBER',
"appName": "Firefox",
"hashType": "sha512",
},
}
#
LocalesMixin.__init__(self)
BaseScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
**buildscript_kwargs
)
self.buildid = None
self.make_ident_output = None
self.repack_env = None
self.upload_env = None
self.revision = None
self.version = None
self.upload_urls = {}
self.locales_property = {}
self.l10n_dir = None
self.package_urls = {}
self.partials = {}
if 'mock_target' in self.config:
self.enable_mock()
示例9: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=False, config={}, all_actions=all_actions, default_actions=default_actions):
# Default configuration
default_config = {
"default_vcs": "hgtool",
"ccache": True,
"locales_dir": "gecko/b2g/locales",
"l10n_dir": "gecko-l10n",
"ignore_locales": ["en-US", "multi"],
"locales_file": "gecko/b2g/locales/all-locales",
"mozilla_dir": "build/gecko",
"objdir": "build/objdir-gecko",
"merge_locales": True,
"compare_locales_repo": "https://hg.mozilla.org/build/compare-locales",
"compare_locales_rev": "RELEASE_AUTOMATION",
"compare_locales_vcs": "hgtool",
"repo_remote_mappings": {},
"influx_credentials_file": "oauth.txt",
"balrog_credentials_file": "oauth.txt",
"build_resources_path": "%(abs_obj_dir)s/.mozbuild/build_resources.json",
"virtualenv_modules": ["requests==2.8.1"],
"virtualenv_path": "venv",
}
default_config.update(config)
self.buildid = None
self.dotconfig = None
LocalesMixin.__init__(self)
B2GBuildBaseScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
config=default_config,
all_actions=all_actions,
default_actions=default_actions,
)
dirs = self.query_abs_dirs()
self.objdir = self.config.get("gecko_objdir", os.path.join(dirs["work_dir"], "objdir-gecko"))
self.abs_dirs["abs_obj_dir"] = self.objdir
# Evaluating the update type to build.
# Default is OTA if config do not specifies anything
if "update_types" in self.config:
self.update_types = self.config["update_types"]
elif "update_type" in self.config:
self.update_types = [self.config["update_type"]]
else:
self.update_types = ["ota"]
self.package_urls = {}
# We need to create the virtualenv directly (without using an action) in
# order to use python modules in PreScriptRun/Action listeners
self.create_virtualenv()
示例10: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
self.release_config = {}
LocalesMixin.__init__(self)
MercurialScript.__init__(
self,
config_options=self.config_options,
all_actions=[
"download",
"repack",
"sign",
"upload-signed-bits",
"summary",
],
require_config_file=require_config_file
)
示例11: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
self.release_config = {}
LocalesMixin.__init__(self)
MercurialScript.__init__(self,
config_options=self.config_options,
all_actions=[
"passphrase",
"clobber",
"pull",
"download",
"repack",
"upload-unsigned-bits",
"sign",
"upload-signed-bits",
],
require_config_file=require_config_file
)
示例12: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
buildscript_kwargs = {
'all_actions': [
"get-secrets",
"clobber",
"pull",
"clone-locales",
"list-locales",
"setup",
"repack",
"validate-repacks-signed",
"upload-repacks",
"create-virtualenv",
"taskcluster-upload",
"submit-to-balrog",
"summary",
],
'config': {
'taskcluster_credentials_file': 'oauth.txt',
'virtualenv_modules': [
'requests==2.8.1',
'PyHawk-with-a-single-extra-commit==0.1.5',
'taskcluster==0.0.26',
],
'virtualenv_path': 'venv',
},
}
LocalesMixin.__init__(self)
MercurialScript.__init__(
self,
config_options=self.config_options,
require_config_file=require_config_file,
**buildscript_kwargs
)
self.base_package_name = None
self.buildid = None
self.make_ident_output = None
self.repack_env = None
self.enUS_revision = None
self.revision = None
self.upload_env = None
self.version = None
self.upload_urls = {}
self.locales_property = {}
示例13: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
self.release_config = {}
LocalesMixin.__init__(self)
MobileSigningMixin.__init__(self)
MercurialScript.__init__(self,
config_options=self.config_options,
all_actions=[
"passphrase",
"clobber",
"pull",
"download-unsigned-bits",
"sign",
"verify-signatures",
"upload-signed-bits",
"create-snippets",
"upload-snippets",
],
require_config_file=require_config_file
)
示例14: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
LocalesMixin.__init__(self)
MercurialScript.__init__(
self,
config_options=self.config_options,
all_actions=[
"clobber",
"pull-build-source",
"pull-locale-source",
"build",
"package-en-US",
"upload-en-US",
"backup-objdir",
"restore-objdir",
"add-locales",
"package-multi",
"upload-multi",
"summary",
],
require_config_file=require_config_file,
)
示例15: __init__
# 需要导入模块: from mozharness.mozilla.l10n.locales import LocalesMixin [as 别名]
# 或者: from mozharness.mozilla.l10n.locales.LocalesMixin import __init__ [as 别名]
def __init__(self, require_config_file=True):
buildscript_kwargs = {
"all_actions": [
"clobber",
"pull",
"list-locales",
"setup",
"repack",
"upload-repacks",
"create-virtualenv",
"taskcluster-upload",
"submit-to-balrog",
"summary",
],
"config": {
"taskcluster_credentials_file": "oauth.txt",
"virtualenv_modules": [
"requests==2.8.1",
"PyHawk-with-a-single-extra-commit==0.1.5",
"taskcluster==0.0.15",
],
"virtualenv_path": "venv",
},
}
LocalesMixin.__init__(self)
MercurialScript.__init__(
self, config_options=self.config_options, require_config_file=require_config_file, **buildscript_kwargs
)
self.base_package_name = None
self.buildid = None
self.make_ident_output = None
self.repack_env = None
self.revision = None
self.upload_env = None
self.version = None
self.upload_urls = {}
self.locales_property = {}