Adding protobuf_version.bzl to get updated version in python script

pull/8770/head
Deanna Garcia 4 years ago
parent 611a08ee00
commit 66d26f3fe6
  1. 8
      update_version.py

@ -364,6 +364,13 @@ def UpdateRuby():
' s.version = "%s"' % GetFullVersion(rc_suffix = '.rc.'),
line))
def UpdateBazel():
RewriteTextFile('protobuf_version.bzl',
lambda line : re.sub(
r"^PROTOBUF_VERSION = '.*'$",
"PROTOBUF_VERSION = '%s'" % GetFullVersion(),
line))
UpdateConfigure()
UpdateCsharp()
@ -375,3 +382,4 @@ UpdateObjectiveC()
UpdatePhp()
UpdatePython()
UpdateRuby()
UpdateBazel()

Loading…
Cancel
Save