Module ImportFrom alias alias alias alias alias alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad For NameStore Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad If NameLoad body Assign NameStore NameLoad For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Break If UnaryOpNot NameLoad body Return NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad ListLoad keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad ListLoad keyword Str keyword NameLoad Return Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad Call NameLoad NameLoad NameLoad Assign NameStore ListLoad With Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad keyword NameLoad NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Lambda arguments args defaults Dict Assign SubscriptStore NameLoad Index NameLoad ListLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A logging N/A os N/A re N/A shutil hashlib sha1 twitter.common.dirutil.fileset fnmatch_translate_extended pants.backend.jvm.targets.unpacked_jars UnpackedJars pants.backend.jvm.tasks.jar_import_products JarImportProducts pants.base.build_environment get_buildroot pants.base.fingerprint_strategy DefaultFingerprintHashingMixin FingerprintStrategy pants.fs.archive ZIP pants.task.task Task N/A logger N/A N/A logging getLogger __name__ UnpackJarsFingerprintStrategy N/A DefaultFingerprintHashingMixin FingerprintStrategy N/A compute_fingerprint N/A N/A self target N/A N/A N/A UnpackedJars targets need to be re-unpacked if any of its configuration changes or any of
    the jars they import have changed.
     N/A N/A isinstance target UnpackedJars N/A N/A hasher N/A sha1 N/A cache_key N/A sorted N/A N/A N/A jar cache_key N/A jar N/A target imported_jars N/A N/A N/A N/A hasher update cache_key N/A N/A N/A hasher update N/A N/A N/A target payload fingerprint N/A N/A N/A hasher hexdigest N/A None N/A N/A UnpackJars N/A Task N/A N/A Unpack artifacts specified by unpacked_jars() targets.

  Adds an entry to SourceRoot for the contents.

  :API: public
   InvalidPatternError N/A Exception N/A N/A Raised if a pattern can't be compiled for including or excluding args N/A MissingUnpackedDirsError N/A Exception N/A N/A Raised if a directory that is expected to be unpacked doesn't exist. N/A product_types N/A N/A cls N/A N/A N/A N/A unpacked_archives N/A classmethod prepare N/A N/A cls options round_manager N/A N/A N/A N/A N/A N/A super UnpackJars cls prepare options round_manager N/A N/A N/A round_manager require_data JarImportProducts N/A classmethod _unpack_dir N/A N/A self unpacked_jars N/A N/A N/A N/A N/A N/A os path normpath N/A N/A N/A os path join N/A self _workdir N/A unpacked_jars id N/A _file_filter N/A N/A cls filename include_patterns exclude_patterns N/A N/A N/A :returns: `True` if the file should be allowed through the filter. N/A exclude_pattern exclude_patterns N/A N/A N/A N/A exclude_pattern match filename N/A N/A False N/A include_patterns N/A N/A found False N/A include_pattern include_patterns N/A N/A N/A N/A include_pattern match filename N/A N/A found True N/A N/A N/A found N/A N/A False N/A True N/A classmethod _compile_patterns N/A N/A cls patterns field_name spec N/A Unknown Unknown N/A N/A compiled_patterns N/A N/A p patterns N/A N/A N/A N/A N/A N/A compiled_patterns append N/A N/A re compile N/A fnmatch_translate_extended p N/A N/A N/A N/A TypeError N/A re error N/A e N/A N/A N/A N/A cls InvalidPatternError N/A N/A In {spec}, "{field_value}" in {field_name} can't be compiled: {msg} format field_name field_name field_value p spec spec msg e N/A compiled_patterns N/A classmethod calculate_unpack_filter N/A N/A cls includes excludes spec N/A None None None N/A N/A Take regex patterns and return a filter function.

    :param list includes: List of include patterns to pass to _file_filter.
    :param list excludes: List of exclude patterns to pass to _file_filter.
     N/A include_patterns N/A N/A cls _compile_patterns N/A includes N/A field_name include_patterns spec spec N/A exclude_patterns N/A N/A cls _compile_patterns N/A excludes N/A field_name exclude_patterns spec spec N/A N/A N/A N/A f N/A N/A N/A cls _file_filter f include_patterns exclude_patterns N/A classmethod get_unpack_filter N/A N/A cls unpacked_jars N/A N/A N/A Calculate a filter function from the include/exclude patterns of a Target.

    :param Target unpacked_jars: A target with include_patterns and exclude_patterns attributes.
     N/A N/A N/A cls calculate_unpack_filter includes N/A N/A unpacked_jars payload include_patterns excludes N/A N/A unpacked_jars payload exclude_patterns spec N/A N/A unpacked_jars address spec N/A classmethod _unpack N/A N/A self unpacked_jars N/A N/A N/A Extracts files from the downloaded jar files and places them in a work directory.

    :param UnpackedJars unpacked_jars: target referencing jar_libraries to unpack.
     N/A unpack_dir N/A N/A self _unpack_dir unpacked_jars N/A N/A N/A N/A os path exists unpack_dir N/A N/A N/A N/A shutil rmtree unpack_dir N/A N/A N/A N/A N/A os path exists unpack_dir N/A N/A N/A N/A os makedirs unpack_dir N/A unpack_filter N/A N/A self get_unpack_filter unpacked_jars N/A jar_import_products N/A N/A N/A N/A self context products get_data JarImportProducts N/A N/A coordinate jar_path N/A N/A jar_import_products imports unpacked_jars N/A N/A N/A N/A N/A N/A self context log debug N/A N/A Unpacking jar {coordinate} from {jar_path} to {unpack_dir}. format coordinate coordinate jar_path jar_path unpack_dir unpack_dir N/A N/A N/A ZIP extract jar_path unpack_dir filter_func unpack_filter N/A execute N/A N/A self N/A N/A N/A addresses N/A N/A target address N/A target N/A N/A N/A self context targets N/A closure N/A N/A N/A N/A self context build_graph transitive_subgraph_of_addresses addresses N/A unpacked_jars_list N/A t N/A t closure N/A isinstance t UnpackedJars N/A unpacked_targets N/A N/A N/A N/A self invalidated unpacked_jars_list fingerprint_strategy N/A UnpackJarsFingerprintStrategy invalidate_dependents True invalidation_check N/A N/A N/A invalidation_check invalid_vts N/A N/A N/A N/A unpacked_targets extend N/A N/A vt target N/A vt N/A invalidation_check invalid_vts N/A target unpacked_targets N/A N/A N/A N/A self _unpack target N/A unpacked_jars_target unpacked_jars_list N/A N/A unpack_dir N/A N/A self _unpack_dir unpacked_jars_target N/A N/A N/A N/A N/A N/A os path exists unpack_dir N/A N/A N/A os path isdir unpack_dir N/A N/A N/A N/A self MissingUnpackedDirsError N/A N/A Expected {unpack_dir} to exist containing unpacked files for {target} format unpack_dir unpack_dir target N/A N/A unpacked_jars_target address spec N/A found_files N/A N/A N/A root dirs files N/A N/A os walk unpack_dir N/A N/A f files N/A N/A relpath N/A N/A N/A os path relpath N/A N/A N/A os path join root f unpack_dir N/A N/A N/A found_files append relpath N/A rel_unpack_dir N/A N/A N/A os path relpath unpack_dir N/A get_buildroot N/A unpacked_sources_product N/A N/A N/A N/A self context products get_data unpacked_archives N/A N/A N/A N/A N/A N/A N/A unpacked_sources_product N/A unpacked_jars_target N/A found_files rel_unpack_dir N/A unpacked_targets N/A N/A