-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload python package to PyPI (#433)
* Upload to PyPI Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * another typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * review feedback Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * circleci config typo Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * clean up Makefile Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * do pypi upload in build job Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * remove UnimplementedException from harness Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * py_test asserting requirements are in sync Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * update comment Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * typos Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * fix circleci env variables Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * nit Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * experiment with vars Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * experiment with vars Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * experiment with vars Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * stable state Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com> * remove testpypi upload Signed-off-by: Dmitriy Kunitskiy <dkunitskiy@lyft.com>
- Loading branch information
Dmitriy Kunitskiy
committed
Mar 15, 2021
1 parent
12afc6d
commit 4ff9878
Showing
26 changed files
with
370 additions
and
278 deletions.
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
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
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
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
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 was deleted.
Oops, something went wrong.
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
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,11 @@ | ||
load("@rules_python//python:defs.bzl", "py_library") | ||
load("@pgv_pip_deps//:requirements.bzl", "all_requirements") | ||
|
||
exports_files(["requirements.in", "setup.cfg"]) | ||
|
||
py_library( | ||
name = "validator_py", | ||
srcs = glob(["**/*.py"]), | ||
deps = all_requirements, | ||
visibility = ["//visibility:public"], | ||
) |
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,21 @@ | ||
# Protoc-gen-validate (PGV) | ||
While protocol buffers effectively guarantee the types of structured data, | ||
they cannot enforce semantic rules for values. This package is a python implementation | ||
of [protoc-gen-validate][pgv-home], which allows for runtime validation of various | ||
semantic assertions expressed as annotations on the protobuf schema. The syntax for all available annotations is | ||
in `validate.proto`. Implemented Python annotations are listed in the [rules comparison][rules-comparison]. | ||
|
||
### Example | ||
```python3 | ||
from entities_pb2 import Person | ||
from protoc_gen_validate.validator import validate, ValidationFailed | ||
|
||
p = Person(first_name="Foo", last_name="Bar", age=42) | ||
try: | ||
validate(p) | ||
except ValidationFailed as err: | ||
print(err) | ||
``` | ||
|
||
[pgv-home]: https://github.com/envoyproxy/protoc-gen-validate | ||
[rules-comparison]: https://github.com/envoyproxy/protoc-gen-validate/blob/main/rule_comparison.md |
Empty file.
Oops, something went wrong.