def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *awslambda_python_rules(), *awslambda_python_subsystem_rules(), *core_target_types_rules(), *package_pex_binary.rules(), *python_target_types_rules(), *target_rules(), QueryRule(BuiltPackage, (PythonAwsLambdaFieldSet, )), ], target_types=[ FileTarget, FilesGeneratorTarget, PexBinary, PythonAWSLambda, PythonRequirementTarget, PythonRequirementTarget, PythonSourcesGeneratorTarget, RelocatedFiles, ResourcesGeneratorTarget, ], ) rule_runner.set_options([], env_inherit={"PATH", "PYENV_ROOT", "HOME"}) return rule_runner
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *target_type_rules(), *python_target_types_rules(), QueryRule(ResolvedPythonAwsHandler, [ResolvePythonAwsHandlerRequest]), QueryRule(InjectedDependencies, [InjectPythonLambdaHandlerDependency]), ], target_types=[PythonAWSLambda, PythonRequirementLibrary, PythonLibrary], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *target_type_rules(), *python_target_types_rules(), QueryRule(ResolvedPythonGoogleHandler, [ResolvePythonGoogleHandlerRequest]), QueryRule(InjectedDependencies, [InjectPythonCloudFunctionHandlerDependency]), ], target_types=[ PythonGoogleCloudFunction, PythonRequirementLibrary, PythonLibrary ], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *awslambda_python_rules(), *awslambda_python_subsystem_rules(), *target_rules(), *python_target_types_rules(), *core_target_types_rules(), QueryRule(BuiltPackage, (PythonAwsLambdaFieldSet, )), ], target_types=[ PythonAWSLambda, PythonLibrary, Files, RelocatedFiles, Resources ], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *target_type_rules(), *python_target_types_rules(), QueryRule(ResolvedPythonAwsHandler, [ResolvePythonAwsHandlerRequest]), QueryRule(InjectedDependencies, [InjectPythonLambdaHandlerDependency]), ], target_types=[ FileTarget, PythonAWSLambda, PythonRequirementTarget, PythonSourcesGeneratorTarget, ], )
def rule_runner() -> RuleRunner: return RuleRunner( rules=[ *python_google_cloud_function_rules(), *python_google_cloud_function_subsystem_rules(), *target_rules(), *python_target_types_rules(), *core_target_types_rules(), QueryRule(BuiltPackage, (PythonGoogleCloudFunctionFieldSet, )), ], target_types=[ PythonGoogleCloudFunction, PythonLibrary, Files, RelocatedFiles, Resources ], )
def rule_runner() -> RuleRunner: rule_runner = RuleRunner( rules=[ *vcs_versioning.rules(), *setuptools_scm.rules(), *python_target_types_rules(), *git.rules(), QueryRule(GeneratedSources, [GeneratePythonFromSetuptoolsSCMRequest]), ], target_types=[VCSVersion], ) rule_runner.set_options( ["--backend-packages=pants.backend.python"], env_inherit={"PATH", "PYENV_ROOT", "HOME"}, ) return rule_runner