Rewrote protobuf generation scripts in Python (#12527)

This commit is contained in:
Avasam
2024-09-19 02:11:21 -04:00
committed by GitHub
parent 0689736dce
commit c025e37bbb
11 changed files with 383 additions and 248 deletions

View File

@@ -1,12 +1,12 @@
# Whenever you update version here, TENSORFLOW_VERSION should be updated
# in scripts/sync_tensorflow_protobuf_stubs.sh and vice-versa.
# Whenever you update version here, PACKAGE_VERSION should be updated
# in scripts/sync_proto/tensorflow.py and vice-versa.
version = "2.17.*"
upstream_repository = "https://github.com/tensorflow/tensorflow"
# requires a version of numpy with a `py.typed` file
# see https://github.com/python/typeshed/issues/12551
# on why we need the upper bound for numpy
requires = ["numpy>=1.20,<2.1.0", "types-protobuf", "types-requests"]
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 26.1 on tensorflow==2.17.0 ."
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 26.1 on `tensorflow==2.17.0`."
partial_stub = true
[tool.stubtest]