Skip to content

Commit

Permalink
Merge 8a06c0a into 3b0bff5
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Sep 17, 2020
2 parents 3b0bff5 + 8a06c0a commit 8296e24
Show file tree
Hide file tree
Showing 35 changed files with 42 additions and 61 deletions.
Expand Up @@ -16,10 +16,9 @@
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.addresses import Address
from pants.engine.fs import DigestContents
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -13,7 +13,6 @@
from pants.core.util_rules import source_files, stripped_source_files
from pants.engine.addresses import Address
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import QueryRule
from pants.engine.target import (
GeneratedSources,
HydratedSources,
Expand All @@ -24,6 +23,7 @@
from pants.source.source_root import NoSourceRootError
from pants.testutil.external_tool_test_base import ExternalToolTestBase
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import QueryRule


class ProtobufPythonIntegrationTest(ExternalToolTestBase):
Expand Down
Expand Up @@ -17,10 +17,9 @@
from pants.backend.python.target_types import PythonLibrary, PythonRequirementLibrary
from pants.core.util_rules import stripped_source_files
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner
from pants.util.frozendict import FrozenDict


Expand Down
Expand Up @@ -22,11 +22,11 @@
from pants.backend.python.util_rules import ancestor_files
from pants.core.util_rules import stripped_source_files
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule, SubsystemRule
from pants.engine.rules import SubsystemRule
from pants.engine.target import InferredDependencies
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


def test_infer_python_imports() -> None:
Expand Down
Expand Up @@ -27,11 +27,10 @@
from pants.engine.addresses import Address
from pants.engine.fs import DigestContents, FileContent
from pants.engine.process import InteractiveRunner
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.python_interpreter_selection import skip_unless_python27_and_python3_present
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/backend/python/goals/setup_py_test.py
Expand Up @@ -44,12 +44,12 @@
from pants.engine.addresses import Address
from pants.engine.fs import Snapshot
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import QueryRule, rule
from pants.engine.rules import rule
from pants.engine.target import Targets
from pants.engine.unions import UnionRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner

_namespace_decl = "__import__('pkg_resources').declare_namespace(__name__)"

Expand Down
Expand Up @@ -12,12 +12,11 @@
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.addresses import Address
from pants.engine.fs import DigestContents, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.python_interpreter_selection import skip_unless_python27_and_python3_present
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -15,12 +15,11 @@
from pants.core.util_rules.source_files import SourceFiles, SourceFilesRequest
from pants.engine.addresses import Address
from pants.engine.fs import CreateDigest, Digest, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.python_interpreter_selection import skip_unless_python38_present
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -14,11 +14,10 @@
from pants.core.util_rules.source_files import SourceFiles, SourceFilesRequest
from pants.engine.addresses import Address
from pants.engine.fs import CreateDigest, Digest, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -12,12 +12,11 @@
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.addresses import Address
from pants.engine.fs import DigestContents, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.python_interpreter_selection import skip_unless_python27_and_python3_present
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -14,11 +14,10 @@
from pants.core.util_rules.source_files import SourceFiles, SourceFilesRequest
from pants.engine.addresses import Address
from pants.engine.fs import CreateDigest, Digest, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -15,12 +15,11 @@
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.addresses import Address
from pants.engine.fs import FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.python_interpreter_selection import skip_unless_python27_and_python3_present
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -13,11 +13,10 @@
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.addresses import Address
from pants.engine.fs import CreateDigest, Digest, FileContent
from pants.engine.rules import QueryRule
from pants.engine.target import Targets
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -12,11 +12,10 @@
from pants.backend.python.target_types import PythonRequirementLibrary, PythonRequirementsFile
from pants.base.specs import AddressSpecs, DescendantAddresses, FilesystemSpecs, Specs
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule
from pants.engine.target import Targets
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -12,11 +12,10 @@
from pants.base.specs import AddressSpecs, DescendantAddresses, FilesystemSpecs, Specs
from pants.engine.addresses import Address
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import QueryRule
from pants.engine.target import Targets
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -12,10 +12,9 @@
identify_missing_ancestor_files,
)
from pants.engine.fs import DigestContents
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -12,11 +12,10 @@
from pants.backend.python.util_rules.pex_from_targets import PexFromTargetsRequest
from pants.build_graph.address import Address
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.python.python_setup import ResolveAllConstraintsOption
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions src/python/pants/backend/python/util_rules/pex_test.py
Expand Up @@ -25,12 +25,11 @@
from pants.engine.addresses import Address
from pants.engine.fs import CreateDigest, Digest, FileContent
from pants.engine.process import Process, ProcessResult
from pants.engine.rules import QueryRule
from pants.engine.target import FieldSet
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.python.python_setup import PythonSetup
from pants.testutil.option_util import create_options_bootstrapper, create_subsystem
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner
from pants.util.frozendict import FrozenDict


Expand Down
Expand Up @@ -15,11 +15,11 @@
from pants.backend.python.util_rules.python_sources import rules as python_sources_rules
from pants.core.target_types import Files, Resources
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule
from pants.engine.target import Sources, Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.external_tool_test_base import ExternalToolTestBase
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import QueryRule


