Skip to content

Instantly share code, notes, and snippets.

@mateor
Created April 20, 2016 16:53
Show Gist options
  • Save mateor/c5eb759508d023448ac2affaf3f451df to your computer and use it in GitHub Desktop.
Save mateor/c5eb759508d023448ac2affaf3f451df to your computer and use it in GitHub Desktop.
4sq API usage
from pants.backend.codegen.targets.python_thrift_library import PythonThriftLibrary
from pants.backend.codegen.tasks.simple_codegen_task import SimpleCodegenTask
from pants.backend.jvm.jar_dependency_utils import M2Coordinate, ResolvedJar
from pants.backend.jvm.repository import Repository
from pants.backend.jvm.subsystems.scala_platform import ScalaPlatform
from pants.backend.jvm.targets.exclude import Exclude
from pants.backend.jvm.targets.exportable_jvm_library import ExportableJvmLibrary
from pants.backend.jvm.targets.jarable import Jarable
from pants.backend.jvm.targets.jar_dependency import JarDependency
from pants.backend.jvm.targets.jar_library import JarLibrary
from pants.backend.jvm.targets.java_library import JavaLibrary
from pants.backend.jvm.targets.java_tests import JavaTests
from pants.backend.jvm.targets.jvm_app import BundleProps
from pants.backend.jvm.targets.jvm_app import JvmApp
from pants.backend.jvm.targets.jvm_binary import JvmBinary
from pants.backend.jvm.targets.jvm_target import JvmTarget
from pants.backend.jvm.targets.scala_library import ScalaLibrary
from pants.backend.jvm.tasks.bundle_create import BundleCreate
from pants.backend.jvm.tasks.classpath_products import ClasspathEntry
from pants.backend.jvm.tasks.classpath_products import ClasspathProducts
from pants.backend.jvm.tasks.classpath_util import ClasspathUtil, MissingClasspathEntryError
from pants.backend.jvm.tasks.jar_task import JarBuilderTask
from pants.backend.jvm.tasks.jvm_binary_task import JvmBinaryTask
from pants.backend.jvm.tasks.jvm_tool_task_mixin import JvmToolTaskMixin
from pants.backend.jvm.tasks.nailgun_task import NailgunTask
from pants.backend.jvm.tasks.scala_repl import ScalaRepl
from pants.backend.python.python_requirement import PythonRequirement
from pants.backend.python.targets.python_binary import PythonBinary
from pants.backend.python.targets.python_library import PythonLibrary
from pants.backend.python.targets.python_requirement_library import PythonRequirementLibrary
from pants.backend.python.targets.python_target import PythonTarget
from pants.backend.python.targets.python_tests import PythonTests
from pants.backend.python.tasks.pytest_run import PytestRun
from pants.base.build_environment import get_buildroot
from pants.base.build_environment import get_buildroot, set_scm
from pants.base.build_environment import get_scm
from pants.base.build_file import BuildFile
from pants.base.cmd_line_spec_parser import CmdLineSpecParser
from pants.base.exceptions import TaskError
from pants.base.exceptions import TestFailedTaskError
from pants.base.fingerprint_strategy import DefaultFingerprintStrategy
from pants.base.fingerprint_strategy import FingerprintStrategy
from pants.base.generator import Generator, TemplateData
from pants.base.payload_field import PrimitiveField
from pants.base.payload_field import PrimitiveField, stable_json_sha1
from pants.base.payload_field import stable_json_sha1
from pants.base.payload import Payload
from pants.base.specs import DescendantAddresses
from pants.base.workunit import WorkUnitLabel
from pants.base.workunit import WorkUnit, WorkUnitLabel
from pants.binaries.thrift_binary import ThriftBinary
from pants.build_graph.address import Address
from pants.build_graph.address import Address, BuildFileAddress, parse_spec
from pants.build_graph.address_lookup_error import AddressLookupError
from pants.build_graph.build_file_aliases import BuildFileAliases
from pants.build_graph.resources import Resources
from pants.build_graph.source_mapper import LazySourceMapper
from pants.build_graph.target import Target
from pants.contrib.buildgen.build_file_manipulator import BuildFileManipulator
from pants.fs.archive import JAR
from pants.goal.goal import Goal
from pants.goal.task_registrar import TaskRegistrar as task
from pants.invalidation.cache_manager import VersionedTargetSet
from pants.ivy.bootstrapper import Bootstrapper
from pants.ivy.ivy import Ivy
from pants.option.custom_types import target_option
from pants.scm.git import Git
from pants.scm.scm import Scm
from pants.source.payload_fields import SourcesField
from pants.subsystem.subsystem import Subsystem
from pants.task.console_task import ConsoleTask
from pants.task.task import Task
from pants.util.dirutil import safe_mkdir, safe_open, safe_rmtree
from pants.util.memo import memoized_property
from pants.util.strutil import safe_shlex_split
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment