libv8 5.3.332.38.5 → 5.6.326.50.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (352) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -1
  3. data/CHANGELOG.md +2 -0
  4. data/ext/libv8/builder.rb +2 -2
  5. data/lib/libv8/version.rb +1 -1
  6. data/patches/0001-Build-a-standalone-static-library.patch +4 -4
  7. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +16 -11
  8. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
  9. data/patches/{0005-Do-not-embed-debug-symbols-in-macOS-libraries.patch → 0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch} +4 -4
  10. data/vendor/depot_tools/.gitignore +4 -0
  11. data/vendor/depot_tools/OWNERS +0 -2
  12. data/vendor/depot_tools/PRESUBMIT.py +20 -23
  13. data/vendor/depot_tools/README.gclient.md +3 -3
  14. data/vendor/depot_tools/README.git-cl.md +13 -12
  15. data/vendor/depot_tools/README.md +2 -3
  16. data/vendor/depot_tools/WATCHLISTS +0 -1
  17. data/vendor/depot_tools/appengine_mapper.py +23 -0
  18. data/vendor/depot_tools/apply_issue.py +2 -8
  19. data/vendor/depot_tools/bootstrap/win/README.md +1 -8
  20. data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +6 -16
  21. data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -1
  22. data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -1
  23. data/vendor/depot_tools/checkout.py +20 -433
  24. data/vendor/depot_tools/cipd +73 -0
  25. data/vendor/depot_tools/cipd.bat +12 -0
  26. data/vendor/depot_tools/cipd.ps1 +57 -0
  27. data/vendor/depot_tools/cipd_client_version +1 -0
  28. data/vendor/depot_tools/clang_format.py +9 -6
  29. data/vendor/depot_tools/clang_format_merge_driver +8 -0
  30. data/vendor/depot_tools/clang_format_merge_driver.bat +11 -0
  31. data/vendor/depot_tools/clang_format_merge_driver.py +67 -0
  32. data/vendor/depot_tools/codereview.settings +3 -2
  33. data/vendor/depot_tools/commit_queue.py +1 -1
  34. data/vendor/depot_tools/cpplint.py +2 -0
  35. data/vendor/depot_tools/fetch.py +1 -54
  36. data/vendor/depot_tools/fetch_configs/android.py +2 -2
  37. data/vendor/depot_tools/fetch_configs/breakpad.py +2 -3
  38. data/vendor/depot_tools/fetch_configs/chromium.py +2 -3
  39. data/vendor/depot_tools/fetch_configs/crashpad.py +2 -2
  40. data/vendor/depot_tools/fetch_configs/dart.py +2 -3
  41. data/vendor/depot_tools/fetch_configs/dartino.py +2 -3
  42. data/vendor/depot_tools/fetch_configs/dartium.py +2 -3
  43. data/vendor/depot_tools/fetch_configs/depot_tools.py +3 -6
  44. data/vendor/depot_tools/fetch_configs/gyp.py +2 -3
  45. data/vendor/depot_tools/fetch_configs/infra.py +2 -2
  46. data/vendor/depot_tools/fetch_configs/infra_internal.py +2 -2
  47. data/vendor/depot_tools/fetch_configs/ios.py +2 -2
  48. data/vendor/depot_tools/fetch_configs/ios_internal.py +2 -3
  49. data/vendor/depot_tools/fetch_configs/mojo.py +2 -3
  50. data/vendor/depot_tools/fetch_configs/nacl.py +2 -3
  51. data/vendor/depot_tools/fetch_configs/naclports.py +2 -3
  52. data/vendor/depot_tools/fetch_configs/pdfium.py +2 -2
  53. data/vendor/depot_tools/fetch_configs/skia.py +2 -2
  54. data/vendor/depot_tools/fetch_configs/skia_buildbot.py +2 -2
  55. data/vendor/depot_tools/fetch_configs/syzygy.py +2 -2
  56. data/vendor/depot_tools/fetch_configs/v8.py +2 -3
  57. data/vendor/depot_tools/fetch_configs/webrtc.py +5 -3
  58. data/vendor/depot_tools/fetch_configs/webrtc_android.py +2 -2
  59. data/vendor/depot_tools/fetch_configs/webrtc_ios.py +2 -2
  60. data/vendor/depot_tools/fix_encoding.py +6 -6
  61. data/vendor/depot_tools/gclient.py +136 -368
  62. data/vendor/depot_tools/gclient_scm.py +108 -647
  63. data/vendor/depot_tools/gclient_utils.py +22 -86
  64. data/vendor/depot_tools/gerrit_client.py +105 -0
  65. data/vendor/depot_tools/gerrit_util.py +174 -67
  66. data/vendor/depot_tools/git-crrev-parse +6 -7
  67. data/vendor/depot_tools/git-gs +1 -1
  68. data/vendor/depot_tools/git_cache.py +68 -18
  69. data/vendor/depot_tools/git_cherry_pick_upload.py +4 -4
  70. data/vendor/depot_tools/git_cl.py +1028 -961
  71. data/vendor/depot_tools/git_common.py +2 -3
  72. data/vendor/depot_tools/git_drover.py +0 -1
  73. data/vendor/depot_tools/git_footers.py +3 -43
  74. data/vendor/depot_tools/git_rebase_update.py +9 -1
  75. data/vendor/depot_tools/git_squash_branch.py +1 -1
  76. data/vendor/depot_tools/infra/config/cq.cfg +8 -1
  77. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  78. data/vendor/depot_tools/man/html/depot_tools.html +3 -11
  79. data/vendor/depot_tools/man/html/depot_tools_tutorial.html +9 -9
  80. data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +2 -2
  81. data/vendor/depot_tools/man/html/git-drover.html +17 -17
  82. data/vendor/depot_tools/man/html/git-footers.html +2 -2
  83. data/vendor/depot_tools/man/html/git-freeze.html +4 -4
  84. data/vendor/depot_tools/man/html/git-hyper-blame.html +2 -2
  85. data/vendor/depot_tools/man/html/git-map-branches.html +2 -2
  86. data/vendor/depot_tools/man/html/git-map.html +2 -2
  87. data/vendor/depot_tools/man/html/git-mark-merge-base.html +2 -2
  88. data/vendor/depot_tools/man/html/git-nav-downstream.html +2 -2
  89. data/vendor/depot_tools/man/html/git-nav-upstream.html +2 -2
  90. data/vendor/depot_tools/man/html/git-new-branch.html +2 -2
  91. data/vendor/depot_tools/man/html/git-rebase-update.html +2 -2
  92. data/vendor/depot_tools/man/html/git-rename-branch.html +2 -2
  93. data/vendor/depot_tools/man/html/git-reparent-branch.html +2 -2
  94. data/vendor/depot_tools/man/html/git-retry.html +3 -3
  95. data/vendor/depot_tools/man/html/git-squash-branch.html +3 -3
  96. data/vendor/depot_tools/man/html/git-thaw.html +2 -2
  97. data/vendor/depot_tools/man/html/git-upstream-diff.html +3 -3
  98. data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +4 -4
  99. data/vendor/depot_tools/man/man1/git-drover.1 +19 -19
  100. data/vendor/depot_tools/man/man1/git-footers.1 +4 -4
  101. data/vendor/depot_tools/man/man1/git-freeze.1 +6 -6
  102. data/vendor/depot_tools/man/man1/git-hyper-blame.1 +4 -4
  103. data/vendor/depot_tools/man/man1/git-map-branches.1 +4 -4
  104. data/vendor/depot_tools/man/man1/git-map.1 +4 -4
  105. data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +4 -4
  106. data/vendor/depot_tools/man/man1/git-nav-downstream.1 +4 -4
  107. data/vendor/depot_tools/man/man1/git-nav-upstream.1 +4 -4
  108. data/vendor/depot_tools/man/man1/git-new-branch.1 +4 -4
  109. data/vendor/depot_tools/man/man1/git-rebase-update.1 +4 -4
  110. data/vendor/depot_tools/man/man1/git-rename-branch.1 +4 -4
  111. data/vendor/depot_tools/man/man1/git-reparent-branch.1 +4 -4
  112. data/vendor/depot_tools/man/man1/git-retry.1 +5 -5
  113. data/vendor/depot_tools/man/man1/git-squash-branch.1 +5 -5
  114. data/vendor/depot_tools/man/man1/git-thaw.1 +4 -4
  115. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +5 -5
  116. data/vendor/depot_tools/man/man7/depot_tools.7 +5 -10
  117. data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +4 -4
  118. data/vendor/depot_tools/man/src/depot_tools.txt +1 -1
  119. data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +7 -7
  120. data/vendor/depot_tools/man/src/filter_demo_output.py +2 -2
  121. data/vendor/depot_tools/man/src/git-footers.demo.1.sh +1 -1
  122. data/vendor/depot_tools/man/src/git-retry.txt +1 -1
  123. data/vendor/depot_tools/man/src/git-squash-branch.txt +2 -2
  124. data/vendor/depot_tools/man/src/git-upstream-diff.txt +1 -1
  125. data/vendor/depot_tools/my_activity.py +6 -3
  126. data/vendor/depot_tools/my_reviews.py +1 -1
  127. data/vendor/depot_tools/ninja +2 -2
  128. data/vendor/depot_tools/ninja-linux32 +0 -0
  129. data/vendor/depot_tools/ninja-linux64 +0 -0
  130. data/vendor/depot_tools/ninja-mac +0 -0
  131. data/vendor/depot_tools/ninja.exe +0 -0
  132. data/vendor/depot_tools/owners.py +14 -3
  133. data/vendor/depot_tools/presubmit_canned_checks.py +46 -67
  134. data/vendor/depot_tools/presubmit_support.py +109 -371
  135. data/vendor/depot_tools/pylintrc +83 -56
  136. data/vendor/depot_tools/recipe_modules/OWNERS +1 -0
  137. data/vendor/depot_tools/recipe_modules/bot_update/__init__.py +18 -9
  138. data/vendor/depot_tools/recipe_modules/bot_update/api.py +56 -55
  139. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +3 -7
  140. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +3 -7
  141. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +3 -7
  142. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/buildbot.json +52 -0
  143. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +19 -10
  144. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +19 -10
  145. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +19 -10
  146. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +19 -10
  147. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +19 -10
  148. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +3 -7
  149. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +2 -54
  150. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +56 -0
  151. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/{forced.json → trychange_oauth2_json.json} +6 -9
  152. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +54 -0
  153. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +9 -9
  154. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +9 -9
  155. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +9 -9
  156. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +9 -9
  157. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +20 -10
  158. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +59 -0
  159. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +9 -9
  160. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +20 -10
  161. data/vendor/depot_tools/recipe_modules/bot_update/example.py +45 -63
  162. data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +210 -807
  163. data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +34 -45
  164. data/vendor/depot_tools/recipe_modules/cipd/api.py +59 -84
  165. data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +71 -117
  166. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +14 -60
  167. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +71 -117
  168. data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +71 -117
  169. data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +71 -117
  170. data/vendor/depot_tools/recipe_modules/cipd/example.py +2 -12
  171. data/vendor/depot_tools/recipe_modules/cipd/test_api.py +0 -9
  172. data/vendor/depot_tools/recipe_modules/depot_tools/api.py +6 -0
  173. data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/basic.json +7 -0
  174. data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/win.json +7 -0
  175. data/vendor/depot_tools/recipe_modules/depot_tools/example.py +3 -0
  176. data/vendor/depot_tools/recipe_modules/gclient/__init__.py +4 -0
  177. data/vendor/depot_tools/recipe_modules/gclient/api.py +9 -22
  178. data/vendor/depot_tools/recipe_modules/gclient/config.py +18 -5
  179. data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +14 -14
  180. data/vendor/depot_tools/recipe_modules/gclient/example.expected/buildbot.json +211 -0
  181. data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +16 -14
  182. data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +16 -14
  183. data/vendor/depot_tools/recipe_modules/gclient/example.py +13 -11
  184. data/vendor/depot_tools/recipe_modules/gerrit/__init__.py +6 -0
  185. data/vendor/depot_tools/recipe_modules/gerrit/api.py +63 -0
  186. data/vendor/depot_tools/recipe_modules/gerrit/example.expected/basic.json +64 -0
  187. data/vendor/depot_tools/recipe_modules/gerrit/example.py +35 -0
  188. data/vendor/depot_tools/recipe_modules/gerrit/test_api.py +24 -0
  189. data/vendor/depot_tools/recipe_modules/git/__init__.py +4 -0
  190. data/vendor/depot_tools/recipe_modules/git/api.py +155 -142
  191. data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +43 -17
  192. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +43 -17
  193. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +43 -17
  194. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +43 -17
  195. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +43 -17
  196. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +43 -17
  197. data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +13 -13
  198. data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +43 -17
  199. data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +45 -19
  200. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +45 -19
  201. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +43 -17
  202. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +43 -17
  203. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +8 -8
  204. data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +44 -18
  205. data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +48 -22
  206. data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +43 -17
  207. data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +42 -16
  208. data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +43 -17
  209. data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +43 -17
  210. data/vendor/depot_tools/recipe_modules/git/example.py +9 -3
  211. data/vendor/depot_tools/recipe_modules/git_cl/__init__.py +4 -0
  212. data/vendor/depot_tools/recipe_modules/git_cl/api.py +8 -8
  213. data/vendor/depot_tools/recipe_modules/git_cl/example.py +1 -1
  214. data/vendor/depot_tools/recipe_modules/gsutil/__init__.py +4 -0
  215. data/vendor/depot_tools/recipe_modules/gsutil/api.py +196 -0
  216. data/vendor/depot_tools/recipe_modules/gsutil/example.expected/basic.json +186 -0
  217. data/vendor/depot_tools/recipe_modules/gsutil/example.py +77 -0
  218. data/vendor/depot_tools/recipe_modules/gsutil/resources/gsutil_smart_retry.py +69 -0
  219. data/vendor/depot_tools/recipe_modules/infra_paths/__init__.py +3 -0
  220. data/vendor/depot_tools/recipe_modules/infra_paths/api.py +20 -3
  221. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/basic.json +3 -1
  222. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +3 -1
  223. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +3 -1
  224. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +3 -1
  225. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +3 -1
  226. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +3 -1
  227. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +3 -1
  228. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +3 -1
  229. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +3 -1
  230. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +3 -1
  231. data/vendor/depot_tools/recipe_modules/infra_paths/example.py +6 -1
  232. data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +4 -6
  233. data/vendor/depot_tools/recipe_modules/rietveld/__init__.py +5 -0
  234. data/vendor/depot_tools/recipe_modules/rietveld/api.py +12 -9
  235. data/vendor/depot_tools/recipe_modules/rietveld/example.expected/basic.json +2 -24
  236. data/vendor/depot_tools/recipe_modules/rietveld/example.expected/buildbot.json +30 -0
  237. data/vendor/depot_tools/recipe_modules/rietveld/example.py +12 -6
  238. data/vendor/depot_tools/recipe_modules/tryserver/__init__.py +4 -0
  239. data/vendor/depot_tools/recipe_modules/tryserver/api.py +46 -70
  240. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/set_failure_hash_with_no_steps.json +8 -0
  241. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/{with_svn_patch.json → with_gerrit_patch.json} +1 -31
  242. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_gerrit_patch_deprecated.json +39 -0
  243. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +2 -2
  244. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +8 -0
  245. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +3 -3
  246. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +3 -3
  247. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +1 -1
  248. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +1 -1
  249. data/vendor/depot_tools/recipe_modules/tryserver/example.py +35 -5
  250. data/vendor/depot_tools/recipes.py +52 -28
  251. data/vendor/depot_tools/repo +216 -69
  252. data/vendor/depot_tools/rietveld.py +20 -15
  253. data/vendor/depot_tools/roll_dep.py +1 -1
  254. data/vendor/depot_tools/scm.py +11 -826
  255. data/vendor/depot_tools/subprocess2.py +5 -5
  256. data/vendor/depot_tools/third_party/cq_client/README.depot_tools.md +2 -0
  257. data/vendor/depot_tools/third_party/cq_client/README.md +5 -1
  258. data/vendor/depot_tools/third_party/cq_client/cq.pb.go +183 -104
  259. data/vendor/depot_tools/third_party/cq_client/cq.proto +43 -27
  260. data/vendor/depot_tools/third_party/cq_client/cq_pb2.py +95 -29
  261. data/vendor/depot_tools/third_party/cq_client/testdata/cq_both.cfg +67 -0
  262. data/vendor/depot_tools/third_party/cq_client/testdata/cq_gerrit.cfg +1 -2
  263. data/vendor/depot_tools/third_party/cq_client/testdata/cq_rietveld.cfg +0 -3
  264. data/vendor/depot_tools/third_party/upload.py +44 -24
  265. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +0 -5
  266. metadata +38 -93
  267. data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +0 -25
  268. data/vendor/depot_tools/git-auto-svn +0 -6
  269. data/vendor/depot_tools/git_auto_svn.py +0 -122
  270. data/vendor/depot_tools/man/html/git-auto-svn.html +0 -837
  271. data/vendor/depot_tools/man/man1/git-auto-svn.1 +0 -113
  272. data/vendor/depot_tools/man/src/_git-auto-svn_desc.helper.txt +0 -1
  273. data/vendor/depot_tools/man/src/git-auto-svn.txt +0 -69
  274. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +0 -43
  275. data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +0 -31
  276. data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +0 -218
  277. data/vendor/depot_tools/recipe_modules/tryserver/test_api.py +0 -7
  278. data/vendor/depot_tools/third_party/gsutil/CHECKSUM +0 -1
  279. data/vendor/depot_tools/third_party/gsutil/COPYING +0 -202
  280. data/vendor/depot_tools/third_party/gsutil/LICENSE.third_party +0 -295
  281. data/vendor/depot_tools/third_party/gsutil/MANIFEST.in +0 -5
  282. data/vendor/depot_tools/third_party/gsutil/README +0 -38
  283. data/vendor/depot_tools/third_party/gsutil/README.chromium +0 -25
  284. data/vendor/depot_tools/third_party/gsutil/README.pkg +0 -49
  285. data/vendor/depot_tools/third_party/gsutil/ReleaseNotes.txt +0 -825
  286. data/vendor/depot_tools/third_party/gsutil/VERSION +0 -1
  287. data/vendor/depot_tools/third_party/gsutil/gslib/README +0 -5
  288. data/vendor/depot_tools/third_party/gsutil/gslib/__init__.py +0 -22
  289. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/__init__.py +0 -15
  290. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/acls.py +0 -234
  291. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/anon.py +0 -57
  292. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/command_opts.py +0 -116
  293. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/dev.py +0 -139
  294. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/metadata.py +0 -186
  295. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/naming.py +0 -173
  296. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/prod.py +0 -160
  297. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/projects.py +0 -130
  298. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/subdirs.py +0 -110
  299. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/support.py +0 -86
  300. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/versioning.py +0 -242
  301. data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/wildcards.py +0 -170
  302. data/vendor/depot_tools/third_party/gsutil/gslib/bucket_listing_ref.py +0 -175
  303. data/vendor/depot_tools/third_party/gsutil/gslib/command.py +0 -725
  304. data/vendor/depot_tools/third_party/gsutil/gslib/command_runner.py +0 -102
  305. data/vendor/depot_tools/third_party/gsutil/gslib/commands/__init__.py +0 -15
  306. data/vendor/depot_tools/third_party/gsutil/gslib/commands/cat.py +0 -131
  307. data/vendor/depot_tools/third_party/gsutil/gslib/commands/chacl.py +0 -523
  308. data/vendor/depot_tools/third_party/gsutil/gslib/commands/config.py +0 -662
  309. data/vendor/depot_tools/third_party/gsutil/gslib/commands/cp.py +0 -1819
  310. data/vendor/depot_tools/third_party/gsutil/gslib/commands/disablelogging.py +0 -101
  311. data/vendor/depot_tools/third_party/gsutil/gslib/commands/enablelogging.py +0 -149
  312. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getacl.py +0 -82
  313. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getcors.py +0 -121
  314. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getdefacl.py +0 -86
  315. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getlogging.py +0 -137
  316. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getversioning.py +0 -116
  317. data/vendor/depot_tools/third_party/gsutil/gslib/commands/getwebcfg.py +0 -122
  318. data/vendor/depot_tools/third_party/gsutil/gslib/commands/help.py +0 -218
  319. data/vendor/depot_tools/third_party/gsutil/gslib/commands/ls.py +0 -578
  320. data/vendor/depot_tools/third_party/gsutil/gslib/commands/mb.py +0 -172
  321. data/vendor/depot_tools/third_party/gsutil/gslib/commands/mv.py +0 -159
  322. data/vendor/depot_tools/third_party/gsutil/gslib/commands/perfdiag.py +0 -903
  323. data/vendor/depot_tools/third_party/gsutil/gslib/commands/rb.py +0 -113
  324. data/vendor/depot_tools/third_party/gsutil/gslib/commands/rm.py +0 -237
  325. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setacl.py +0 -138
  326. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setcors.py +0 -145
  327. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setdefacl.py +0 -105
  328. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setmeta.py +0 -420
  329. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setversioning.py +0 -114
  330. data/vendor/depot_tools/third_party/gsutil/gslib/commands/setwebcfg.py +0 -190
  331. data/vendor/depot_tools/third_party/gsutil/gslib/commands/update.py +0 -305
  332. data/vendor/depot_tools/third_party/gsutil/gslib/commands/version.py +0 -150
  333. data/vendor/depot_tools/third_party/gsutil/gslib/exception.py +0 -76
  334. data/vendor/depot_tools/third_party/gsutil/gslib/help_provider.py +0 -81
  335. data/vendor/depot_tools/third_party/gsutil/gslib/name_expansion.py +0 -550
  336. data/vendor/depot_tools/third_party/gsutil/gslib/no_op_auth_plugin.py +0 -30
  337. data/vendor/depot_tools/third_party/gsutil/gslib/plurality_checkable_iterator.py +0 -56
  338. data/vendor/depot_tools/third_party/gsutil/gslib/project_id.py +0 -67
  339. data/vendor/depot_tools/third_party/gsutil/gslib/storage_uri_builder.py +0 -56
  340. data/vendor/depot_tools/third_party/gsutil/gslib/thread_pool.py +0 -79
  341. data/vendor/depot_tools/third_party/gsutil/gslib/util.py +0 -167
  342. data/vendor/depot_tools/third_party/gsutil/gslib/wildcard_iterator.py +0 -498
  343. data/vendor/depot_tools/third_party/gsutil/gsutil +0 -384
  344. data/vendor/depot_tools/third_party/gsutil/gsutil.spec.in +0 -75
  345. data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/__init__.py +0 -22
  346. data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client.py +0 -630
  347. data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client_test.py +0 -374
  348. data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_helper.py +0 -103
  349. data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_plugin.py +0 -24
  350. data/vendor/depot_tools/third_party/gsutil/pkg_util.py +0 -60
  351. data/vendor/depot_tools/third_party/gsutil/plugins/__init__.py +0 -0
  352. data/vendor/depot_tools/third_party/gsutil/plugins/sso_auth.py +0 -105
