libv8 4.5.95.5 → 5.0.71.48.0beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +45 -19
- data/CHANGELOG.md +14 -0
- data/README.md +30 -15
- data/Rakefile +7 -6
- data/ext/libv8/arch.rb +5 -4
- data/ext/libv8/builder.rb +25 -19
- data/ext/libv8/compiler.rb +6 -33
- data/ext/libv8/location.rb +7 -8
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/build-standalone-static-library.patch +14 -0
- data/patches/disable-building-tests.patch +48 -10
- data/patches/fPIC-for-static.patch +3 -3
- data/release/x86-linux/Vagrantfile +8 -4
- data/release/x86_64-freebsd10/Vagrantfile +86 -0
- data/release/x86_64-linux/Vagrantfile +8 -4
- data/spec/compiler_spec.rb +5 -29
- data/spec/support/compiler_helpers.rb +2 -4
- data/vendor/depot_tools/.gitignore +15 -3
- data/vendor/depot_tools/OWNERS +2 -2
- data/vendor/depot_tools/PRESUBMIT.py +4 -2
- data/vendor/depot_tools/WATCHLISTS +6 -0
- data/vendor/depot_tools/apply_issue.py +70 -38
- data/vendor/depot_tools/bootstrap/win/README.md +66 -0
- data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +12 -0
- data/vendor/depot_tools/bootstrap/win/git.template.bat +5 -0
- data/vendor/depot_tools/bootstrap/win/profile.d.python.sh +20 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +96 -45
- data/vendor/depot_tools/breakpad.py +6 -141
- data/vendor/depot_tools/buildbucket.py +45 -31
- data/vendor/depot_tools/cbuildbot +1 -0
- data/vendor/depot_tools/checkout.py +2 -1
- data/vendor/depot_tools/chrome_set_ver +1 -0
- data/vendor/depot_tools/cit +8 -0
- data/vendor/depot_tools/cit.bat +11 -0
- data/vendor/depot_tools/cit.py +120 -0
- data/vendor/depot_tools/codereview.settings +0 -2
- data/vendor/depot_tools/commit_queue +1 -5
- data/vendor/depot_tools/commit_queue.bat +1 -4
- data/vendor/depot_tools/commit_queue.py +78 -29
- data/vendor/depot_tools/cpplint.py +22 -14
- data/vendor/depot_tools/cros +1 -0
- data/vendor/depot_tools/cros_sdk +1 -0
- data/vendor/depot_tools/depot-tools-auth.py +3 -3
- data/vendor/depot_tools/download_from_google_storage.py +101 -21
- data/vendor/depot_tools/drover.py +2 -3
- data/vendor/depot_tools/fetch.py +31 -27
- data/vendor/depot_tools/{recipes → fetch_configs}/android.py +4 -4
- data/vendor/depot_tools/fetch_configs/breakpad.py +45 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/chromium.py +3 -3
- data/vendor/depot_tools/{recipes/recipe_util.py → fetch_configs/config_util.py} +3 -3
- data/vendor/depot_tools/fetch_configs/crashpad.py +41 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/dart.py +3 -3
- data/vendor/depot_tools/{recipes/pdfium.py → fetch_configs/dartino.py} +14 -13
- data/vendor/depot_tools/{recipes → fetch_configs}/dartium.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/depot_tools.py +3 -3
- data/vendor/depot_tools/fetch_configs/gyp.py +42 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/infra.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/infra_internal.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/ios.py +4 -4
- data/vendor/depot_tools/{recipes → fetch_configs}/mojo.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/nacl.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/naclports.py +3 -3
- data/vendor/depot_tools/fetch_configs/pdfium.py +40 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/skia.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/skia_buildbot.py +3 -3
- data/vendor/depot_tools/fetch_configs/syzygy.py +41 -0
- data/vendor/depot_tools/{recipes → fetch_configs}/v8.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc.py +3 -3
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc_android.py +4 -4
- data/vendor/depot_tools/{recipes → fetch_configs}/webrtc_ios.py +4 -4
- data/vendor/depot_tools/fix_encoding.py +6 -6
- data/vendor/depot_tools/gcl.py +11 -21
- data/vendor/depot_tools/gclient +10 -0
- data/vendor/depot_tools/gclient-new-workdir.py +7 -38
- data/vendor/depot_tools/gclient.bat +2 -2
- data/vendor/depot_tools/gclient.py +85 -65
- data/vendor/depot_tools/gclient_scm.py +83 -10
- data/vendor/depot_tools/gclient_utils.py +5 -1
- data/vendor/depot_tools/gerrit_util.py +243 -26
- data/vendor/depot_tools/git-auto-svn +1 -1
- data/vendor/depot_tools/git-cache +1 -1
- data/vendor/depot_tools/git-cherry-pick-upload +1 -1
- data/vendor/depot_tools/git-cl +1 -1
- data/vendor/depot_tools/git-drover +6 -0
- data/vendor/depot_tools/git-find-releases +6 -0
- data/vendor/depot_tools/git-footers +1 -1
- data/vendor/depot_tools/git-freeze +1 -1
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git-hyper-blame +6 -0
- data/vendor/depot_tools/git-map +1 -1
- data/vendor/depot_tools/git-map-branches +1 -1
- data/vendor/depot_tools/git-mark-merge-base +1 -1
- data/vendor/depot_tools/git-nav-downstream +1 -1
- data/vendor/depot_tools/git-new-branch +1 -1
- data/vendor/depot_tools/git-number +1 -1
- data/vendor/depot_tools/git-rebase-update +1 -1
- data/vendor/depot_tools/git-rename-branch +1 -1
- data/vendor/depot_tools/git-reparent-branch +1 -1
- data/vendor/depot_tools/git-retry +1 -1
- data/vendor/depot_tools/git-squash-branch +1 -1
- data/vendor/depot_tools/git-thaw +1 -1
- data/vendor/depot_tools/git-try +1 -1
- data/vendor/depot_tools/git-upstream-diff +1 -1
- data/vendor/depot_tools/git_auto_svn.py +24 -6
- data/vendor/depot_tools/git_cache.py +74 -27
- data/vendor/depot_tools/git_cl.py +2118 -747
- data/vendor/depot_tools/git_common.py +100 -6
- data/vendor/depot_tools/git_dates.py +62 -0
- data/vendor/depot_tools/git_drover.py +424 -0
- data/vendor/depot_tools/git_find_releases.py +65 -0
- data/vendor/depot_tools/git_footers.py +42 -0
- data/vendor/depot_tools/git_hyper_blame.py +391 -0
- data/vendor/depot_tools/git_map_branches.py +8 -6
- data/vendor/depot_tools/git_new_branch.py +6 -1
- data/vendor/depot_tools/git_rebase_update.py +56 -16
- data/vendor/depot_tools/git_reparent_branch.py +13 -0
- data/vendor/depot_tools/git_try.py +0 -2
- data/vendor/depot_tools/gsutil.py +51 -20
- data/vendor/depot_tools/infra/config/OWNERS +3 -1
- data/vendor/depot_tools/infra/config/cq.cfg +7 -3
- data/vendor/depot_tools/infra/config/recipes.cfg +9 -0
- data/vendor/depot_tools/luci_hacks/README.md +35 -0
- data/vendor/depot_tools/{bootstrap/virtualenv/tests → luci_hacks}/__init__.py +0 -0
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.isolate +12 -0
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.py +81 -0
- data/vendor/depot_tools/luci_hacks/trigger_luci_job.py +128 -0
- data/vendor/depot_tools/man/html/depot_tools.html +9 -1
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +4 -4
- data/vendor/depot_tools/man/html/git-drover.html +191 -35
- data/vendor/depot_tools/man/html/git-hyper-blame.html +878 -0
- data/vendor/depot_tools/man/html/git-rebase-update.html +9 -4
- data/vendor/depot_tools/man/man1/git-drover.1 +189 -36
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +128 -0
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +8 -6
- data/vendor/depot_tools/man/man7/depot_tools.7 +9 -4
- data/vendor/depot_tools/man/src/_git-hyper-blame_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/common_demo_functions.sh +5 -0
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +1 -1
- data/vendor/depot_tools/man/src/git-drover.demo.1.sh +11 -16
- data/vendor/depot_tools/man/src/git-drover.demo.3.sh +27 -0
- data/vendor/depot_tools/man/src/git-drover.demo.4.sh +39 -0
- data/vendor/depot_tools/man/src/git-drover.txt +49 -3
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.1.sh +3 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.2.sh +4 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.common.sh +57 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.txt +85 -0
- data/vendor/depot_tools/man/src/git-rebase-update.txt +5 -1
- data/vendor/depot_tools/my_activity.py +6 -21
- data/vendor/depot_tools/ninja +2 -2
- data/vendor/depot_tools/ninja-linux32 +0 -0
- data/vendor/depot_tools/ninja-linux64 +0 -0
- data/vendor/depot_tools/ninja-mac +0 -0
- data/vendor/depot_tools/ninja.exe +0 -0
- data/vendor/depot_tools/presubmit_canned_checks.py +83 -69
- data/vendor/depot_tools/presubmit_support.py +126 -42
- data/vendor/depot_tools/pylint.py +5 -1
- data/vendor/depot_tools/python_runner.sh +55 -0
- data/vendor/depot_tools/recipe_modules/bot_update/__init__.py +32 -0
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +283 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +56 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +63 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +57 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/forced.json +57 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +43 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +43 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/svn_mode.json +59 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +58 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +60 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +58 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +60 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +81 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +81 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +49 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +61 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +51 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.py +172 -0
- data/vendor/depot_tools/{bootstrap/virtualenv/virtualenv_support → recipe_modules/bot_update/resources}/__init__.py +0 -0
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +1764 -0
- data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +86 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/__init__.py +3 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/api.py +27 -0
- data/vendor/depot_tools/recipe_modules/gclient/__init__.py +10 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +378 -0
- data/vendor/depot_tools/recipe_modules/gclient/config.py +671 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +172 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +174 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +185 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.py +100 -0
- data/vendor/depot_tools/recipe_modules/gclient/test_api.py +37 -0
- data/vendor/depot_tools/recipe_modules/git/__init__.py +9 -0
- data/vendor/depot_tools/recipe_modules/git/api.py +377 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +176 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +177 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +178 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +153 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +199 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +250 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +182 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +102 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +181 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +186 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +179 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +178 -0
- data/vendor/depot_tools/recipe_modules/git/example.py +147 -0
- data/vendor/depot_tools/recipe_modules/git/resources/git_setup.py +61 -0
- data/vendor/depot_tools/recipe_modules/git/test_api.py +18 -0
- data/vendor/depot_tools/recipe_modules/git_cl/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git_cl/api.py +25 -0
- data/vendor/depot_tools/recipe_modules/git_cl/config.py +22 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.expected/basic.json +66 -0
- data/vendor/depot_tools/recipe_modules/git_cl/example.py +41 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/api.py +12 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/basic.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +14 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/example.py +28 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +45 -0
- data/vendor/depot_tools/recipe_modules/presubmit/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/presubmit/api.py +20 -0
- data/vendor/depot_tools/recipe_modules/presubmit/example.expected/basic.json +18 -0
- data/vendor/depot_tools/recipe_modules/presubmit/example.py +15 -0
- data/vendor/depot_tools/recipe_modules/rietveld/__init__.py +5 -0
- data/vendor/depot_tools/recipe_modules/rietveld/api.py +94 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/basic.json +30 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.py +24 -0
- data/vendor/depot_tools/recipe_modules/tryserver/__init__.py +15 -0
- data/vendor/depot_tools/recipe_modules/tryserver/api.py +280 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +104 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +58 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +58 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_svn_patch.json +68 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +43 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +43 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.py +53 -0
- data/vendor/depot_tools/recipe_modules/tryserver/test_api.py +7 -0
- data/vendor/depot_tools/recipes.py +136 -0
- data/vendor/depot_tools/repo +1 -1
- data/vendor/depot_tools/rietveld.py +46 -15
- data/vendor/depot_tools/roll_dep.py +97 -36
- data/vendor/depot_tools/scm.py +3 -3
- data/vendor/depot_tools/setup_color.py +94 -0
- data/vendor/depot_tools/subprocess2.py +10 -1
- data/vendor/depot_tools/third_party/cq_client/OWNERS +0 -1
- data/vendor/depot_tools/third_party/cq_client/README.md +47 -9
- data/vendor/depot_tools/third_party/cq_client/cq.pb.go +617 -0
- data/vendor/depot_tools/third_party/cq_client/cq.proto +75 -17
- data/vendor/depot_tools/third_party/cq_client/cq_pb2.py +168 -41
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_gerrit.cfg +55 -0
- data/vendor/depot_tools/third_party/cq_client/{test/cq_example.cfg → testdata/cq_rietveld.cfg} +14 -6
- data/vendor/depot_tools/third_party/fancy_urllib/README +5 -4
- data/vendor/depot_tools/third_party/fancy_urllib/__init__.py +114 -52
- data/vendor/depot_tools/third_party/protobuf26/README.chromium +9 -6
- data/vendor/depot_tools/third_party/upload.py +17 -31
- data/vendor/depot_tools/trychange.py +0 -2
- data/vendor/depot_tools/update_depot_tools +29 -11
- data/vendor/depot_tools/update_depot_tools.bat +4 -9
- data/vendor/depot_tools/upload_to_google_storage.py +42 -5
- data/vendor/depot_tools/win_toolchain/OWNERS +1 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +227 -52
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +203 -88
- metadata +161 -81
- data/patches/arm/do-not-imply-vfp3-and-armv7.patch +0 -16
- data/patches/arm/do-not-use-vfp2.patch +0 -13
- data/patches/clang51/no-unused-variable.patch +0 -12
- data/vendor/depot_tools/bootstrap/.gitignore +0 -2
- data/vendor/depot_tools/bootstrap/bootstrap.py +0 -234
- data/vendor/depot_tools/bootstrap/deps.pyl +0 -15
- data/vendor/depot_tools/bootstrap/util.py +0 -87
- data/vendor/depot_tools/bootstrap/virtualenv/.gitignore +0 -10
- data/vendor/depot_tools/bootstrap/virtualenv/.travis.yml +0 -28
- data/vendor/depot_tools/bootstrap/virtualenv/AUTHORS.txt +0 -91
- data/vendor/depot_tools/bootstrap/virtualenv/CONTRIBUTING.rst +0 -21
- data/vendor/depot_tools/bootstrap/virtualenv/LICENSE.txt +0 -22
- data/vendor/depot_tools/bootstrap/virtualenv/MANIFEST.in +0 -11
- data/vendor/depot_tools/bootstrap/virtualenv/README.rst +0 -10
- data/vendor/depot_tools/bootstrap/virtualenv/bin/rebuild-script.py +0 -71
- data/vendor/depot_tools/bootstrap/virtualenv/docs/changes.rst +0 -747
- data/vendor/depot_tools/bootstrap/virtualenv/docs/conf.py +0 -149
- data/vendor/depot_tools/bootstrap/virtualenv/docs/development.rst +0 -61
- data/vendor/depot_tools/bootstrap/virtualenv/docs/index.rst +0 -137
- data/vendor/depot_tools/bootstrap/virtualenv/docs/installation.rst +0 -58
- data/vendor/depot_tools/bootstrap/virtualenv/docs/make.bat +0 -170
- data/vendor/depot_tools/bootstrap/virtualenv/docs/reference.rst +0 -256
- data/vendor/depot_tools/bootstrap/virtualenv/docs/userguide.rst +0 -249
- data/vendor/depot_tools/bootstrap/virtualenv/scripts/virtualenv +0 -3
- data/vendor/depot_tools/bootstrap/virtualenv/setup.py +0 -111
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_activate.sh +0 -94
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_activate_expected.output +0 -2
- data/vendor/depot_tools/bootstrap/virtualenv/tests/test_virtualenv.py +0 -139
- data/vendor/depot_tools/bootstrap/virtualenv/tests/tox.ini +0 -12
- data/vendor/depot_tools/bootstrap/virtualenv/tox.ini +0 -17
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv.py +0 -2367
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.bat +0 -26
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.csh +0 -42
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.fish +0 -74
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.ps1 +0 -150
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate.sh +0 -80
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/activate_this.py +0 -34
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/deactivate.bat +0 -20
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/distutils-init.py +0 -101
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/distutils.cfg +0 -6
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_embedded/site.py +0 -758
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_support/pip-6.0-py2.py3-none-any.whl +0 -0
- data/vendor/depot_tools/bootstrap/virtualenv/virtualenv_support/setuptools-8.2.1-py2.py3-none-any.whl +0 -0
- data/vendor/depot_tools/bootstrap/win/README.google +0 -16
- data/vendor/depot_tools/cbuildbot +0 -96
- data/vendor/depot_tools/chrome_set_ver +0 -96
- data/vendor/depot_tools/cros +0 -96
- data/vendor/depot_tools/cros_sdk +0 -96
- data/vendor/depot_tools/git-cl-upload-hook +0 -52
- data/vendor/depot_tools/git-crup +0 -45
- data/vendor/depot_tools/python_git_runner.sh +0 -36
- data/vendor/depot_tools/recipes/blink.py +0 -59
- data/vendor/depot_tools/third_party/cq_client/test/validate_config_test.py +0 -52
- data/vendor/depot_tools/third_party/cq_client/validate_config.py +0 -108
- data/vendor/depot_tools/win_toolchain/toolchain2013.py +0 -494
@@ -0,0 +1 @@
|
|
1
|
+
support/chromite_wrapper
|
@@ -255,7 +255,8 @@ class SvnConfig(object):
|
|
255
255
|
if sys.platform == 'win32':
|
256
256
|
self.svn_config_dir = os.path.join(os.environ['APPDATA'], 'Subversion')
|
257
257
|
else:
|
258
|
-
self.svn_config_dir = os.path.
|
258
|
+
self.svn_config_dir = os.path.expanduser(
|
259
|
+
os.path.join('~', '.subversion'))
|
259
260
|
svn_config_file = os.path.join(self.svn_config_dir, 'config')
|
260
261
|
parser = ConfigParser.SafeConfigParser()
|
261
262
|
if os.path.isfile(svn_config_file):
|
@@ -0,0 +1 @@
|
|
1
|
+
support/chromite_wrapper
|
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
3
|
+
# Use of this source code is governed by a BSD-style license that can be
|
4
|
+
# found in the LICENSE file.
|
5
|
+
|
6
|
+
base_dir=$(dirname "$0")
|
7
|
+
|
8
|
+
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/cit.py" "$@"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
@echo off
|
2
|
+
:: Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
3
|
+
:: Use of this source code is governed by a BSD-style license that can be
|
4
|
+
:: found in the LICENSE file.
|
5
|
+
setlocal
|
6
|
+
|
7
|
+
:: This is required with cygwin only.
|
8
|
+
PATH=%~dp0;%PATH%
|
9
|
+
|
10
|
+
:: Defer control.
|
11
|
+
%~dp0python "%~dp0\cit.py" %*
|
@@ -0,0 +1,120 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
3
|
+
# Use of this source code is governed by a BSD-style license that can be
|
4
|
+
# found in the LICENSE file.
|
5
|
+
|
6
|
+
|
7
|
+
"""Wrapper for updating and calling infra.git tools.
|
8
|
+
|
9
|
+
This tool does a two things:
|
10
|
+
* Maintains a infra.git checkout pinned at "deployed" in the home dir
|
11
|
+
* Acts as an alias to infra.tools.*
|
12
|
+
"""
|
13
|
+
|
14
|
+
# TODO(hinoka): Use cipd/glyco instead of git/gclient.
|
15
|
+
|
16
|
+
import argparse
|
17
|
+
import sys
|
18
|
+
import os
|
19
|
+
import subprocess
|
20
|
+
import re
|
21
|
+
|
22
|
+
|
23
|
+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
24
|
+
GCLIENT = os.path.join(SCRIPT_DIR, 'gclient.py')
|
25
|
+
TARGET_DIR = os.path.expanduser(os.path.join('~', '.chrome-infra'))
|
26
|
+
INFRA_DIR = os.path.join(TARGET_DIR, 'infra')
|
27
|
+
|
28
|
+
|
29
|
+
def get_git_rev(target, branch):
|
30
|
+
return subprocess.check_output(
|
31
|
+
['git', 'log', '--format=%B', '-n1', branch], cwd=target)
|
32
|
+
|
33
|
+
|
34
|
+
def need_to_update(branch):
|
35
|
+
"""Checks to see if we need to update the ~/.chrome-infra/infra checkout."""
|
36
|
+
try:
|
37
|
+
cmd = [sys.executable, GCLIENT, 'revinfo']
|
38
|
+
subprocess.check_call(
|
39
|
+
cmd, cwd=os.path.join(TARGET_DIR), stdout=subprocess.PIPE)
|
40
|
+
except subprocess.CalledProcessError:
|
41
|
+
return True # Gclient failed, definitely need to update.
|
42
|
+
except OSError:
|
43
|
+
return True # Gclient failed, definitely need to update.
|
44
|
+
|
45
|
+
if not os.path.isdir(INFRA_DIR):
|
46
|
+
return True
|
47
|
+
|
48
|
+
local_rev = get_git_rev(INFRA_DIR, 'HEAD')
|
49
|
+
|
50
|
+
subprocess.check_call(
|
51
|
+
['git', 'fetch', 'origin'], cwd=INFRA_DIR,
|
52
|
+
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
53
|
+
origin_rev = get_git_rev(INFRA_DIR, 'origin/%s' % (branch,))
|
54
|
+
return origin_rev != local_rev
|
55
|
+
|
56
|
+
|
57
|
+
def ensure_infra(branch):
|
58
|
+
"""Ensures that infra.git is present in ~/.chrome-infra."""
|
59
|
+
print 'Fetching infra@%s into %s, may take a couple of minutes...' % (
|
60
|
+
branch, TARGET_DIR)
|
61
|
+
if not os.path.isdir(TARGET_DIR):
|
62
|
+
os.mkdir(TARGET_DIR)
|
63
|
+
if not os.path.exists(os.path.join(TARGET_DIR, '.gclient')):
|
64
|
+
subprocess.check_call(
|
65
|
+
[sys.executable, os.path.join(SCRIPT_DIR, 'fetch.py'), 'infra'],
|
66
|
+
cwd=TARGET_DIR,
|
67
|
+
stdout=subprocess.PIPE)
|
68
|
+
subprocess.check_call(
|
69
|
+
[sys.executable, GCLIENT, 'sync', '--revision', 'origin/%s' % (branch,)],
|
70
|
+
cwd=TARGET_DIR,
|
71
|
+
stdout=subprocess.PIPE)
|
72
|
+
|
73
|
+
|
74
|
+
def get_available_tools():
|
75
|
+
tools = []
|
76
|
+
starting = os.path.join(TARGET_DIR, 'infra', 'infra', 'tools')
|
77
|
+
for root, _, files in os.walk(starting):
|
78
|
+
if '__main__.py' in files:
|
79
|
+
tools.append(root[len(starting)+1:].replace(os.path.sep, '.'))
|
80
|
+
return sorted(tools)
|
81
|
+
|
82
|
+
|
83
|
+
def run(args):
|
84
|
+
if args:
|
85
|
+
tool_name = args[0]
|
86
|
+
cmd = [
|
87
|
+
sys.executable, os.path.join(TARGET_DIR, 'infra', 'run.py'),
|
88
|
+
'infra.tools.%s' % tool_name]
|
89
|
+
cmd.extend(args[1:])
|
90
|
+
return subprocess.call(cmd)
|
91
|
+
|
92
|
+
tools = get_available_tools()
|
93
|
+
print """usage: cit.py <name of tool> [args for tool]
|
94
|
+
|
95
|
+
Wrapper for maintaining and calling tools in "infra.git/run.py infra.tools.*"
|
96
|
+
|
97
|
+
Available tools are:
|
98
|
+
"""
|
99
|
+
for tool in tools:
|
100
|
+
print ' * %s' % tool
|
101
|
+
|
102
|
+
|
103
|
+
def main():
|
104
|
+
parser = argparse.ArgumentParser("Chrome Infrastructure CLI.")
|
105
|
+
parser.add_argument('-b', '--infra-branch', default='deployed',
|
106
|
+
help="The name of the 'infra' branch to use (default is %(default)s).")
|
107
|
+
parser.add_argument('args', nargs=argparse.REMAINDER)
|
108
|
+
|
109
|
+
args, extras = parser.parse_known_args()
|
110
|
+
if args.args and args.args[0] == '--':
|
111
|
+
args.args.pop(0)
|
112
|
+
if extras:
|
113
|
+
args.args = extras + args.args
|
114
|
+
|
115
|
+
if need_to_update(args.infra_branch):
|
116
|
+
ensure_infra(args.infra_branch)
|
117
|
+
return run(args.args)
|
118
|
+
|
119
|
+
if __name__ == '__main__':
|
120
|
+
sys.exit(main())
|
@@ -2,6 +2,4 @@
|
|
2
2
|
CODE_REVIEW_SERVER: codereview.chromium.org
|
3
3
|
CC_LIST: chromium-reviews@chromium.org
|
4
4
|
VIEW_VC: http://src.chromium.org/viewvc/chrome?view=rev&revision=
|
5
|
-
GITCL_PREUPLOAD: http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/git-cl-upload-hook?revision=HEAD
|
6
|
-
GITCL_PREDCOMMIT: http://src.chromium.org/viewvc/chrome/trunk/tools/depot_tools/git-cl-upload-hook?revision=HEAD
|
7
5
|
PROJECT: depot_tools
|
@@ -5,8 +5,4 @@
|
|
5
5
|
|
6
6
|
base_dir=$(dirname "$0")
|
7
7
|
|
8
|
-
|
9
|
-
"$base_dir"/update_depot_tools "$@"
|
10
|
-
fi
|
11
|
-
|
12
|
-
PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/ENV/bin/python" "$base_dir/commit_queue.py" "$@"
|
8
|
+
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/commit_queue.py" "$@"
|
@@ -7,8 +7,5 @@ setlocal
|
|
7
7
|
:: This is required with cygwin only.
|
8
8
|
PATH=%~dp0;%PATH%
|
9
9
|
|
10
|
-
:: Synchronize the root directory before deferring control back to gclient.py.
|
11
|
-
call "%~dp0\update_depot_tools.bat" %*
|
12
|
-
|
13
10
|
:: Defer control.
|
14
|
-
%~
|
11
|
+
%~dp0python "%~dp0\commit_queue.py" %*
|
@@ -16,8 +16,6 @@ import os
|
|
16
16
|
import sys
|
17
17
|
import urllib2
|
18
18
|
|
19
|
-
import breakpad # pylint: disable=W0611
|
20
|
-
|
21
19
|
import auth
|
22
20
|
import fix_encoding
|
23
21
|
import rietveld
|
@@ -26,7 +24,6 @@ THIRD_PARTY_DIR = os.path.join(os.path.dirname(__file__), 'third_party')
|
|
26
24
|
sys.path.insert(0, THIRD_PARTY_DIR)
|
27
25
|
|
28
26
|
from cq_client import cq_pb2
|
29
|
-
from cq_client import validate_config
|
30
27
|
from protobuf26 import text_format
|
31
28
|
|
32
29
|
def usage(more):
|
@@ -77,11 +74,10 @@ def need_issue(fn):
|
|
77
74
|
return hook
|
78
75
|
|
79
76
|
|
80
|
-
def
|
81
|
-
"""
|
77
|
+
def _apply_on_issue(fun, obj, issue):
|
78
|
+
"""Applies function 'fun' on an issue."""
|
82
79
|
try:
|
83
|
-
|
84
|
-
print obj.set_flag(issue, patchset, 'commit', flag)
|
80
|
+
return fun(obj.get_issue_properties(issue, False))
|
85
81
|
except urllib2.HTTPError, e:
|
86
82
|
if e.code == 404:
|
87
83
|
print >> sys.stderr, 'Issue %d doesn\'t exist.' % issue
|
@@ -91,6 +87,44 @@ def set_commit(obj, issue, flag):
|
|
91
87
|
raise
|
92
88
|
return 1
|
93
89
|
|
90
|
+
def get_commit(obj, issue):
|
91
|
+
"""Gets the commit bit flag of an issue."""
|
92
|
+
def _get_commit(properties):
|
93
|
+
print int(properties['commit'])
|
94
|
+
return 0
|
95
|
+
_apply_on_issue(_get_commit, obj, issue)
|
96
|
+
|
97
|
+
def set_commit(obj, issue, flag):
|
98
|
+
"""Sets the commit bit flag on an issue."""
|
99
|
+
def _set_commit(properties):
|
100
|
+
print obj.set_flag(issue, properties['patchsets'][-1], 'commit', flag)
|
101
|
+
return 0
|
102
|
+
_apply_on_issue(_set_commit, obj, issue)
|
103
|
+
|
104
|
+
|
105
|
+
def get_master_builder_map(
|
106
|
+
config_path, include_experimental=True, include_triggered=True):
|
107
|
+
"""Returns a map of master -> [builders] from cq config."""
|
108
|
+
with open(config_path) as config_file:
|
109
|
+
cq_config = config_file.read()
|
110
|
+
|
111
|
+
config = cq_pb2.Config()
|
112
|
+
text_format.Merge(cq_config, config)
|
113
|
+
masters = {}
|
114
|
+
if config.HasField('verifiers') and config.verifiers.HasField('try_job'):
|
115
|
+
for bucket in config.verifiers.try_job.buckets:
|
116
|
+
masters.setdefault(bucket.name, [])
|
117
|
+
for builder in bucket.builders:
|
118
|
+
if (not include_experimental and
|
119
|
+
builder.HasField('experiment_percentage')):
|
120
|
+
continue
|
121
|
+
if (not include_triggered and
|
122
|
+
builder.HasField('triggered_by')):
|
123
|
+
continue
|
124
|
+
masters[bucket.name].append(builder.name)
|
125
|
+
return masters
|
126
|
+
|
127
|
+
|
94
128
|
@need_issue
|
95
129
|
def CMDset(parser, args):
|
96
130
|
"""Sets the commit bit."""
|
@@ -99,6 +133,13 @@ def CMDset(parser, args):
|
|
99
133
|
parser.error('Unrecognized args: %s' % ' '.join(args))
|
100
134
|
return set_commit(obj, options.issue, '1')
|
101
135
|
|
136
|
+
@need_issue
|
137
|
+
def CMDget(parser, args):
|
138
|
+
"""Gets the commit bit."""
|
139
|
+
options, args, obj = parser.parse_args(args)
|
140
|
+
if args:
|
141
|
+
parser.error('Unrecognized args: %s' % ' '.join(args))
|
142
|
+
return get_commit(obj, options.issue)
|
102
143
|
|
103
144
|
@need_issue
|
104
145
|
def CMDclear(parser, args):
|
@@ -123,43 +164,51 @@ def CMDbuilders(parser, args):
|
|
123
164
|
]
|
124
165
|
}
|
125
166
|
"""
|
126
|
-
|
167
|
+
parser.add_option('--include-experimental', action='store_true')
|
168
|
+
parser.add_option('--exclude-experimental', action='store_false',
|
169
|
+
dest='include_experimental')
|
170
|
+
parser.add_option('--include-triggered', action='store_true')
|
171
|
+
parser.add_option('--exclude-triggered', action='store_false',
|
172
|
+
dest='include_triggered')
|
173
|
+
# The defaults have been chosen because of backward compatbility.
|
174
|
+
parser.set_defaults(include_experimental=True, include_triggered=True)
|
175
|
+
options, args = parser.parse_args(args)
|
127
176
|
if len(args) != 1:
|
128
177
|
parser.error('Expected a single path to CQ config. Got: %s' %
|
129
178
|
' '.join(args))
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
config = cq_pb2.Config()
|
135
|
-
text_format.Merge(cq_config, config)
|
136
|
-
masters = {}
|
137
|
-
if config.HasField('verifiers') and config.verifiers.HasField('try_job'):
|
138
|
-
for bucket in config.verifiers.try_job.buckets:
|
139
|
-
masters.setdefault(bucket.name, [])
|
140
|
-
for builder in bucket.builders:
|
141
|
-
if not builder.HasField('experiment_percentage'):
|
142
|
-
masters[bucket.name].append(builder.name)
|
143
|
-
print json.dumps(masters)
|
179
|
+
print json.dumps(get_master_builder_map(
|
180
|
+
args[0],
|
181
|
+
include_experimental=options.include_experimental,
|
182
|
+
include_triggered=options.include_triggered))
|
144
183
|
|
145
184
|
CMDbuilders.func_usage_more = '<path-to-cq-config>'
|
146
185
|
|
147
186
|
|
148
187
|
def CMDvalidate(parser, args):
|
149
|
-
"""Validates a CQ config.
|
188
|
+
"""Validates a CQ config, returns 0 on valid config.
|
150
189
|
|
151
|
-
|
152
|
-
|
153
|
-
|
190
|
+
BUGS: this doesn't do semantic validation, only verifies validity of protobuf.
|
191
|
+
But don't worry - bad cq.cfg won't cause outages, luci-config service will
|
192
|
+
not accept them, will send warning email, and continue using previous
|
193
|
+
version.
|
154
194
|
"""
|
155
195
|
_, args = parser.parse_args(args)
|
156
196
|
if len(args) != 1:
|
157
197
|
parser.error('Expected a single path to CQ config. Got: %s' %
|
158
198
|
' '.join(args))
|
159
199
|
|
160
|
-
|
161
|
-
|
162
|
-
|
200
|
+
config = cq_pb2.Config()
|
201
|
+
try:
|
202
|
+
with open(args[0]) as config_file:
|
203
|
+
text_config = config_file.read()
|
204
|
+
text_format.Merge(text_config, config)
|
205
|
+
# TODO(tandrii): provide an option to actually validate semantics of CQ
|
206
|
+
# config.
|
207
|
+
return 0
|
208
|
+
except text_format.ParseError as e:
|
209
|
+
print 'failed to parse cq.cfg: %s' % e
|
210
|
+
return 1
|
211
|
+
|
163
212
|
|
164
213
|
CMDvalidate.func_usage_more = '<path-to-cq-config>'
|
165
214
|
|
@@ -1666,7 +1666,7 @@ def GetHeaderGuardCPPVariable(filename):
|
|
1666
1666
|
filename = re.sub(r'/\.flymake/([^/]*)$', r'/\1', filename)
|
1667
1667
|
# Replace 'c++' with 'cpp'.
|
1668
1668
|
filename = filename.replace('C++', 'cpp').replace('c++', 'cpp')
|
1669
|
-
|
1669
|
+
|
1670
1670
|
fileinfo = FileInfo(filename)
|
1671
1671
|
file_path_from_root = fileinfo.RepositoryName()
|
1672
1672
|
if _root:
|
@@ -4794,7 +4794,7 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
|
|
4794
4794
|
|
4795
4795
|
# Make Windows paths like Unix.
|
4796
4796
|
fullname = os.path.abspath(filename).replace('\\', '/')
|
4797
|
-
|
4797
|
+
|
4798
4798
|
# Perform other checks now that we are sure that this is not an include line
|
4799
4799
|
CheckCasts(filename, clean_lines, linenum, error)
|
4800
4800
|
CheckGlobalStatic(filename, clean_lines, linenum, error)
|
@@ -5498,18 +5498,26 @@ _HEADERS_CONTAINING_TEMPLATES = (
|
|
5498
5498
|
('<slist>', ('slist',)),
|
5499
5499
|
)
|
5500
5500
|
|
5501
|
-
|
5501
|
+
_HEADERS_MAYBE_TEMPLATES = (
|
5502
|
+
('<algorithm>', ('copy', 'max', 'min', 'min_element', 'sort',
|
5503
|
+
'transform',
|
5504
|
+
)),
|
5505
|
+
('<utility>', ('swap',)),
|
5506
|
+
)
|
5502
5507
|
|
5503
|
-
|
5504
|
-
for _template in ('copy', 'max', 'min', 'min_element', 'sort', 'swap',
|
5505
|
-
'transform'):
|
5506
|
-
# Match max<type>(..., ...), max(..., ...), but not foo->max, foo.max or
|
5507
|
-
# type::max().
|
5508
|
-
_re_pattern_algorithm_header.append(
|
5509
|
-
(re.compile(r'[^>.]\b' + _template + r'(<.*?>)?\([^\)]'),
|
5510
|
-
_template,
|
5511
|
-
'<algorithm>'))
|
5508
|
+
_RE_PATTERN_STRING = re.compile(r'\bstring\b')
|
5512
5509
|
|
5510
|
+
_re_pattern_headers_maybe_templates = []
|
5511
|
+
for _header, _templates in _HEADERS_MAYBE_TEMPLATES:
|
5512
|
+
for _template in _templates:
|
5513
|
+
# Match max<type>(..., ...), max(..., ...), but not foo->max, foo.max or
|
5514
|
+
# type::max().
|
5515
|
+
_re_pattern_headers_maybe_templates.append(
|
5516
|
+
(re.compile(r'[^>.]\b' + _template + r'(<.*?>)?\([^\)]'),
|
5517
|
+
_template,
|
5518
|
+
_header))
|
5519
|
+
|
5520
|
+
# Other scripts may reach in and modify this pattern.
|
5513
5521
|
_re_pattern_templates = []
|
5514
5522
|
for _header, _templates in _HEADERS_CONTAINING_TEMPLATES:
|
5515
5523
|
for _template in _templates:
|
@@ -5636,7 +5644,7 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error,
|
|
5636
5644
|
if prefix.endswith('std::') or not prefix.endswith('::'):
|
5637
5645
|
required['<string>'] = (linenum, 'string')
|
5638
5646
|
|
5639
|
-
for pattern, template, header in
|
5647
|
+
for pattern, template, header in _re_pattern_headers_maybe_templates:
|
5640
5648
|
if pattern.search(line):
|
5641
5649
|
required[header] = (linenum, template)
|
5642
5650
|
|
@@ -6034,7 +6042,7 @@ def ProcessFileData(filename, file_extension, lines, error,
|
|
6034
6042
|
nesting_state.CheckCompletedBlocks(filename, error)
|
6035
6043
|
|
6036
6044
|
CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error)
|
6037
|
-
|
6045
|
+
|
6038
6046
|
# Check that the .cc file has included its header if it exists.
|
6039
6047
|
if file_extension == 'cc':
|
6040
6048
|
CheckHeaderFileIncluded(filename, include_state, error)
|
@@ -0,0 +1 @@
|
|
1
|
+
support/chromite_wrapper
|
@@ -0,0 +1 @@
|
|
1
|
+
support/chromite_wrapper
|
@@ -14,10 +14,10 @@ Usage:
|
|
14
14
|
import logging
|
15
15
|
import optparse
|
16
16
|
import sys
|
17
|
-
|
18
|
-
from third_party import colorama
|
17
|
+
import os
|
19
18
|
|
20
19
|
import auth
|
20
|
+
import setup_color
|
21
21
|
import subcommand
|
22
22
|
|
23
23
|
__version__ = '1.0'
|
@@ -94,7 +94,7 @@ def main(argv):
|
|
94
94
|
|
95
95
|
|
96
96
|
if __name__ == '__main__':
|
97
|
-
|
97
|
+
setup_color.init()
|
98
98
|
try:
|
99
99
|
sys.exit(main(sys.argv[1:]))
|
100
100
|
except KeyboardInterrupt:
|