Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: appengine/swarming/server/bot_archive.py

Issue 1768993002: Update oauth2client to v2.0.1 and googleapiclient to v1.5.0. Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Swarming Authors. All rights reserved. 1 # Copyright 2014 The Swarming Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Generates the swarming_bot.zip archive for the bot. 5 """Generates the swarming_bot.zip archive for the bot.
6 6
7 Unlike the other source files, this file can be run from ../tools/bot_archive.py 7 Unlike the other source files, this file can be run from ../tools/bot_archive.py
8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't 8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't
9 import anything from the AppEngine SDK. 9 import anything from the AppEngine SDK.
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'third_party/depot_tools/__init__.py', 56 'third_party/depot_tools/__init__.py',
57 'third_party/depot_tools/fix_encoding.py', 57 'third_party/depot_tools/fix_encoding.py',
58 'third_party/depot_tools/subcommand.py', 58 'third_party/depot_tools/subcommand.py',
59 'third_party/httplib2/__init__.py', 59 'third_party/httplib2/__init__.py',
60 'third_party/httplib2/cacerts.txt', 60 'third_party/httplib2/cacerts.txt',
61 'third_party/httplib2/iri2uri.py', 61 'third_party/httplib2/iri2uri.py',
62 'third_party/httplib2/socks.py', 62 'third_party/httplib2/socks.py',
63 'third_party/oauth2client/__init__.py', 63 'third_party/oauth2client/__init__.py',
64 'third_party/oauth2client/_helpers.py', 64 'third_party/oauth2client/_helpers.py',
65 'third_party/oauth2client/_openssl_crypt.py', 65 'third_party/oauth2client/_openssl_crypt.py',
66 'third_party/oauth2client/_pure_python_crypt.py',
66 'third_party/oauth2client/_pycrypto_crypt.py', 67 'third_party/oauth2client/_pycrypto_crypt.py',
67 'third_party/oauth2client/client.py', 68 'third_party/oauth2client/client.py',
68 'third_party/oauth2client/clientsecrets.py', 69 'third_party/oauth2client/clientsecrets.py',
70 'third_party/oauth2client/contrib/__init__.py',
71 'third_party/oauth2client/contrib/gce.py',
72 'third_party/oauth2client/contrib/locked_file.py',
73 'third_party/oauth2client/contrib/multistore_file.py',
74 'third_party/oauth2client/contrib/xsrfutil.py',
69 'third_party/oauth2client/crypt.py', 75 'third_party/oauth2client/crypt.py',
70 'third_party/oauth2client/file.py', 76 'third_party/oauth2client/file.py',
71 'third_party/oauth2client/gce.py',
72 'third_party/oauth2client/keyring_storage.py',
73 'third_party/oauth2client/locked_file.py',
74 'third_party/oauth2client/multistore_file.py',
75 'third_party/oauth2client/service_account.py', 77 'third_party/oauth2client/service_account.py',
76 'third_party/oauth2client/tools.py', 78 'third_party/oauth2client/tools.py',
77 'third_party/oauth2client/util.py', 79 'third_party/oauth2client/util.py',
78 'third_party/oauth2client/xsrfutil.py',
79 'third_party/pyasn1/pyasn1/__init__.py', 80 'third_party/pyasn1/pyasn1/__init__.py',
80 'third_party/pyasn1/pyasn1/codec/__init__.py', 81 'third_party/pyasn1/pyasn1/codec/__init__.py',
81 'third_party/pyasn1/pyasn1/codec/ber/__init__.py', 82 'third_party/pyasn1/pyasn1/codec/ber/__init__.py',
82 'third_party/pyasn1/pyasn1/codec/ber/decoder.py', 83 'third_party/pyasn1/pyasn1/codec/ber/decoder.py',
83 'third_party/pyasn1/pyasn1/codec/ber/encoder.py', 84 'third_party/pyasn1/pyasn1/codec/ber/encoder.py',
84 'third_party/pyasn1/pyasn1/codec/ber/eoo.py', 85 'third_party/pyasn1/pyasn1/codec/ber/eoo.py',
85 'third_party/pyasn1/pyasn1/codec/cer/__init__.py', 86 'third_party/pyasn1/pyasn1/codec/cer/__init__.py',
86 'third_party/pyasn1/pyasn1/codec/cer/decoder.py', 87 'third_party/pyasn1/pyasn1/codec/cer/decoder.py',
87 'third_party/pyasn1/pyasn1/codec/cer/encoder.py', 88 'third_party/pyasn1/pyasn1/codec/cer/encoder.py',
88 'third_party/pyasn1/pyasn1/codec/der/__init__.py', 89 'third_party/pyasn1/pyasn1/codec/der/__init__.py',
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 h.update(str(len(name))) 294 h.update(str(len(name)))
294 h.update(name) 295 h.update(name)
295 h.update(str(len(content))) 296 h.update(str(len(content)))
296 h.update(content) 297 h.update(content)
297 except IOError: 298 except IOError:
298 logging.warning('Missing expected file. Hash will be invalid.') 299 logging.warning('Missing expected file. Hash will be invalid.')
299 bot_version = h.hexdigest() 300 bot_version = h.hexdigest()
300 logging.info( 301 logging.info(
301 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) 302 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version)
302 return bot_version 303 return bot_version
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698