Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 3f2badc

Browse files
authored
Python proto file generator and generated proto files (#196)
* Add scripts to generate python files from proto. * Run scripts.
1 parent a9646cb commit 3f2badc

File tree

12 files changed

+3895
-0
lines changed

12 files changed

+3895
-0
lines changed

RELEASING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ $ git add -A
4949
$ git commit -m "Update gen-ruby files."
5050
```
5151

52+
## Release Python files
53+
54+
To generate the Python files from protos, you'll need to install grpc-tools from PIP.
55+
56+
```bash
57+
python -m pip install grpcio-tools
58+
```
59+
60+
Then run the following commands to re-generate the gen-python files:
61+
62+
```bash
63+
$ git checkout -b update-gen-python # Assume you're under opencensus-proto/
64+
$ rm -rf gen-python
65+
$ cd src
66+
$ ./mkpygen.sh
67+
$ git add -A
68+
$ git commit -m "Update gen-python files."
69+
```
70+
5271
## Tagging the Release
5372

5473
Our release branches follow the naming convention of `v<major>.<minor>.x`, while the tags include the

gen-python/opencensus/proto/agent/common/v1/common_pb2.py

Lines changed: 347 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)