Beispiel #1
0
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,
                            })
Beispiel #2
0
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,
    }
  )
Beispiel #3
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,
        },
    )