Classes | |
| class | Choices |
| class | FakeSelects |
Functions | |
| def | buildozer (cmd, target) |
| def | buildozer_set_list (name, values, target, via="") |
| def | grpc_cc_library (name, hdrs=[], public_hdrs=[], srcs=[], select_deps=None, tags=[], deps=[], external_deps=[], **kwargs) |
| def | score_best (proposed, existing) |
| def | score_edit_distance (proposed, existing) |
| def | score_list_size (proposed, existing) |
| def | total_avoidness (proposal) |
| def | total_score (proposal) |
Variables | |
| args = parser.parse_args() | |
| avoidness = collections.defaultdict(int) | |
| list | buildozer_commands = [] |
| list | c = ['tools/distrib/buildozer.sh', '-f', temp.name] |
| dictionary | consumes = {} |
| default | |
| string | dep = '_'.join(path[:-1] + [file[1]]) |
| deps = Choices() | |
| bool | error = False |
| dictionary | EXTERNAL_DEPS |
| external_deps = Choices() | |
| file = file.split('.') | |
| hdrs = sorted(consumes[library]) | |
| help | |
| dictionary | INTERNAL_DEPS |
| bool | is_sys_include = False |
| nargs | |
| needs_codegen_base_src = set() | |
| no_update = set() | |
| tuple | ok_statuses = (0, 3) |
| dictionary | original_deps = {} |
| dictionary | original_external_deps = {} |
| parser = argparse.ArgumentParser(description='Fix build dependencies') | |
| path = path.split('/') | |
| r = subprocess.call(c) | |
| ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) | |
| dictionary | SCORERS |
| scores = collections.defaultdict(int) | |
| string | target = ':' + library |
| temp = tempfile.NamedTemporaryFile() | |
| trail = hdr[len('opencensus/'):] | |
| type | |
| vendors = collections.defaultdict(list) | |
| via | |
| def fix_build_deps.buildozer | ( | cmd, | |
| target | |||
| ) |
Definition at line 279 of file fix_build_deps.py.
| def fix_build_deps.buildozer_set_list | ( | name, | |
| values, | |||
| target, | |||
via = "" |
|||
| ) |
Definition at line 283 of file fix_build_deps.py.
| def fix_build_deps.grpc_cc_library | ( | name, | |
hdrs = [], |
|||
public_hdrs = [], |
|||
srcs = [], |
|||
select_deps = None, |
|||
tags = [], |
|||
deps = [], |
|||
external_deps = [], |
|||
| ** | kwargs | ||
| ) |
Definition at line 242 of file fix_build_deps.py.
| def fix_build_deps.score_best | ( | proposed, | |
| existing | |||
| ) |
Score a proposed change primarily by dependency score
Definition at line 320 of file fix_build_deps.py.
| def fix_build_deps.score_edit_distance | ( | proposed, | |
| existing | |||
| ) |
Score a proposed change primarily by edit distance
Definition at line 295 of file fix_build_deps.py.
| def fix_build_deps.score_list_size | ( | proposed, | |
| existing | |||
| ) |
Score a proposed change primarily by number of dependencies
Definition at line 315 of file fix_build_deps.py.
| def fix_build_deps.total_avoidness | ( | proposal | ) |
Definition at line 311 of file fix_build_deps.py.
| def fix_build_deps.total_score | ( | proposal | ) |
Definition at line 307 of file fix_build_deps.py.
| fix_build_deps.args = parser.parse_args() |
Definition at line 341 of file fix_build_deps.py.
| fix_build_deps.avoidness = collections.defaultdict(int) |
Definition at line 32 of file fix_build_deps.py.
| list fix_build_deps.buildozer_commands = [] |
Definition at line 35 of file fix_build_deps.py.
| list fix_build_deps.c = ['tools/distrib/buildozer.sh', '-f', temp.name] |
Definition at line 490 of file fix_build_deps.py.
| dictionary fix_build_deps.consumes = {} |
Definition at line 33 of file fix_build_deps.py.
| fix_build_deps.default |
Definition at line 334 of file fix_build_deps.py.
Definition at line 439 of file fix_build_deps.py.
| fix_build_deps.deps = Choices() |
Definition at line 403 of file fix_build_deps.py.
| bool fix_build_deps.error = False |
Definition at line 396 of file fix_build_deps.py.
| dictionary fix_build_deps.EXTERNAL_DEPS |
Definition at line 42 of file fix_build_deps.py.
| fix_build_deps.external_deps = Choices() |
Definition at line 404 of file fix_build_deps.py.
| fix_build_deps.file = file.split('.') |
Definition at line 436 of file fix_build_deps.py.
| fix_build_deps.hdrs = sorted(consumes[library]) |
Definition at line 402 of file fix_build_deps.py.
| fix_build_deps.help |
Definition at line 335 of file fix_build_deps.py.
| dictionary fix_build_deps.INTERNAL_DEPS |
Definition at line 186 of file fix_build_deps.py.
| bool fix_build_deps.is_sys_include = False |
Definition at line 451 of file fix_build_deps.py.
| fix_build_deps.nargs |
Definition at line 333 of file fix_build_deps.py.
| fix_build_deps.needs_codegen_base_src = set() |
Definition at line 36 of file fix_build_deps.py.
| fix_build_deps.no_update = set() |
Definition at line 34 of file fix_build_deps.py.
| tuple fix_build_deps.ok_statuses = (0, 3) |
Definition at line 487 of file fix_build_deps.py.
| dictionary fix_build_deps.original_deps = {} |
Definition at line 37 of file fix_build_deps.py.
| dictionary fix_build_deps.original_external_deps = {} |
Definition at line 38 of file fix_build_deps.py.
| fix_build_deps.parser = argparse.ArgumentParser(description='Fix build dependencies') |
Definition at line 331 of file fix_build_deps.py.
| fix_build_deps.path = path.split('/') |
Definition at line 436 of file fix_build_deps.py.
| fix_build_deps.r = subprocess.call(c) |
Definition at line 491 of file fix_build_deps.py.
| fix_build_deps.ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..')) |
Definition at line 27 of file fix_build_deps.py.
| dictionary fix_build_deps.SCORERS |
Definition at line 325 of file fix_build_deps.py.
| fix_build_deps.scores = collections.defaultdict(int) |
Definition at line 31 of file fix_build_deps.py.
| fix_build_deps.target = ':' + library |
Definition at line 482 of file fix_build_deps.py.
| fix_build_deps.temp = tempfile.NamedTemporaryFile() |
Definition at line 488 of file fix_build_deps.py.
| fix_build_deps.trail = hdr[len('opencensus/'):] |
Definition at line 430 of file fix_build_deps.py.
| fix_build_deps.type |
Definition at line 337 of file fix_build_deps.py.
| fix_build_deps.vendors = collections.defaultdict(list) |
Definition at line 30 of file fix_build_deps.py.
| fix_build_deps.via |
Definition at line 483 of file fix_build_deps.py.