class PythonTarget(Target):
Expand Down
3 changes: 1 addition & 2 deletions src/python/pants/core/goals/repl_integration_test.py
Expand Up @@ -12,9 +12,8 @@
from pants.core.goals.repl import rules as repl_rules
from pants.core.util_rules.pants_environment import PantsEnvironment
from pants.engine.process import Process
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions src/python/pants/core/util_rules/archive_test.py
Expand Up @@ -10,8 +10,7 @@
from pants.core.util_rules.archive import ExtractedDigest, MaybeExtractable
from pants.core.util_rules.archive import rules as archive_rules
from pants.engine.fs import DigestContents, FileContent
from pants.engine.rules import QueryRule
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -13,11 +13,10 @@
)
from pants.core.util_rules.filter_empty_sources import rules as filter_empty_sources_rules
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule
from pants.engine.target import FieldSet, Sources, Tags, Target
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
3 changes: 1 addition & 2 deletions src/python/pants/core/util_rules/source_files_test.py
Expand Up @@ -12,11 +12,10 @@
from pants.core.util_rules.source_files import SourceFiles, SourceFilesRequest
from pants.core.util_rules.source_files import rules as source_files_rules
from pants.engine.addresses import Address
from pants.engine.rules import QueryRule
from pants.engine.target import Sources as SourcesField
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
Expand Up @@ -11,10 +11,9 @@
from pants.core.util_rules.stripped_source_files import StrippedSourceFiles
from pants.engine.fs import EMPTY_SNAPSHOT
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import QueryRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants/engine/fs_test.py
Expand Up @@ -39,7 +39,7 @@
from pants.engine.fs import rules as fs_rules
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.internals.scheduler_test_base import SchedulerTestBase
from pants.engine.rules import QueryRule
from pants.testutil.rule_runner import QueryRule
from pants.testutil.test_base import TestBase
from pants.util.collections import assert_single_element
from pants.util.contextutil import http_server, temporary_dir
Expand Down
3 changes: 1 addition & 2 deletions src/python/pants/engine/internals/build_files_test.py
Expand Up @@ -34,12 +34,11 @@
from pants.engine.internals.parser import BuildFilePreludeSymbols, Parser
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.internals.target_adaptor import TargetAdaptor
from pants.engine.rules import QueryRule
from pants.engine.target import Dependencies, Sources, Tags, Target
from pants.option.global_options import GlobalOptions
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper, create_subsystem
from pants.testutil.rule_runner import MockGet, RuleRunner, run_rule_with_mocks
from pants.testutil.rule_runner import MockGet, QueryRule, RuleRunner, run_rule_with_mocks
from pants.util.frozendict import FrozenDict


Expand Down
3 changes: 2 additions & 1 deletion src/python/pants/engine/internals/engine_test.py
Expand Up @@ -25,11 +25,12 @@
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.internals.scheduler_test_base import SchedulerTestBase
from pants.engine.process import Process, ProcessResult
from pants.engine.rules import Get, MultiGet, QueryRule, rule
from pants.engine.rules import Get, MultiGet, rule
from pants.reporting.streaming_workunit_handler import (
StreamingWorkunitContext,
StreamingWorkunitHandler,
)
from pants.testutil.rule_runner import QueryRule
from pants.testutil.test_base import TestBase
from pants.util.logging import LogLevel

Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/engine/internals/graph_test.py
Expand Up @@ -45,7 +45,7 @@
parse_dependencies_field,
)
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import Get, MultiGet, QueryRule, rule
from pants.engine.rules import Get, MultiGet, rule
from pants.engine.target import (
Dependencies,
DependenciesRequest,
Expand All @@ -72,7 +72,7 @@
from pants.engine.unions import UnionMembership, UnionRule, union
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner
from pants.testutil.test_base import TestBase
from pants.util.ordered_set import FrozenOrderedSet

Expand Down
4 changes: 2 additions & 2 deletions src/python/pants/engine/internals/options_parsing_test.py
Expand Up @@ -3,12 +3,12 @@

import pytest

from pants.engine.rules import QueryRule, SubsystemRule
from pants.engine.rules import SubsystemRule
from pants.option.options_bootstrapper import OptionsBootstrapper
from pants.option.scope import GLOBAL_SCOPE, Scope, ScopedOptions
from pants.python.python_setup import PythonSetup
from pants.testutil.option_util import create_options_bootstrapper
from pants.testutil.rule_runner import RuleRunner
from pants.testutil.rule_runner import QueryRule, RuleRunner
from pants.util.logging import LogLevel


Expand Down
3 changes: 2 additions & 1 deletion src/python/pants/engine/internals/scheduler_test.py
Expand Up @@ -12,8 +12,9 @@
remove_locations_from_traceback,
)
from pants.engine.internals.scheduler import ExecutionError
from pants.engine.rules import Get, QueryRule, rule
from pants.engine.rules import Get, rule
from pants.engine.unions import UnionRule, union
from pants.testutil.rule_runner import QueryRule
from pants.testutil.test_base import TestBase


Expand Down

0 comments on commit 8296e24

Please sign in to comment.