Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore ListLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Dict Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Dict Str Str Str NameLoad ListLoad Str Str ListLoad Str Str Dict Str Dict Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Str Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr ListLoad Str Str Str keyword ListLoad Str keyword Num keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Str ListLoad Str Str Str Str ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad ListLoad Str Str keyword ListLoad Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad ListLoad Str keyword ListLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str ListLoad Str keyword ListLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Str NameLoad ListLoad Str keyword ListLoad Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Dict Str Str keyword Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Dict Str ListLoad Str Str ListLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr keyword Str keyword Call NameLoad Dict Str ListLoad Str Str keyword ListLoad keyword ListLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Dict Str ListLoad Str Str keyword ListLoad keyword ListLoad Call AttributeLoad Str attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad NameLoad body Expr Str With Call NameLoad NameStore body Assign NameStore ListLoad Call AttributeLoad Str attr NameLoad Str Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd ListLoad Str NameLoad ListLoad NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Str Return For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign ListStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os N/A re pants.base.build_environment get_buildroot pants.util.contextutil temporary_dir pants.util.dirutil safe_rmtree pants_test.pants_run_integration_test PantsRunIntegrationTest shared_artifacts N/A N/A version extra_jar N/A None N/A N/A published_file_list N/A N/A N/A ivy-{0}.xml format version N/A N/A hello-greet-{0}.jar format version N/A N/A hello-greet-{0}.pom format version N/A N/A hello-greet-{0}-sources.jar format version N/A extra_jar N/A N/A N/A N/A published_file_list append extra_jar N/A N/A N/A N/A org/pantsbuild/testproject/publish/hello-greet/{0} format version published_file_list N/A publish_extra_config N/A N/A unique_config N/A N/A N/A N/A GLOBAL publish.jar N/A verify_config pythonpath backend_packages False N/A examples/src/python pants-plugins/src/python N/A example.pants_publish_plugin internal_backend.repositories N/A publish_extras N/A extra_test_jar_example unique_config N/A JarPublishIntegrationTest N/A PantsRunIntegrationTest N/A N/A GOLDEN_DATA_DIR tests/python/pants_test/tasks/jar_publish_resources/ pushdb_root N/A N/A self N/A N/A N/A N/A N/A N/A os path join N/A get_buildroot testprojects ivy pushdb N/A property setUp N/A N/A self N/A N/A N/A N/A self maxDiff None N/A N/A safe_rmtree N/A self pushdb_root N/A tearDown N/A N/A self N/A N/A N/A N/A safe_rmtree N/A self pushdb_root N/A test_scala_publish N/A N/A self N/A N/A N/A unique_artifacts N/A org/pantsbuild/testproject/publish/jvm-example-lib_2.10/0.0.1-SNAPSHOT org/pantsbuild/testproject/publish/hello/welcome_2.10/0.0.1-SNAPSHOT N/A ivy-0.0.1-SNAPSHOT.xml jvm-example-lib_2.10-0.0.1-SNAPSHOT.jar jvm-example-lib_2.10-0.0.1-SNAPSHOT.pom jvm-example-lib_2.10-0.0.1-SNAPSHOT-sources.jar N/A ivy-0.0.1-SNAPSHOT.xml welcome_2.10-0.0.1-SNAPSHOT.jar welcome_2.10-0.0.1-SNAPSHOT.pom welcome_2.10-0.0.1-SNAPSHOT-sources.jar N/A N/A N/A self publish_test testprojects/src/scala/org/pantsbuild/testproject/publish:jvm-run-example-lib N/A dict N/A N/A N/A unique_artifacts items N/A N/A N/A shared_artifacts 0.0.1-SNAPSHOT items N/A org.pantsbuild.testproject.publish/hello-greet/publish.properties org.pantsbuild.testproject.publish/jvm-example-lib_2.10/publish.properties org.pantsbuild.testproject.publish.hello/welcome_2.10/publish.properties extra_options N/A --doc-scaladoc-skip expected_primary_artifact_count 3 assert_publish_config_contents True N/A test_java_publish N/A N/A self N/A N/A N/A N/A N/A self publish_test testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet N/A shared_artifacts 0.0.1-SNAPSHOT N/A org.pantsbuild.testproject.publish/hello-greet/publish.properties N/A test_protobuf_publish N/A N/A self N/A N/A N/A unique_artifacts N/A org/pantsbuild/testproject/publish/protobuf/protobuf-java/0.0.1-SNAPSHOT org/pantsbuild/testproject/protobuf/distance/0.0.1-SNAPSHOT/ N/A ivy-0.0.1-SNAPSHOT.xml protobuf-java-0.0.1-SNAPSHOT.jar protobuf-java-0.0.1-SNAPSHOT.pom protobuf-java-0.0.1-SNAPSHOT-sources.jar N/A ivy-0.0.1-SNAPSHOT.xml distance-0.0.1-SNAPSHOT.jar distance-0.0.1-SNAPSHOT.pom distance-0.0.1-SNAPSHOT-sources.jar N/A N/A N/A self publish_test testprojects/src/java/org/pantsbuild/testproject/publish/protobuf:protobuf-java unique_artifacts N/A org.pantsbuild.testproject.publish.protobuf/protobuf-java/publish.properties org.pantsbuild.testproject.protobuf/distance/publish.properties extra_options N/A --doc-javadoc-skip expected_primary_artifact_count 2 N/A test_named_snapshot N/A N/A self N/A N/A N/A name abcdef0123456789 N/A N/A N/A self publish_test testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet N/A shared_artifacts name N/A org.pantsbuild.testproject.publish/hello-greet/publish.properties extra_options N/A N/A N/A --named-snapshot={} format name N/A test_publish_override_flag_succeeds N/A N/A self N/A N/A N/A override com.twitter.foo#baz=0.1.0 N/A N/A N/A self publish_test testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet N/A shared_artifacts 0.0.1-SNAPSHOT N/A org.pantsbuild.testproject.publish/hello-greet/publish.properties extra_options N/A N/A N/A --override={} format override N/A publish_extras_runner N/A N/A self extra_config artifact_name success_expected N/A None None True N/A N/A N/A N/A self publish_test testprojects/src/java/org/pantsbuild/testproject/publish/hello/greet N/A shared_artifacts 0.0.1-SNAPSHOT artifact_name N/A org.pantsbuild.testproject.publish/hello-greet/publish.properties extra_options N/A --doc-javadoc-skip extra_config extra_config success_expected success_expected N/A test_publish_extras_name_classifier N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A override_name classifier {target_provides_name}-extra_example classy artifact_name hello-greet-extra_example-0.0.1-SNAPSHOT-classy.jar N/A test_publish_extras_name N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A override_name {target_provides_name}-extra_example artifact_name hello-greet-extra_example-0.0.1-SNAPSHOT.jar N/A test_publish_extras_name_extension N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A override_name extension {target_provides_name}-extra_example zip artifact_name hello-greet-extra_example-0.0.1-SNAPSHOT.zip N/A test_publish_extras_extension N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A extension zip artifact_name hello-greet-0.0.1-SNAPSHOT.zip N/A test_publish_extras_extension_classifier N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A classifier extension classy zip artifact_name hello-greet-0.0.1-SNAPSHOT-classy.zip N/A test_publish_extras_classifier N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A classifier classy artifact_name hello-greet-0.0.1-SNAPSHOT-classy.jar N/A test_publish_extras_invalid_args N/A N/A self N/A N/A N/A N/A N/A self publish_extras_runner extra_config N/A publish_extra_config N/A extension jar artifact_name hello-greet-0.0.1-SNAPSHOT.jar success_expected False N/A test_scala_publish_classifiers N/A N/A self N/A N/A N/A N/A N/A self publish_test testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers N/A dict N/A org/pantsbuild/testproject/publish/classifiers_2.10/0.0.1-SNAPSHOT N/A classifiers_2.10-0.0.1-SNAPSHOT.pom ivy-0.0.1-SNAPSHOT.xml N/A assert_publish_config_contents True N/A test_override_via_coord N/A N/A self N/A N/A N/A N/A N/A self publish_test target testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers artifacts N/A dict N/A org/pantsbuild/testproject/publish/classifiers_2.10/1.2.3-SNAPSHOT N/A classifiers_2.10-1.2.3-SNAPSHOT.pom ivy-1.2.3-SNAPSHOT.xml pushdb_files N/A extra_options N/A --override=org.pantsbuild.testproject.publish#classifiers_2.10=1.2.3 assert_publish_config_contents True N/A test_override_via_address N/A N/A self N/A N/A N/A target testprojects/src/scala/org/pantsbuild/testproject/publish/classifiers N/A N/A N/A self publish_test target target artifacts N/A dict N/A org/pantsbuild/testproject/publish/classifiers_2.10/1.2.3-SNAPSHOT N/A classifiers_2.10-1.2.3-SNAPSHOT.pom ivy-1.2.3-SNAPSHOT.xml pushdb_files N/A extra_options N/A N/A N/A --override={}=1.2.3 format target assert_publish_config_contents True N/A publish_test N/A N/A self target artifacts pushdb_files extra_options extra_config extra_env expected_primary_artifact_count success_expected assert_publish_config_contents N/A None None None 1 True False N/A N/A Tests that publishing the given target results in the expected output.

    :param target: Target to test.
    :param artifacts: A map from directories to a list of expected filenames.
    :param pushdb_files: list of pushdb files that would be created if this weren't a local publish
    :param extra_options: Extra command-line options to the pants run.
    :param extra_config: Extra pants.ini configuration for the pants run.
    :param expected_primary_artifact_count: Number of artifacts we expect to be published.
    :param extra_env: Extra environment variables for the pants run.
    :param assert_publish_config_contents: Test the contents of the generated ivy and pom file.
           If set to True, compares the generated ivy.xml and pom files in
           tests/python/pants_test/tasks/jar_publish_resources/<package_name>/<artifact_name>/
     N/A N/A temporary_dir publish_dir N/A N/A options N/A N/A N/A --local={} format publish_dir --no-dryrun --force N/A extra_options N/A N/A N/A N/A options extend extra_options N/A pants_run N/A N/A self run_pants N/A N/A N/A publish.jar options N/A target config extra_config extra_env extra_env N/A success_expected N/A N/A N/A N/A self assert_success pants_run 'pants goal publish' expected success, but failed instead. N/A N/A N/A N/A self assert_failure pants_run 'pants goal publish' expected failure, but succeeded instead. N/A N/A pushdb_file pushdb_files N/A N/A pushdb_dir N/A N/A N/A os path dirname N/A N/A N/A os path join N/A self pushdb_root pushdb_file N/A N/A N/A self assertTrue N/A N/A N/A os path exists pushdb_dir N/A pushdb_file pushdb_files N/A N/A N/A N/A self assertFalse N/A N/A N/A os path exists N/A N/A N/A os path join N/A self pushdb_root pushdb_file N/A N/A directory artifact_list N/A N/A artifacts items N/A N/A artifact artifact_list N/A N/A artifact_path N/A N/A N/A os path join publish_dir directory artifact N/A N/A N/A self assertTrue N/A N/A N/A os path exists artifact_path N/A assert_publish_config_contents N/A N/A N/A N/A N/A artifact endswith xml N/A N/A artifact endswith pom N/A N/A N/A N/A self compare_file_contents artifact_path directory N/A compare_file_contents N/A N/A self artifact_path directory N/A N/A N/A 
    Tests the ivy.xml and pom
    :param artifact_path: Path of the artifact
    :param directory: Directory where the artifact resides.
    :return:
     N/A N/A package_dir artifact_name version N/A N/A directory rsplit N/A N/A os path sep 2 N/A file_name N/A N/A N/A os path basename artifact_path N/A golden_file_nm N/A N/A N/A os path join N/A JarPublishIntegrationTest GOLDEN_DATA_DIR N/A N/A package_dir replace N/A N/A os path sep . artifact_name file_name N/A N/A open artifact_path r test_file N/A N/A generated_file N/A N/A test_file read N/A N/A open golden_file_nm r golden_file N/A N/A golden_file_contents N/A N/A golden_file read N/A N/A N/A artifact_path endswith .xml N/A N/A generated_file N/A N/A re sub publication=.* /> generated_file N/A N/A N/A self assertMultiLineEqual generated_file golden_file_contents N/A N/A