本文整理汇总了Python中mozharness.mozilla.l10n.locales.LocalesMixin类的典型用法代码示例。如果您正苦于以下问题:Python LocalesMixin类的具体用法?Python LocalesMixin怎么用?Python LocalesMixin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LocalesMixin类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
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 = {}
开发者ID:rhelmer,项目名称:gecko-dev,代码行数:26,代码来源:mobile_l10n.py
示例2: __init__
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()
开发者ID:kleopatra999,项目名称:system-addons,代码行数:60,代码来源:desktop_l10n.py
示例3: __init__
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!
},
)
开发者ID:MekliCZ,项目名称:positron,代码行数:30,代码来源:b2g_desktop_multilocale.py
示例4: __init__
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()
开发者ID:seraphs,项目名称:cssfixer,代码行数:31,代码来源:desktop_l10n.py
示例5: __init__
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()
开发者ID:kitcambridge,项目名称:gecko-dev,代码行数:59,代码来源:b2g_build.py
示例6: __init__
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()
开发者ID:DINKIN,项目名称:Waterfox,代码行数:57,代码来源:b2g_build.py
示例7: __init__
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)
开发者ID:Callek,项目名称:mozharness,代码行数:10,代码来源:multi_locale_build.py
示例8: __init__
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()
开发者ID:gerva,项目名称:mozharness,代码行数:55,代码来源:desktop_l10n.py
示例9: __init__
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()
开发者ID:mozilla-git,项目名称:gecko-dev,代码行数:54,代码来源:b2g_build.py
示例10: __init__
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
)
开发者ID:seraphs,项目名称:cssfixer,代码行数:15,代码来源:mobile_cssfixer_repack.py
示例11: __init__
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
)
开发者ID:Callek,项目名称:mozharness,代码行数:17,代码来源:mobile_partner_repack.py
示例12: __init__
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 = {}
开发者ID:luke-chang,项目名称:gecko-1,代码行数:44,代码来源:mobile_l10n.py
示例13: __init__
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
)
开发者ID:ctalbert,项目名称:mozharness,代码行数:19,代码来源:sign_android.py
示例14: __init__
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,
)
开发者ID:jsyeo,项目名称:build-mozharness,代码行数:21,代码来源:multi_locale_build.py
示例15: query_abs_dirs
def query_abs_dirs(self):
if self.abs_dirs:
return self.abs_dirs
abs_dirs = LocalesMixin.query_abs_dirs(self)
abs_dirs.update(B2GBuildBaseScript.query_abs_dirs(self))
dirs = {
'gaia_l10n_base_dir': os.path.join(abs_dirs['abs_work_dir'], 'gaia-l10n'),
'abs_public_upload_dir': os.path.join(abs_dirs['abs_work_dir'], 'upload-public'),
}
abs_dirs.update(dirs)
self.abs_dirs = abs_dirs
return self.abs_dirs
开发者ID:brendandahl,项目名称:positron,代码行数:14,代码来源:b2g_build.py
示例16: __init__
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 = {}
开发者ID:mozilla-git,项目名称:gecko-dev,代码行数:37,代码来源:mobile_l10n.py
示例17: query_abs_dirs
def query_abs_dirs(self):
if self.abs_dirs:
return self.abs_dirs
abs_dirs = LocalesMixin.query_abs_dirs(self)
abs_dirs.update(B2GBuildBaseScript.query_abs_dirs(self))
dirs = {
"gaia_l10n_base_dir": os.path.join(abs_dirs["abs_work_dir"], "gaia-l10n"),
"compare_locales_dir": os.path.join(abs_dirs["abs_work_dir"], "compare-locales"),
"abs_public_upload_dir": os.path.join(abs_dirs["abs_work_dir"], "upload-public"),
}
abs_dirs.update(dirs)
self.abs_dirs = abs_dirs
return self.abs_dirs
开发者ID:mozilla-git,项目名称:gecko-dev,代码行数:15,代码来源:b2g_build.py
示例18: query_abs_dirs
def query_abs_dirs(self):
if self.abs_dirs:
return self.abs_dirs
abs_dirs = LocalesMixin.query_abs_dirs(self)
c = self.config
dirs = {
'src': os.path.join(c['work_dir'], 'gecko'),
'work_dir': abs_dirs['abs_work_dir'],
'gaia_l10n_base_dir': os.path.join(abs_dirs['abs_work_dir'], self.config['gaia_l10n_base_dir']),
'abs_compare_locales_dir': os.path.join(abs_dirs['base_work_dir'], 'compare-locales'),
}
abs_dirs.update(dirs)
self.abs_dirs = abs_dirs
return self.abs_dirs
开发者ID:MekliCZ,项目名称:positron,代码行数:16,代码来源:b2g_desktop_multilocale.py
注:本文中的mozharness.mozilla.l10n.locales.LocalesMixin类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论