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

Side by Side Diff: bootstrap/update_vendoring.py

Issue 2164713003: Vendor requests. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix deps.pyl Created 4 years, 5 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 | « bootstrap/deps.pyl ('k') | recipe_engine/third_party/requests/.gitignore » ('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 2016 The LUCI Authors. All rights reserved. 2 # Copyright 2016 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed under the Apache License, Version 2.0 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 """Regenerates vendored components and derivative files from external sources. 6 """Regenerates vendored components and derivative files from external sources.
7 7
8 This is a utililty script that is intended to be run on a Linux-based system. 8 This is a utililty script that is intended to be run on a Linux-based system.
9 Other operating systems may work, but are not supported. 9 Other operating systems may work, but are not supported.
10 10
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 self._reldest = reldest 160 self._reldest = reldest
161 self._name = name 161 self._name = name
162 self._version = version 162 self._version = version
163 163
164 def run(self, c, workdir): 164 def run(self, c, workdir):
165 dest = c.dest(self._reldest) 165 dest = c.dest(self._reldest)
166 166
167 install_dir = os.path.join(workdir, 'six') 167 install_dir = os.path.join(workdir, 'six')
168 c.check_call(['pip', 'install', '--verbose', '-t', install_dir, 168 c.check_call(['pip', 'install', '--verbose', '-t', install_dir,
169 '%s==%s' % (self._name, self._version)]) 169 '%s==%s' % (self._name, self._version)])
170
170 c.vendor_dir(install_dir, dest) 171 c.vendor_dir(install_dir, dest)
171 172
172 173
173 class _VendoredLuciGoProto(_ActionBase): 174 class _VendoredLuciGoProto(_ActionBase):
174 """Uses the installed `protoc` tool to compile Python protobufs from the 175 """Uses the installed `protoc` tool to compile Python protobufs from the
175 `luci-go` repository, and installs those protobufs into a vendored 176 `luci-go` repository, and installs those protobufs into a vendored
176 destination. 177 destination.
177 """ 178 """
178 179
179 _REPO = 'https://github.com/luci/luci-go' 180 _REPO = 'https://github.com/luci/luci-go'
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 c.check_call([c.tool('protoc'), '-I', d, '--python_out', outdir] + 243 c.check_call([c.tool('protoc'), '-I', d, '--python_out', outdir] +
243 all_proto) 244 all_proto)
244 245
245 246
246 _ACTIONS = ( 247 _ACTIONS = (
247 _VendoredPipPackage( 248 _VendoredPipPackage(
248 'recipe_engine/third_party/six', 249 'recipe_engine/third_party/six',
249 name='six', 250 name='six',
250 version='1.10.0'), 251 version='1.10.0'),
251 252
253 _VendoredPipPackage(
254 'recipe_engine/third_party/requests',
255 name='requests',
256 version='2.10.0'),
257
252 _VendoredGitRepo( 258 _VendoredGitRepo(
253 'recipe_engine/third_party/client-py/libs', 259 'recipe_engine/third_party/client-py/libs',
254 repo='https://github.com/luci/client-py', 260 repo='https://github.com/luci/client-py',
255 ref='origin/master', 261 ref='origin/master',
256 subpath='libs'), 262 subpath='libs'),
257 263
258 # All actions that rely on "protoc" must happen after this one. 264 # All actions that rely on "protoc" must happen after this one.
259 _VendoredPythonProtobuf( 265 _VendoredPythonProtobuf(
260 'recipe_engine/third_party/google', 266 'recipe_engine/third_party/google',
261 repo='https://github.com/google/protobuf', 267 repo='https://github.com/google/protobuf',
(...skipping 22 matching lines...) Expand all
284 vdir = os.path.join(td, 'vendor_%d' % (i,)) 290 vdir = os.path.join(td, 'vendor_%d' % (i,))
285 os.makedirs(vdir) 291 os.makedirs(vdir)
286 292
287 # Execute the vendor script. 293 # Execute the vendor script.
288 act.run(c, vdir) 294 act.run(c, vdir)
289 295
290 296
291 if __name__ == '__main__': 297 if __name__ == '__main__':
292 logging.basicConfig(level=logging.DEBUG) 298 logging.basicConfig(level=logging.DEBUG)
293 sys.exit(main(sys.argv[1:])) 299 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « bootstrap/deps.pyl ('k') | recipe_engine/third_party/requests/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698