Module ImportFrom alias alias alias alias alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Str attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str Assign TupleStore NameStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad Str attr keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword ListLoad keyword Num keyword Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad keyword ListLoad Str Str Str Str Str keyword Num keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str With Call AttributeLoad NameLoad attr keyword Str keyword NameLoad NameStore body Expr Call NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Call NameLoad Str Call NameLoad Str Call NameLoad Str Assign NameStore Call NameLoad NameLoad Num Str Assign NameStore DictComp SubscriptLoad NameLoad Index Num NameLoad comprehension NameStore TupleLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Dict Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Str Str Str Str Str Str Str Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad NameStore body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str FunctionDef arguments args defaults body Return TupleLoad Str Str Str Str Str decorator_list Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str FunctionDef arguments args defaults body Return TupleLoad Str Str Str Str Str decorator_list Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str FunctionDef arguments args defaults body Return TupleLoad Str Str Str Str Str decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str FunctionDef arguments args defaults body Return TupleLoad Str Str Str Str Str decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad ListLoad Num Str Dict TupleLoad Str Str ListLoad Str Str FunctionDef arguments args defaults body Return TupleLoad Str Str Str Str Str decorator_list Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Str Str keyword NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement pants.binaries.binary_util BinaryUtil pants_test.base_test BaseTest BinaryUtilTest N/A BaseTest N/A N/A Tests binary_util's pants_support_baseurls handling. MapFetcher N/A object N/A N/A Class which pretends to be a pants.net.http.Fetcher, but is actually a dictionary. __init__ N/A N/A self read_map N/A N/A N/A N/A self _map read_map N/A download N/A N/A self url listener path_or_fd N/A None None N/A N/A N/A N/A url N/A self _map N/A N/A N/A IOError N/A N/A 404: Virtual URL '{}' does not exist. format url N/A N/A path_or_fd N/A N/A N/A AssertionError Expected path_or_fd to be set N/A N/A N/A path_or_fd write N/A N/A self _map N/A url N/A path_or_fd N/A keys N/A N/A self N/A N/A N/A N/A N/A N/A self _map keys N/A values N/A N/A self N/A N/A N/A N/A N/A N/A self _map values N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A self _map N/A key N/A N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super BinaryUtilTest self setUp N/A _fake_base N/A N/A cls name N/A N/A N/A N/A N/A fake-url-{name} format name name N/A classmethod _fake_url N/A N/A cls binaries base binary_key N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp N/A N/A supportdir version name N/A binaries N/A binary_key N/A binary N/A N/A binary_util _select_binary_base_path supportdir version binary_key N/A N/A N/A {base}/{binary} format base base binary binary N/A classmethod test_nobases N/A N/A self N/A N/A N/A Tests exception handling if build support urls are improperly specified. N/A binary_util N/A BinaryUtil baseurls N/A timeout_secs 30 bootstrapdir /tmp N/A N/A N/A self assertRaises N/A binary_util NoBaseUrlsError N/A N/A binary_path N/A N/A binary_util _select_binary_base_path supportdir bin/protobuf version 2.4.1 name protoc N/A N/A N/A binary_util _select_binary_stream name protoc binary_path binary_path N/A N/A N/A N/A self fail Expected acquisition of the stream to raise. N/A test_support_url_multi N/A N/A self N/A N/A N/A Tests to make sure existing base urls function as expected. N/A count 0 N/A binary_util N/A BinaryUtil baseurls N/A BLATANTLY INVALID URL https://dl.bintray.com/pantsbuild/bin/reasonably-invalid-url https://dl.bintray.com/pantsbuild/bin/build-support https://dl.bintray.com/pantsbuild/bin/build-support https://dl.bintray.com/pantsbuild/bin/another-invalid-url timeout_secs 30 bootstrapdir /tmp N/A binary_path N/A N/A binary_util _select_binary_base_path supportdir bin/protobuf version 2.4.1 name protoc N/A N/A N/A binary_util _select_binary_stream name protoc binary_path binary_path stream N/A N/A N/A stream N/A count 1 N/A N/A N/A self assertEqual count 1 N/A test_support_url_fallback N/A N/A self N/A N/A N/A Tests fallback behavior with multiple support baseurls.

    Mocks up some dummy baseurls and then swaps out the URL reader to make sure urls are accessed
    and others are not.
     N/A N/A fake_base fake_url N/A N/A self _fake_base N/A self _fake_url N/A bases N/A N/A fake_base apple N/A fake_base orange N/A fake_base banana N/A binary_util N/A BinaryUtil bases 30 /tmp N/A binaries N/A N/A t N/A 2 t N/A t N/A N/A bin/protobuf 2.4.1 protoc N/A bin/ivy 4.3.7 ivy N/A bin/bash 4.4.3 bash N/A fetcher N/A N/A self MapFetcher N/A N/A fake_url binaries N/A bases N/A 0 protoc N/A fake_url binaries N/A bases N/A 0 ivy N/A fake_url binaries N/A bases N/A 1 bash N/A fake_url binaries N/A bases N/A 1 protoc N/A fake_url binaries N/A bases N/A 2 protoc N/A fake_url binaries N/A bases N/A 2 ivy SEEN PROTOC SEEN IVY SEEN BASH UNSEEN PROTOC 1 UNSEEN PROTOC 2 UNSEEN IVY 2 N/A unseen N/A item N/A item N/A N/A fetcher values N/A N/A item startswith SEEN  N/A N/A supportdir version name N/A N/A binaries values N/A N/A binary_path N/A N/A binary_util _select_binary_base_path supportdir supportdir version version name name N/A N/A N/A binary_util _select_binary_stream name name binary_path binary_path fetcher fetcher stream N/A N/A result N/A stream N/A N/A N/A self assertEqual result N/A SEEN  N/A N/A name upper N/A N/A N/A unseen remove result N/A N/A N/A self assertEqual 0 N/A len unseen N/A test_select_binary_base_path_linux N/A N/A self N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp uname_func N/A N/A N/A N/A N/A N/A linux dontcare1 dontcare2 dontcare3 amd64 N/A N/A N/A N/A self assertEquals supportdir/linux/x86_64/name/version N/A N/A binary_util _select_binary_base_path supportdir name version uname_func uname_func N/A test_select_binary_base_path_darwin N/A N/A self N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp uname_func N/A N/A N/A N/A N/A N/A darwin dontcare1 14.9 dontcare2 dontcare3 N/A N/A N/A N/A self assertEquals supportdir/mac/10.10/name/version N/A N/A binary_util _select_binary_base_path supportdir name version uname_func uname_func N/A test_select_binary_base_path_missing_os N/A N/A self N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp uname_func N/A N/A N/A N/A N/A N/A vms dontcare1 999.9 dontcare2 VAX9 N/A N/A N/A N/A self assertRaisesRegexp N/A BinaryUtil MissingMachineInfo Pants has no binaries for vms N/A N/A N/A N/A binary_util _select_binary_base_path supportdir name version uname_func uname_func N/A test_select_binary_base_path_missing_version N/A N/A self N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp uname_func N/A N/A N/A N/A N/A N/A darwin dontcare1 999.9 dontcare2 x86_64 N/A N/A N/A N/A self assertRaisesRegexp N/A BinaryUtil MissingMachineInfo Update --binaries-path-by-id to find binaries for darwin x86_64 999\.9\. N/A N/A N/A N/A binary_util _select_binary_base_path supportdir name version uname_func uname_func N/A test_select_binary_base_path_override N/A N/A self N/A N/A N/A binary_util N/A BinaryUtil N/A 0 /tmp N/A N/A darwin 100 N/A skynet 42 uname_func N/A N/A N/A N/A N/A N/A darwin dontcare1 100.99 dontcare2 t1000 N/A N/A N/A N/A self assertEquals supportdir/skynet/42/name/version N/A N/A binary_util _select_binary_base_path supportdir name version uname_func uname_func N/A N/A