当前位置: 首页>>代码示例>>Python>>正文


Python CacheSetup.scoped方法代码示例

本文整理汇总了Python中pants.cache.cache_setup.CacheSetup.scoped方法的典型用法代码示例。如果您正苦于以下问题:Python CacheSetup.scoped方法的具体用法?Python CacheSetup.scoped怎么用?Python CacheSetup.scoped使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pants.cache.cache_setup.CacheSetup的用法示例。


在下文中一共展示了CacheSetup.scoped方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: subsystem_dependencies

# 需要导入模块: from pants.cache.cache_setup import CacheSetup [as 别名]
# 或者: from pants.cache.cache_setup.CacheSetup import scoped [as 别名]
 def subsystem_dependencies(cls):
   # NB: `Goal.Options` implements `SubsystemClientMixin` in order to allow v1 `Tasks` to
   # depend on v2 Goals, and for `Goals` to declare a deprecated dependency on a `CacheSetup`
   # instance for backwards compatibility purposes. But v2 Goals should _not_ have subsystem
   # dependencies: instead, the @rules participating (transitively) in a Goal should directly
   # declare their Subsystem deps.
   if outer_cls.deprecated_cache_setup_removal_version:
     dep = CacheSetup.scoped(
         cls,
         removal_version=outer_cls.deprecated_cache_setup_removal_version,
         removal_hint='Goal `{}` uses an independent caching implementation, and ignores `{}`.'.format(
           cls.options_scope,
           CacheSetup.subscope(cls.options_scope),
         )
       )
     return (dep,)
   return tuple()
开发者ID:cosmicexplorer,项目名称:pants,代码行数:19,代码来源:goal.py

示例2: subsystem_dependencies

# 需要导入模块: from pants.cache.cache_setup import CacheSetup [as 别名]
# 或者: from pants.cache.cache_setup.CacheSetup import scoped [as 别名]
 def subsystem_dependencies(cls):
   return super(TaskBase, cls).subsystem_dependencies() + (CacheSetup.scoped(cls),)
开发者ID:wonlay,项目名称:pants,代码行数:4,代码来源:task.py

示例3: subsystem_dependencies

# 需要导入模块: from pants.cache.cache_setup import CacheSetup [as 别名]
# 或者: from pants.cache.cache_setup.CacheSetup import scoped [as 别名]
 def subsystem_dependencies(cls):
   return (super(TaskBase, cls).subsystem_dependencies() +
           (CacheSetup.scoped(cls), BuildInvalidator.Factory, SourceRootConfig))
开发者ID:baroquebobcat,项目名称:pants,代码行数:5,代码来源:task.py

示例4: subsystem_dependencies

# 需要导入模块: from pants.cache.cache_setup import CacheSetup [as 别名]
# 或者: from pants.cache.cache_setup.CacheSetup import scoped [as 别名]
 def subsystem_dependencies(cls):
   return (super(TaskBase, cls).subsystem_dependencies() +
           (CacheSetup.scoped(cls), BuildInvalidator.Factory, SourceRootConfig) +
           ((TargetFilter.scoped(cls),) if cls.target_filtering_enabled else tuple()))
开发者ID:cosmicexplorer,项目名称:pants,代码行数:6,代码来源:task.py

示例5: subsystem_dependencies

# 需要导入模块: from pants.cache.cache_setup import CacheSetup [as 别名]
# 或者: from pants.cache.cache_setup.CacheSetup import scoped [as 别名]
 def subsystem_dependencies(cls):
   return super(TaskBase, cls).subsystem_dependencies() + (CacheSetup.scoped(cls),
                                                           BuildInvalidator.Factory)
开发者ID:grimreaper,项目名称:pants,代码行数:5,代码来源:task.py


注:本文中的pants.cache.cache_setup.CacheSetup.scoped方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。