Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The LUCI Authors. All rights reserved. | |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | |
| 3 // that can be found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto3"; | |
| 6 | |
| 7 package env; | |
| 8 | |
| 9 | |
| 10 message Spec { | |
| 11 // The Python version to use. This should be of the form: | |
| 12 // "Major[.Minor[.Patch]]" | |
| 13 // | |
| 14 // If specified, | |
| 15 // - The Major version will be enforced absolutely. Python 3 will not be | |
| 16 // preferred over Python 2 because '3' is greater than '2'. | |
| 17 // - The remaining versions, if specified, will be regarded as *minimum* | |
| 18 // versions. In other words, if "2.7.4" is specified and the system has | |
| 19 // "2.7.12", that will suffice. | |
|
iannucci
2017/02/20 21:18:31
And similarly '2.6' could get '2.7'?
This may lea
dnj
2017/02/22 06:39:11
Done. Yeah, in all likelihood we can just say "2"
| |
| 20 // | |
| 21 // If empty, the default Python interpreter ("python") will be used. | |
|
iannucci
2017/02/20 21:18:31
can we require that they specify at least a major
dnj
2017/02/22 06:39:11
Would we? Lots of packages are compatible with bot
| |
| 22 string python_version = 1; | |
| 23 | |
| 24 // A definition for a remote package. The type of package depends on the | |
| 25 // configured package resolver. | |
| 26 message Package { | |
| 27 // The path of the package. | |
| 28 // | |
| 29 // - For CIPD, this is the package name. | |
| 30 string path = 1; | |
| 31 | |
| 32 // The package version. | |
| 33 // | |
| 34 // - For CIPD, this will be a "version", which can include a "key:value" | |
| 35 // ref/tag. | |
|
iannucci
2017/02/20 21:18:30
"key:value" is a tag, "thing" is a ref
I would ju
dnj
2017/02/22 06:39:11
Done.
| |
| 36 string version = 2; | |
| 37 } | |
| 38 repeated Package wheel = 2; | |
| 39 | |
| 40 // The VirtualEnv package. | |
| 41 // | |
| 42 // This should be left empty to use the `vpython` default package | |
| 43 // (recommended). | |
| 44 Package virtualenv = 3; | |
| 45 } | |
| OLD | NEW |