Skip to content

Commit 71ea563

Browse files
committed
Update protobuf library and point HEAD to build on tf 2.3.0-rc0
PiperOrigin-RevId: 321403591
1 parent 21aea3d commit 71ea563

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

WORKSPACE

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ http_archive(
2424

2525
http_archive(
2626
name = "com_google_absl",
27-
sha256 = "acd93f6baaedc4414ebd08b33bebca7c7a46888916101d8c0b8083573526d070",
28-
strip_prefix = "abseil-cpp-43ef2148c0936ebf7cb4be6b19927a9d9d145b8f",
27+
sha256 = "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a", # SHARED_ABSL_SHA
28+
strip_prefix = "abseil-cpp-df3ea785d8c30a9503321a3d35ee7d35808f190d",
2929
urls = [
30-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz",
31-
"https://github.com/abseil/abseil-cpp/archive/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz",
30+
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
31+
"https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
3232
],
3333
)
3434

@@ -52,6 +52,16 @@ http_archive(
5252
],
5353
)
5454

55+
http_archive(
56+
name = "com_google_protobuf",
57+
sha256 = "cfcba2df10feec52a84208693937c17a4b5df7775e1635c1e3baffc487b24c9b",
58+
strip_prefix = "protobuf-3.9.2",
59+
urls = [
60+
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/protocolbuffers/protobuf/archive/v3.9.2.zip",
61+
"https://github.com/protocolbuffers/protobuf/archive/v3.9.2.zip",
62+
],
63+
)
64+
5565
http_archive(
5666
name = "com_google_re2",
5767
sha256 = "d070e2ffc5476c496a6a872a6f246bfddce8e7797d6ba605a7c8d72866743bf9",
@@ -96,10 +106,10 @@ http_archive(
96106

97107
http_archive(
98108
name = "org_tensorflow",
99-
strip_prefix = "tensorflow-2.2.0",
100-
sha256 = "fd3e6580cfe2035aa80d569b76bba5f33119362907f3d77039b6bedf76172712",
109+
strip_prefix = "tensorflow-2.3.0-rc0",
110+
sha256 = "3dd1e31116dd76a9276e3808da564b4723c732ac88107dc7aaf74191a33dbb0b",
101111
urls = [
102-
"https://github.com/tensorflow/tensorflow/archive/v2.2.0.zip"
112+
"https://github.com/tensorflow/tensorflow/archive/v2.3.0-rc0.zip"
103113
],
104114
)
105115

oss_scripts/configure.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ if [[ $(pip show tensorflow) == *tensorflow* ]] || [[ $(pip show tf-nightly) ==
2929
echo 'Using installed tensorflow.'
3030
else
3131
echo 'Installing tensorflow.'
32-
pip install tensorflow==2.2.0
32+
pip install tensorflow==2.3.0rc0
3333
fi
3434

35-
write_to_bazelrc "build:manylinux2010 --crosstool_top=@org_tensorflow//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.0:toolchain"
35+
write_to_bazelrc "build:manylinux2010 --crosstool_top=@org_tensorflow//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain"
3636
write_to_bazelrc "build --spawn_strategy=standalone"
3737
write_to_bazelrc "build --strategy=Genrule=standalone"
3838
write_to_bazelrc "build -c opt"

oss_scripts/pip_package/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from setuptools.dist import Distribution
3333

3434
project_name = 'tensorflow-text'
35-
project_version = '2.2.1'
35+
project_version = '2.3.0-rc0'
3636

3737

3838
class BinaryDistribution(Distribution):
@@ -73,7 +73,7 @@ def finalize_options(self):
7373
cmdclass={'install': InstallPlatlib},
7474
distclass=BinaryDistribution,
7575
install_requires=[
76-
'tensorflow>=2.2.0, <2.3',
76+
'tensorflow>=2.3.0rc0, <2.4',
7777
],
7878
extras_require={
7979
'tensorflow_gpu': ['tensorflow-gpu>=2.1.0, <2.2',],

0 commit comments

Comments
 (0)