示例#1
0
文件: register.py 项目: elyast/pants
def build_file_aliases():
    return BuildFileAliases(targets={
        PythonBinary.alias(): PythonBinary,
        PythonLibrary.alias(): PythonLibrary,
        PythonTests.alias(): PythonTests,
        PythonDistribution.alias(): PythonDistribution,
        'python_requirement_library': PythonRequirementLibrary,
        Resources.alias(): Resources,
    },
                            objects={
                                'python_requirement': PythonRequirement,
                                'python_artifact': PythonArtifact,
                                'setup_py': PythonArtifact,
                            },
                            context_aware_object_factories={
                                'python_requirements': PythonRequirements,
                                'pants_requirement': PantsRequirement,
                            })
示例#2
0
def build_file_aliases():
  return BuildFileAliases(
    targets={
      PythonBinary.alias(): TargetMacro.Factory.wrap(PythonBinary.create, PythonBinary),
      PythonLibrary.alias(): TargetMacro.Factory.wrap(PythonLibrary.create, PythonLibrary),
      PythonTests.alias(): TargetMacro.Factory.wrap(PythonTests.create, PythonTests),
      'python_requirement_library': PythonRequirementLibrary,
      Resources.alias(): Resources,
    },
    objects={
      'python_requirement': PythonRequirement,
      'python_artifact': PythonArtifact,
      'setup_py': PythonArtifact,
    },
    context_aware_object_factories={
      'python_requirements': PythonRequirements,
      'pants_requirement': PantsRequirement,
    }
  )
示例#3
0
文件: register.py 项目: benjyw/pants
def build_file_aliases():
  return BuildFileAliases(
    targets={
      PythonBinary.alias(): PythonBinary,
      PythonLibrary.alias(): PythonLibrary,
      PythonTests.alias(): PythonTests,
      PythonDistribution.alias(): PythonDistribution,
      'python_requirement_library': PythonRequirementLibrary,
      Resources.alias(): Resources,
    },
    objects={
      'python_requirement': PythonRequirement,
      'python_artifact': PythonArtifact,
      'setup_py': PythonArtifact,
    },
    context_aware_object_factories={
      'python_requirements': PythonRequirements,
      'pants_requirement': PantsRequirement,
    }
  )
示例#4
0
def build_file_aliases():
    return BuildFileAliases(
        targets={
            PythonAppV1.alias(): PythonAppV1,
            PythonBinaryV1.alias(): PythonBinaryV1,
            PythonLibraryV1.alias(): PythonLibraryV1,
            PythonTestsV1.alias(): PythonTestsV1,
            PythonDistributionV1.alias(): PythonDistributionV1,
            "python_requirement_library": PythonRequirementLibraryV1,
            PythonRequirementsFileV1.alias(): PythonRequirementsFileV1,
            UnpackedWheelsV1.alias(): UnpackedWheelsV1,
        },
        objects={
            "python_requirement": PythonRequirement,
            "python_artifact": PythonArtifact,
            "setup_py": PythonArtifact,
        },
        context_aware_object_factories={
            "python_requirements": PythonRequirements,
            PantsRequirement.alias: PantsRequirement,
        },
    )
示例#5
0
def build_file_aliases():
    return BuildFileAliases(targets={
        PythonBinary.alias():
        TargetMacro.Factory.wrap(PythonBinary.create, PythonBinary),
        PythonLibrary.alias():
        TargetMacro.Factory.wrap(PythonLibrary.create, PythonLibrary),
        PythonTests.alias():
        TargetMacro.Factory.wrap(PythonTests.create, PythonTests),
        'python_requirement_library':
        PythonRequirementLibrary,
        Resources.alias():
        Resources,
    },
                            objects={
                                'python_requirement': PythonRequirement,
                                'python_artifact': PythonArtifact,
                                'setup_py': PythonArtifact,
                            },
                            context_aware_object_factories={
                                'python_requirements': PythonRequirements,
                                'pants_requirement': PantsRequirement,
                            })