-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
905 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[flake8] | ||
ignore = E501, W503 | ||
exclude = *_pb2.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[mypy] | ||
python_version = 3.6 | ||
ignore_missing_imports = True | ||
|
||
|
||
[mypy-synthtool.protos.*] | ||
ignore_errors = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"jinja2", | ||
"packaging", | ||
"requests", | ||
"protobuf", | ||
] | ||
|
||
packages = setuptools.find_packages() | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright 2018 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package yoshi.synth.metadata; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
|
||
message Metadata { | ||
google.protobuf.Timestamp update_time = 1; | ||
|
||
repeated Source sources = 2; | ||
repeated Destination destinations = 3; | ||
} | ||
|
||
message Source { | ||
oneof source { | ||
GitSource git = 1; | ||
GeneratorSource generator = 2; | ||
TemplateSource template = 3; | ||
} | ||
} | ||
|
||
message GitSource { | ||
string name = 1; | ||
string remote = 2; | ||
string sha = 3; | ||
|
||
// If this Git is a mirror of an internal repository, such as google3 or | ||
// Git-on-Borg, you can include an internal ref to it here. | ||
string internal_ref = 4; | ||
} | ||
|
||
message GeneratorSource { | ||
string name = 1; | ||
string version = 2; | ||
} | ||
|
||
message TemplateSource { | ||
string name = 1; | ||
string origin = 2; | ||
string version = 3; | ||
} | ||
|
||
message Destination { | ||
oneof Destination { | ||
ClientDestination client = 1; | ||
FileSetDestination fileset = 2; | ||
} | ||
} | ||
|
||
message ClientDestination { | ||
string api_name = 1; | ||
string api_version = 2; | ||
string generator = 3; | ||
string source = 4; | ||
} | ||
|
||
message FileSetDestination { | ||
string source = 1; | ||
repeated string files = 2; | ||
} |
Oops, something went wrong.