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

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

Issue 1306633002: Overhaul Android support and make Swarming bot use python-adb (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Packaged libusb1 as a relative package to fix import paths Created 5 years, 3 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
« no previous file with comments | « no previous file | appengine/swarming/swarming_bot/adb » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Swarming Authors. All rights reserved. 2 # Copyright 2014 The Swarming Authors. All rights reserved.
3 # Use of this source code is governed by the Apache v2.0 license that can be 3 # Use of this source code is governed by the Apache v2.0 license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Generates the swarming_bot.zip archive for the bot. 6 """Generates the swarming_bot.zip archive for the bot.
7 7
8 Unlike the other scripts, this file can be run stand-alone to generate a 8 Unlike the other scripts, this file can be run stand-alone to generate a
9 swarming_bot.zip so it doesn't import anything from the AppEngine SDK. 9 swarming_bot.zip so it doesn't import anything from the AppEngine SDK.
10 10
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 'third_party/rsa/rsa/key.py', 137 'third_party/rsa/rsa/key.py',
138 'third_party/rsa/rsa/parallel.py', 138 'third_party/rsa/rsa/parallel.py',
139 'third_party/rsa/rsa/pem.py', 139 'third_party/rsa/rsa/pem.py',
140 'third_party/rsa/rsa/pkcs1.py', 140 'third_party/rsa/rsa/pkcs1.py',
141 'third_party/rsa/rsa/prime.py', 141 'third_party/rsa/rsa/prime.py',
142 'third_party/rsa/rsa/randnum.py', 142 'third_party/rsa/rsa/randnum.py',
143 'third_party/rsa/rsa/transform.py', 143 'third_party/rsa/rsa/transform.py',
144 'third_party/rsa/rsa/util.py', 144 'third_party/rsa/rsa/util.py',
145 'third_party/rsa/rsa/varblock.py', 145 'third_party/rsa/rsa/varblock.py',
146 'platforms/__init__.py', 146 'platforms/__init__.py',
147 'platforms/android.py',
147 'platforms/gce.py', 148 'platforms/gce.py',
148 'platforms/linux.py', 149 'platforms/linux.py',
149 'platforms/osx.py', 150 'platforms/osx.py',
150 'platforms/posix.py', 151 'platforms/posix.py',
151 'platforms/win.py', 152 'platforms/win.py',
152 'utils/__init__.py', 153 'utils/__init__.py',
153 'utils/cacert.pem', 154 'utils/cacert.pem',
154 'utils/file_path.py', 155 'utils/file_path.py',
155 'utils/logging_utils.py', 156 'utils/logging_utils.py',
156 'utils/lru.py', 157 'utils/lru.py',
157 'utils/net.py', 158 'utils/net.py',
158 'utils/oauth.py', 159 'utils/oauth.py',
159 'utils/on_error.py', 160 'utils/on_error.py',
160 'utils/subprocess42.py', 161 'utils/subprocess42.py',
161 'utils/threading_utils.py', 162 'utils/threading_utils.py',
162 'utils/tools.py', 163 'utils/tools.py',
163 'utils/zip_package.py', 164 'utils/zip_package.py',
164 'xsrf_client.py', 165 'xsrf_client.py',
166
167 # TODO(maruel): Find a way to only include these on linux platforms but it's
168 # not that large so it is not a big deal.
169 'adb/__init__.py',
170 'adb/adb_commands.py',
171 'adb/adb_protocol.py',
172 'adb/common.py',
173 'adb/fastboot.py',
174 'adb/filesync_protocol.py',
175 'adb/usb_exceptions.py',
176 'python_libusb1/__init__.py',
177 'python_libusb1/libusb1.py',
178 'python_libusb1/usb1.py',
165 ) 179 )
166 180
167 def resolve_symlink(path): 181 def resolve_symlink(path):
168 """Processes path containing symlink on Windows. 182 """Processes path containing symlink on Windows.
169 183
170 This is needed to make ../swarming_bot/main_test.py pass on Windows because 184 This is needed to make ../swarming_bot/main_test.py pass on Windows because
171 git on Windows renders symlinks as normal files. 185 git on Windows renders symlinks as normal files.
172 """ 186 """
173 if sys.platform != 'win32' or os.path.isfile(path): 187 if sys.platform != 'win32' or os.path.isfile(path):
174 return path 188 return path
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 with open(os.path.join(swarming_bot_dir, 'bot_config.py'), 'rb') as f: 284 with open(os.path.join(swarming_bot_dir, 'bot_config.py'), 'rb') as f:
271 additionals = {'bot_config.py': f.read()} 285 additionals = {'bot_config.py': f.read()}
272 with open(zip_file, 'wb') as f: 286 with open(zip_file, 'wb') as f:
273 f.write( 287 f.write(
274 get_swarming_bot_zip(swarming_bot_dir, config['server'], additionals)) 288 get_swarming_bot_zip(swarming_bot_dir, config['server'], additionals))
275 return 0 289 return 0
276 290
277 291
278 if __name__ == '__main__': 292 if __name__ == '__main__':
279 sys.exit(main()) 293 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | appengine/swarming/swarming_bot/adb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698