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

Unified Diff: vpython/api/env/spec.proto

Issue 2703463006: vpython: Add README and environment protobuf. (Closed)
Patch Set: comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vpython/api/env/gen.go ('k') | vpython/api/env/spec.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/api/env/spec.proto
diff --git a/vpython/api/env/spec.proto b/vpython/api/env/spec.proto
new file mode 100644
index 0000000000000000000000000000000000000000..91b20bcf65d79ba93c33ad7e83aab27e41ec1c26
--- /dev/null
+++ b/vpython/api/env/spec.proto
@@ -0,0 +1,46 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+syntax = "proto3";
+
+package env;
+
+
+message Spec {
+ // The Python version to use. This should be of the form:
+ // "Major[.Minor[.Patch]]"
+ //
+ // If specified,
+ // - The Major version will be enforced absolutely. Python 3 will not be
+ // preferred over Python 2 because '3' is greater than '2'.
+ // - The remaining versions, if specified, will be regarded as *minimum*
+ // versions. In other words, if "2.7.4" is specified and the system has
+ // "2.7.12", that will suffice. Similarly, "2.6" would accept a "2.7"
+ // interpreter.
+ //
+ // If empty, the default Python interpreter ("python") will be used.
+ string python_version = 1;
+
+ // A definition for a remote package. The type of package depends on the
+ // configured package resolver.
+ message Package {
+ // The path of the package.
+ //
+ // - For CIPD, this is the package name.
+ string path = 1;
+
+ // The package version.
+ //
+ // - For CIPD, this will be any recognized CIPD version (i.e., ID, tag, or
+ // ref).
+ string version = 2;
+ }
+ repeated Package wheel = 2;
+
+ // The VirtualEnv package.
+ //
+ // This should be left empty to use the `vpython` default package
+ // (recommended).
+ Package virtualenv = 3;
+}
« no previous file with comments | « vpython/api/env/gen.go ('k') | vpython/api/env/spec.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698