@@ -1,384 +0,0 @@
1
- #!/usr/bin/env python
2
- # coding=utf8
3
- # Copyright 2010 Google Inc. All Rights Reserved.
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # http://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- """Main module for Google Cloud Storage command line tool."""
18
-
19
-
20
- import ConfigParser
21
- import errno
22
- import getopt
23
- import logging
24
- import os
25
- import re
26
- import signal
27
- import socket
28
- import sys
29
- import traceback
30
-
31
- third_party_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
32
- sys.path.insert(0, os.path.dirname(third_party_dir))
33
- sys.path.insert(0, third_party_dir)
34
-
35
-
36
- def _OutputAndExit(message):
37
- global debug
38
- if debug == 4:
39
- stack_trace = traceback.format_exc()
40
- sys.stderr.write('DEBUG: Exception stack trace:\n %s\n' %
41
- re.sub('\\n', '\n ', stack_trace))
42
- else:
43
- sys.stderr.write('%s\n' % message)
44
- sys.exit(1)
45
-
46
-
47
- def _OutputUsageAndExit(command_runner):
48
- command_runner.RunNamedCommand('help')
49
- sys.exit(1)
50
-
51
-
52
- debug = 0
53
- # Before importing boto, find where gsutil is installed and include its
54
- # boto sub-directory at the start of the PYTHONPATH, to ensure the versions of
55
- # gsutil and boto stay in sync after software updates. This also allows gsutil
56
- # to be used without explicitly adding it to the PYTHONPATH.
57
- # We use realpath() below to unwind symlinks if any were used in the gsutil
58
- # installation.
59
- gsutil_bin_dir = os.path.dirname(os.path.realpath(sys.argv[0]))
60
- if not gsutil_bin_dir:
61
- _OutputAndExit('Unable to determine where gsutil is installed. Sorry, '
62
- 'cannot run correctly without this.\n')
63
- boto_lib_dir = os.path.join(gsutil_bin_dir, '..', 'boto')
64
- if not os.path.isdir(boto_lib_dir):
65
- _OutputAndExit('There is no boto library under the gsutil install directory '
66
- '(%s).\nThe gsutil command cannot work properly when installed '
67
- 'this way.\nPlease re-install gsutil per the installation '
68
- 'instructions.' % gsutil_bin_dir)
69
- # sys.path.insert(0, boto_lib_dir)
70
- import boto
71
- from boto.exception import BotoClientError
72
- from boto.exception import InvalidAclError
73
- from boto.exception import InvalidUriError
74
- from boto.exception import ResumableUploadException
75
- from boto.exception import StorageResponseError
76
- from gslib.command_runner import CommandRunner
77
- from gslib.exception import CommandException
78
- from gslib.exception import ProjectIdException
79
- from gslib import util
80
- from gslib.util import ExtractErrorDetail
81
- from gslib.util import HasConfiguredCredentials
82
- from gslib.wildcard_iterator import WildcardException
83
-
84
- # Load the gsutil version number and append it to boto.UserAgent so the value
85
- # is set before anything instantiates boto. (If parts of boto were instantiated
86
- # first those parts would have the old value of boto.UserAgent, so we wouldn't
87
- # be guaranteed that all code paths send the correct user agent.)
88
- ver_file_path = os.path.join(gsutil_bin_dir, 'VERSION')
89
- if not os.path.isfile(ver_file_path):
90
- raise CommandException(
91
- '%s not found. Please reinstall gsutil from scratch' % ver_file_path)
92
- ver_file = open(ver_file_path, 'r')
93
- gsutil_ver = ver_file.read().rstrip()
94
- ver_file.close()
95
- boto.UserAgent += ' gsutil/%s (%s)' % (gsutil_ver, sys.platform)
96
-
97
- # We don't use the oauth2 authentication plugin directly; importing it here
98
- # ensures that it's loaded and available by default when an operation requiring
99
- # authentication is performed.
100
- try:
101
- from oauth2_plugin import oauth2_plugin
102
- except ImportError:
103
- pass
104
-
105
-
106
- def main():
107
- global debug
108
-
109
- if sys.version_info[:3] < (2, 6):
110
- raise CommandException('gsutil requires Python 2.6 or higher.')
111
-
112
- bypass_prodaccess = False
113
- config_file_list = _GetBotoConfigFileList()
114
- command_runner = CommandRunner(gsutil_bin_dir, boto_lib_dir, config_file_list,
115
- gsutil_ver)
116
- headers = {}
117
- parallel_operations = False
118
- debug = 0
119
-
120
- # If user enters no commands just print the usage info.
121
- if len(sys.argv) == 1:
122
- sys.argv.append('help')
123
-
124
- # Change the default of the 'https_validate_certificates' boto option to
125
- # True (it is currently False in boto).
126
- if not boto.config.has_option('Boto', 'https_validate_certificates'):
127
- if not boto.config.has_section('Boto'):
128
- boto.config.add_section('Boto')
129
- boto.config.setbool('Boto', 'https_validate_certificates', True)
130
-
131
- try:
132
- opts, args = getopt.getopt(sys.argv[1:], 'dDvh:mb',
133
- ['debug', 'detailedDebug', 'version', 'help',
134
- 'header', 'multithreaded',
135
- 'bypass_prodaccess'])
136
- except getopt.GetoptError, e:
137
- _HandleCommandException(CommandException(e.msg))
138
- for o, a in opts:
139
- if o in ('-d', '--debug'):
140
- # Passing debug=2 causes boto to include httplib header output.
141
- debug = 2
142
- if o in ('-D', '--detailedDebug'):
143
- # We use debug level 3 to ask gsutil code to output more detailed
144
- # debug output. This is a bit of a hack since it overloads the same
145
- # flag that was originally implemented for boto use. And we use -DD
146
- # to ask for really detailed debugging (i.e., including HTTP payload).
147
- if debug == 3:
148
- debug = 4
149
- else:
150
- debug = 3
151
- if o in ('-?', '--help'):
152
- _OutputUsageAndExit(command_runner)
153
- if o in ('-h', '--header'):
154
- (hdr_name, unused_ptn, hdr_val) = a.partition(':')
155
- if not hdr_name:
156
- _OutputUsageAndExit(command_runner)
157
- headers[hdr_name] = hdr_val
158
- if o in ('-m', '--multithreaded'):
159
- parallel_operations = True
160
- if o in ('-b', '--bypass_prodaccess'):
161
- bypass_prodaccess = True
162
- if debug > 1:
163
- sys.stderr.write(
164
- '***************************** WARNING *****************************\n'
165
- '*** You are running gsutil with debug output enabled.\n'
166
- '*** Be aware that debug output includes authentication '
167
- 'credentials.\n'
168
- '*** Do not share (e.g., post to support forums) debug output\n'
169
- '*** unless you have sanitized authentication tokens in the\n'
170
- '*** output, or have revoked your credentials.\n'
171
- '***************************** WARNING *****************************\n')
172
- if debug == 2:
173
- logging.basicConfig(level=logging.INFO)
174
- elif debug > 2:
175
- logging.basicConfig(level=logging.DEBUG)
176
- command_runner.RunNamedCommand('ver')
177
- config_items = []
178
- try:
179
- config_items.extend(boto.config.items('Boto'))
180
- config_items.extend(boto.config.items('GSUtil'))
181
- except ConfigParser.NoSectionError:
182
- pass
183
- sys.stderr.write('config_file_list: %s\n' % config_file_list)
184
- sys.stderr.write('config: %s\n' % str(config_items))
185
- else:
186
- logging.basicConfig()
187
-
188
- if not args:
189
- command_name = 'help'
190
- else:
191
- command_name = args[0]
192
-
193
- if not bypass_prodaccess:
194
- import plugins.sso_auth
195
-
196
- return _RunNamedCommandAndHandleExceptions(command_runner, command_name,
197
- args[1:], headers, debug,
198
- parallel_operations,
199
- bypass_prodaccess)
200
-
201
-
202
- def _GetBotoConfigFileList():
203
- """Returns list of boto config files that exist."""
204
- config_paths = boto.pyami.config.BotoConfigLocations
205
- if 'AWS_CREDENTIAL_FILE' in os.environ:
206
- config_paths.append(os.environ['AWS_CREDENTIAL_FILE'])
207
- config_files = {}
208
- for config_path in config_paths:
209
- if os.path.exists(config_path):
210
- config_files[config_path] = 1
211
- cf_list = []
212
- for config_file in config_files:
213
- cf_list.append(config_file)
214
- return cf_list
215
-
216
-
217
- def _HandleUnknownFailure(e):
218
- global debug
219
- # Called if we fall through all known/handled exceptions. Allows us to
220
- # print a stacktrace if -D option used.
221
- if debug > 2:
222
- stack_trace = traceback.format_exc()
223
- sys.stderr.write('DEBUG: Exception stack trace:\n %s\n' %
224
- re.sub('\\n', '\n ', stack_trace))
225
- else:
226
- _OutputAndExit('Failure: %s.' % e)
227
-
228
-
229
- def _HandleCommandException(e):
230
- if e.informational:
231
- _OutputAndExit(e.reason)
232
- else:
233
- _OutputAndExit('CommandException: %s' % e.reason)
234
-
235
-
236
- def _HandleControlC(signal_num, cur_stack_frame):
237
- """Called when user hits ^C so we can print a brief message instead of
238
- the normal Python stack trace (unless -D option is used)."""
239
- global debug
240
- if debug > 2:
241
- stack_trace = ''.join(traceback.format_list(traceback.extract_stack()))
242
- _OutputAndExit('DEBUG: Caught signal %d - Exception stack trace:\n'
243
- ' %s' % (signal_num, re.sub('\\n', '\n ', stack_trace)))
244
- else:
245
- _OutputAndExit('Caught signal %d - exiting' % signal_num)
246
-
247
-
248
- def _HandleSigQuit(signal_num, cur_stack_frame):
249
- """Called when user hits ^\, so we can force breakpoint a running gsutil."""
250
- import pdb; pdb.set_trace()
251
-
252
-
253
- def _RunNamedCommandAndHandleExceptions(command_runner, command_name, args=None,
254
- headers=None, debug=0,
255
- parallel_operations=False,
256
- bypass_prodaccess=False):
257
- try:
258
- # Catch ^C so we can print a brief message instead of the normal Python
259
- # stack trace.
260
- signal.signal(signal.SIGINT, _HandleControlC)
261
- # Catch ^\ so we can force a breakpoint in a running gsutil.
262
- if not util.IS_WINDOWS:
263
- signal.signal(signal.SIGQUIT, _HandleSigQuit)
264
- return command_runner.RunNamedCommand(command_name, args, headers, debug,
265
- parallel_operations,
266
- bypass_prodaccess=bypass_prodaccess)
267
- except AttributeError, e:
268
- if str(e).find('secret_access_key') != -1:
269
- _OutputAndExit('Missing credentials for the given URI(s). Does your '
270
- 'boto config file contain all needed credentials?')
271
- else:
272
- _OutputAndExit(str(e))
273
- except BotoClientError, e:
274
- _OutputAndExit('BotoClientError: %s.' % e.reason)
275
- except CommandException, e:
276
- _HandleCommandException(e)
277
- except getopt.GetoptError, e:
278
- _HandleCommandException(CommandException(e.msg))
279
- except InvalidAclError, e:
280
- _OutputAndExit('InvalidAclError: %s.' % str(e))
281
- except InvalidUriError, e:
282
- _OutputAndExit('InvalidUriError: %s.' % e.message)
283
- except ProjectIdException, e:
284
- _OutputAndExit('ProjectIdException: %s.' % e.reason)
285
- except boto.auth_handler.NotReadyToAuthenticate:
286
- _OutputAndExit('NotReadyToAuthenticate')
287
- except OSError, e:
288
- _OutputAndExit('OSError: %s.' % e.strerror)
289
- except WildcardException, e:
290
- _OutputAndExit(e.reason)
291
- except StorageResponseError, e:
292
- # Check for access denied, and provide detail to users who have no boto
293
- # config file (who might previously have been using gsutil only for
294
- # accessing publicly readable buckets and objects).
295
- if e.status == 403:
296
- if not HasConfiguredCredentials(bypass_prodaccess):
297
- _OutputAndExit(
298
- 'You are attempting to access protected data with no configured '
299
- 'credentials.\nPlease see '
300
- 'http://code.google.com/apis/storage/docs/signup.html for\ndetails '
301
- 'about activating the Google Cloud Storage service and then run '
302
- 'the\n"gsutil config" command to configure gsutil to use these '
303
- 'credentials.')
304
- elif (e.error_code == 'AccountProblem'
305
- and ','.join(args).find('gs://') != -1):
306
- default_project_id = boto.config.get_value('GSUtil',
307
- 'default_project_id')
308
- acct_help_part_1 = (
309
- """Your request resulted in an AccountProblem (403) error. Usually this happens
310
- if you attempt to create a bucket or upload an object without having first
311
- enabled billing for the project you are using. To remedy this problem, please do
312
- the following:
313
-
314
- 1. Navigate to the Google APIs console (https://code.google.com/apis/console),
315
- and ensure the drop-down selector beneath "Google APIs" shows the project
316
- you're attempting to use.
317
-
318
- """)
319
- acct_help_part_2 = '\n'
320
- if default_project_id:
321
- acct_help_part_2 = (
322
- """2. Click "Google Cloud Storage" on the left hand pane, and then check that
323
- the value listed for "x-goog-project-id" on this page matches the project ID
324
- (%s) from your boto config file.
325
-
326
- """ % default_project_id)
327
- acct_help_part_3 = (
328
- """Check whether there's an "!" next to Billing. If so, click Billing and then
329
- enable billing for this project. Note that it can take up to one hour after
330
- enabling billing for the project to become activated for creating buckets and
331
- uploading objects.
332
-
333
- If the above doesn't resolve your AccountProblem, please send mail to
334
- gs-team@google.com requesting assistance, noting the exact command you ran, the
335
- fact that you received a 403 AccountProblem error, and your project ID. Please
336
- do not post your project ID on the public discussion forum (gs-discussion) or on
337
- StackOverflow.
338
-
339
- Note: It's possible to use Google Cloud Storage without enabling billing if
340
- you're only listing or reading objects for which you're authorized, or if
341
- you're uploading objects to a bucket billed to a project that has billing
342
- enabled. But if you're attempting to create buckets or upload objects to a
343
- bucket owned by your own project, you must first enable billing for that
344
- project.""")
345
- if default_project_id:
346
- _OutputAndExit(acct_help_part_1 + acct_help_part_2 + '3. '
347
- + acct_help_part_3)
348
- else:
349
- _OutputAndExit(acct_help_part_1 + '2. ' + acct_help_part_3)
350
-
351
- if not e.body:
352
- e.body = ''
353
- exc_name, error_detail = ExtractErrorDetail(e)
354
- if error_detail:
355
- _OutputAndExit('%s: status=%d, code=%s, reason=%s, detail=%s.' %
356
- (exc_name, e.status, e.code, e.reason, error_detail))
357
- else:
358
- _OutputAndExit('%s: status=%d, code=%s, reason=%s.' %
359
- (exc_name, e.status, e.code, e.reason))
360
- except ResumableUploadException, e:
361
- _OutputAndExit('ResumableUploadException: %s.' % e.message)
362
- except socket.error, e:
363
- if e.args[0] == errno.EPIPE:
364
- # Retrying with a smaller file (per suggestion below) works because
365
- # the library code send loop (in boto/s3/key.py) can get through the
366
- # entire file and then request the HTTP response before the socket
367
- # gets closed and the response lost.
368
- message = (
369
- """
370
- Got a "Broken pipe" error. This can happen to clients using Python 2.x,
371
- when the server sends an error response and then closes the socket (see
372
- http://bugs.python.org/issue5542). If you are trying to upload a large
373
- object you might retry with a small (say 200k) object, and see if you get
374
- a more specific error code.
375
- """)
376
- _OutputAndExit(message)
377
- else:
378
- _HandleUnknownFailure(e)
379
- except Exception, e:
380
- _HandleUnknownFailure(e)
381
-
382
-
383
- if __name__ == '__main__':
384
- sys.exit(main())
@@ -1,75 +0,0 @@
1
- #
2
- # gsutil.spec - RPM specification file for Google Cloud Storage command
3
- # line utility (gsutil).
4
- #
5
- # Copyright 2011 Google Inc.
6
- #
7
-
8
- Name: gsutil
9
- Version: 2.0
10
- Release: 1%{?dist}
11
- Summary: gsutil command line utility for Google Cloud Storage
12
- License: ASL 2.0
13
- Group: Development/Libraries
14
- Url: http://code.google.com/apis/storage/docs/gsutil.html
15
- Source0: http://gsutil.googlecode.com/files/%{name}-%{version}.zip
16
- BuildArch: noarch
17
- BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
18
- # Dependency on boto commented out for now because initially we plan to
19
- # bundle boto with this package, however, when we're ready to depend on
20
- # a separate boto rpm package, this line should be uncommented.
21
- #Requires: python-boto
22
-
23
- %description
24
-
25
- GSUtil is a Python application that facilitates access to Google Cloud Storage
26
- from the command line. You can use GSUtil to do a wide range of bucket and
27
- object management tasks, including:
28
-
29
- - Creating and deleting buckets.
30
- - Uploading, downloading, and deleting objects.
31
- - Listing buckets and objects.
32
- - Moving, copying, and renaming objects.
33
- - Setting object and bucket ACLs.
34
-
35
- %prep
36
- %setup -q
37
-
38
- %build
39
- python setup.py build
40
-
41
- %install
42
- python setup.py install --skip-build --root=%{buildroot}
43
- # Make all files and dirs in build area readable by other
44
- # and make all directories executable by other. These steps
45
- # are performed in support of the rpm installation mode,
46
- # in which users with different user/group than the
47
- # installation user/group must be able to run gsutil.
48
- chmod -R o+r %{buildroot}/usr/share/gsutil
49
- find %{buildroot}/usr/share/gsutil -type d | xargs chmod o+x
50
- # Make main gsutil script readable and executable by other.
51
- chmod o+rx %{buildroot}/usr/share/gsutil/gsutil
52
- # Remove Python egg file, which we don't use (but setup.py insists on
53
- # building) so we remove it here.
54
- rm %{buildroot}/usr/local/lib/python2.6/dist-packages/gsutil-2.0.egg-info
55
- # Remove update command, which shouldn't be used when gsutil is managed by RPM.
56
- rm %{buildroot}/usr/share/gsutil/gslib/commands/update.py
57
- # Create /usr/bin under buildroot and symlink gsutil so users don't
58
- # need to add a custom directory to their PATH.
59
- mkdir -p %{buildroot}%{_bindir}
60
- cd %{buildroot}%{_bindir}
61
- ln -s ../share/gsutil/gsutil gsutil
62
-
63
- %clean
64
- rm -rf %{buildroot}
65
-
66
- %files
67
- %defattr(-,root,root,-)
68
- # Lines ending with a slash cause recursive enumeration of directory contents.
69
- %{_bindir}/%{name}
70
- ###FILES_GO_HERE###
71
-
72
- %changelog
73
- * Tue Dec 10 2011 Marc Cohen <gs-team@google.com> 2.0-1
74
- - initial version of rpm spec file for gsutil for inclusion in RHEL
75
-