Skip to content

Commit

Permalink
Merge 723eccb into 70b92c7
Browse files Browse the repository at this point in the history
  • Loading branch information
mateor committed May 31, 2015
2 parents 70b92c7 + 723eccb commit 3bbe0ce
Show file tree
Hide file tree
Showing 45 changed files with 5 additions and 66 deletions.
1 change: 0 additions & 1 deletion build-support/bin/check_header_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import re
import sys


EXPECTED_HEADER="""# coding=utf-8
# Copyright YYYY Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import tempfile
from contextlib import contextmanager
from textwrap import dedent

from pants.base.address import SyntheticAddress
from pants_test.base_test import BaseTest

from pants.contrib.buildgen.build_file_manipulator import (BuildFileManipulator,
BuildTargetParseError, DependencySpec)
BuildTargetParseError)


class BuildFileManipulatorTest(BaseTest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

from pants.base.payload import Payload
from pants.base.payload_field import SourcesField
from pants.base.target import Target


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from pants.base.workunit import WorkUnit
from pants.util.dirutil import safe_mkdir

from pants.contrib.cpp.targets.cpp_binary import CppBinary
from pants.contrib.cpp.targets.cpp_library import CppLibrary
from pants.contrib.cpp.tasks.cpp_task import CppTask


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from pants.base.workunit import WorkUnit
from pants.util.dirutil import safe_mkdir

from pants.contrib.cpp.targets.cpp_library import CppLibrary
from pants.contrib.cpp.tasks.cpp_task import CppTask


Expand Down
1 change: 0 additions & 1 deletion contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import os

from pants.base.workunit import WorkUnit
from pants.util.dirutil import safe_mkdir

from pants.contrib.cpp.targets.cpp_binary import CppBinary
from pants.contrib.cpp.tasks.cpp_task import CppTask
Expand Down
1 change: 0 additions & 1 deletion contrib/cpp/src/python/pants/contrib/cpp/tasks/cpp_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os
import subprocess

from pants.backend.core.tasks.task import Task
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import unittest
from contextlib import contextmanager

from pants.util.contextutil import environment_as, temporary_dir, temporary_file
from pants.util.contextutil import environment_as, temporary_dir
from pants.util.dirutil import chmod_plus_x, touch

from pants.contrib.cpp.toolchain.cpp_toolchain import CppToolchain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import glob
import os
import re
from collections import defaultdict
from itertools import chain

from pants.backend.jvm.targets.java_library import JavaLibrary
from pants.backend.jvm.targets.scala_library import ScalaLibrary
Expand Down
1 change: 1 addition & 0 deletions migrations/0.0.24/src/python/publish_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import re
import sys


if len(sys.argv) != 3:
print("Usage: publish_migration.py <publish.properties> <directory to write new files>")
exit(1)
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/codegen/targets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ python_library(
'python_thrift_library.py',
],
dependencies = [
'3rdparty/python/twitter/commons:twitter.common.collections',
'src/python/pants/backend/python/targets:python',
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

from twitter.common.collections import OrderedSet

from pants.backend.python.targets.python_target import PythonTarget


Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/backend/core/targets/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ python_library(
'resources.py',
],
dependencies = [
'src/python/pants/base:address',
'src/python/pants/base:build_environment',
'src/python/pants/base:payload',
'src/python/pants/base:payload_field',
'src/python/pants/base:target',
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/backend/core/targets/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

from pants.base.address import SyntheticAddress
from pants.base.build_environment import get_buildroot
from pants.base.payload import Payload
from pants.base.payload_field import PayloadField, PrimitiveField, combine_hashes
from pants.base.target import Target
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/backend/core/tasks/filemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os

from pants.backend.core.tasks.console_task import ConsoleTask


Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/jvm/targets/java_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

from pants.backend.jvm.targets.jvm_target import JvmTarget
from pants.base.exceptions import TargetDefinitionException


class JavaTests(JvmTarget):
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/jvm/tasks/checkstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from twitter.common.collections import OrderedSet

from pants.backend.jvm.tasks.jvm_tool_task_mixin import JvmToolTaskMixin
from pants.backend.jvm.tasks.nailgun_task import NailgunTask
from pants.base.exceptions import TaskError
from pants.base.target import Target
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/backend/jvm/tasks/jar_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from pants.backend.jvm.subsystems.jar_tool import JarTool
from pants.backend.jvm.targets.java_agent import JavaAgent
from pants.backend.jvm.targets.jvm_app import JvmApp
from pants.backend.jvm.targets.jvm_binary import Duplicate, JarRules, JvmBinary, Skip
from pants.backend.jvm.tasks.nailgun_task import NailgunTask
from pants.base.exceptions import TaskError
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/tasks/setup_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from pants.backend.python.thrift_builder import PythonThriftBuilder
from pants.base.address_lookup_error import AddressLookupError
from pants.base.build_environment import get_buildroot
from pants.base.build_graph import BuildGraph, sort_targets
from pants.base.build_graph import sort_targets
from pants.base.exceptions import TargetDefinitionException, TaskError
from pants.util.dirutil import safe_rmtree, safe_walk
from pants.util.meta import AbstractClass
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ python_library(
name = 'lazy_source_mapper',
sources = ['lazy_source_mapper.py'],
dependencies = [
':build_file',
':build_environment',
]
)
Expand Down Expand Up @@ -285,7 +284,6 @@ python_library(
'3rdparty/python/twitter/commons:twitter.common.collections',
':address',
':build_environment',
':build_manual',
':fingerprint_strategy',
':hash_utils',
':lazy_source_mapper',
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/base/lazy_source_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from collections import defaultdict

from pants.base.build_environment import get_buildroot
from pants.base.build_file import BuildFile


class LazySourceMapper(object):
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/base/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import functools
import os
from hashlib import sha1

Expand All @@ -14,7 +13,6 @@
from pants.backend.core.wrapped_globs import FilesetWithSpec
from pants.base.address import Addresses, SyntheticAddress
from pants.base.build_environment import get_buildroot
from pants.base.build_manual import manual
from pants.base.exceptions import TargetDefinitionException
from pants.base.fingerprint_strategy import DefaultFingerprintStrategy
from pants.base.hash_utils import hash_all
Expand Down
1 change: 0 additions & 1 deletion src/python/pants/base/worker_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

import multiprocessing
import os
import signal
import sys
import thread
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/bin/pants_exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import traceback
import warnings

from pants.base.build_environment import get_buildroot, pants_version
from pants.base.build_environment import get_buildroot
from pants.bin.goal_runner import GoalRunner


Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/cache/local_artifact_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@

import logging
import os
import shutil
import uuid
from contextlib import contextmanager

from pants.cache.artifact import TarballArtifact
Expand Down
3 changes: 0 additions & 3 deletions src/python/pants/cache/restful_artifact_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
import requests
from requests import RequestException

from pants.cache.artifact import TarballArtifact
from pants.cache.artifact_cache import (ArtifactCache, ArtifactCacheError,
NonfatalArtifactCacheError, UnreadableArtifact)
from pants.cache.local_artifact_cache import TempLocalArtifactCache
from pants.util.contextutil import temporary_dir, temporary_file, temporary_file_path


logger = logging.getLogger(__name__)
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/goal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ python_library(
name = 'task_registrar',
sources = ['task_registrar.py'],
dependencies = [
':error',
':goal',
'src/python/pants/backend/core/tasks:task',
],
)

Expand Down
4 changes: 0 additions & 4 deletions src/python/pants/goal/task_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import functools
import inspect
import sys
import traceback
from textwrap import dedent

from pants.backend.core.tasks.task import Task
from pants.goal.error import GoalError
from pants.goal.goal import Goal


Expand Down
1 change: 0 additions & 1 deletion src/python/pants/process/pidlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import logging
import sys

import lockfile
import psutil
from lockfile import pidlockfile

Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ python_tests(
dependencies = [
':base_test',
'src/python/pants:binary_util',
'tests/python/pants_test/base:context_utils',
]
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from pants.backend.codegen.targets.java_protobuf_library import JavaProtobufLibrary
from pants.backend.jvm.targets.jar_dependency import JarDependency
from pants.backend.jvm.targets.jar_library import JarLibrary
from pants.backend.jvm.targets.jvm_target import JvmTarget
from pants.base.build_file_aliases import BuildFileAliases
from pants_test.base_test import BaseTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

from textwrap import dedent

from pants.backend.jvm.targets.jar_dependency import IvyArtifact, JarDependency
from pants_test.base_test import BaseTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

import xml.etree.ElementTree as ET
from contextlib import contextmanager

from pants_test.backend.jvm.tasks.jvm_compile.base_compile_integration_test import BaseCompileIT
from pants_test.testutils.compile_strategy_utils import provide_compile_strategies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os

from pants.backend.jvm.tasks.jvm_compile.resource_mapping import ResourceMapping
from pants_test.base_test import BaseTest

Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ python_tests(
sources = ['test_cmd_line_spec_parser.py'],
dependencies = [
'3rdparty/python/twitter/commons:twitter.common.collections',
'src/python/pants/base:build_file',
'src/python/pants/base:build_file_aliases',
'src/python/pants/base:cmd_line_spec_parser',
'tests/python/pants_test:base_test',
Expand Down
2 changes: 0 additions & 2 deletions tests/python/pants_test/base/test_build_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

from textwrap import dedent

from pants.base.address import SyntheticAddress, parse_spec
from pants.base.address_lookup_error import AddressLookupError
from pants.base.build_graph import BuildGraph
Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/base/test_cmd_line_spec_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import re

from pants.base.address import SyntheticAddress
from pants.base.build_file import BuildFile
from pants.base.build_file_aliases import BuildFileAliases
from pants.base.cmd_line_spec_parser import CmdLineSpecParser
from pants.base.target import Target
Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/base/test_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pants.backend.core.wrapped_globs import Globs
from pants.backend.jvm.targets.java_library import JavaLibrary
from pants.base.build_file_aliases import BuildFileAliases
from pants.base.exceptions import TargetDefinitionException
from pants.base.payload import Payload, PayloadFieldAlreadyDefinedError, PayloadFrozenError
from pants.base.payload_field import PrimitiveField
from pants_test.base_test import BaseTest
Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/base/test_scm_build_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os
import subprocess

from twitter.common.collections import OrderedSet
Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/targets/test_python_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import pytest

from pants.backend.python.targets.python_binary import PythonBinary
from pants.base.address import SyntheticAddress
from pants.base.exceptions import TargetDefinitionException
from pants_test.base_test import BaseTest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

import os
import unittest
from xml.etree import ElementTree

from pants.util.contextutil import temporary_dir
Expand Down
1 change: 0 additions & 1 deletion tests/python/pants_test/tasks/test_jvm_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
unicode_literals, with_statement)

from pants.backend.jvm.tasks.jvm_task import JvmTask
from pants.base.exceptions import TaskError
from pants.util.dirutil import safe_mkdtemp, safe_rmtree
from pants_test.tasks.task_test_base import TaskTestBase

Expand Down
2 changes: 0 additions & 2 deletions tests/python/pants_test/tasks/test_targets_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os.path

from pants.backend.core.tasks.targets_help import TargetsHelp
from pants_test.tasks.task_test_base import ConsoleTaskTestBase

Expand Down

0 comments on commit 3bbe0ce

Please sign in to comment.