Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
5d8cd3b8
Unverified
Commit
5d8cd3b8
authored
Feb 25, 2019
by
Paul Yang
Committed by
GitHub
Feb 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Date and time need to be before version (#5777)
parent
580e1890
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
package.xml
php/ext/google/protobuf/package.xml
+2
-2
update_version.py
update_version.py
+3
-3
No files found.
php/ext/google/protobuf/package.xml
View file @
5d8cd3b8
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
<email>
protobuf-opensource@google.com
</email>
<email>
protobuf-opensource@google.com
</email>
<active>
yes
</active>
<active>
yes
</active>
</lead>
</lead>
<date>
2019-02-22
</date>
<time>
11:31:21
</time>
<version>
<version>
<release>
3.7.0RC3
</release>
<release>
3.7.0RC3
</release>
<api>
3.7.0
</api>
<api>
3.7.0
</api>
...
@@ -18,8 +20,6 @@
...
@@ -18,8 +20,6 @@
<release>
beta
</release>
<release>
beta
</release>
<api>
beta
</api>
<api>
beta
</api>
</stability>
</stability>
<date>
2019-02-22
</date>
<time>
11:31:21
</time>
<license
uri=
"https://opensource.org/licenses/BSD-3-Clause"
>
3-Clause BSD License
</license>
<license
uri=
"https://opensource.org/licenses/BSD-3-Clause"
>
3-Clause BSD License
</license>
<notes>
GA release.
</notes>
<notes>
GA release.
</notes>
<contents>
<contents>
...
...
update_version.py
View file @
5d8cd3b8
...
@@ -213,6 +213,9 @@ def UpdatePhp():
...
@@ -213,6 +213,9 @@ def UpdatePhp():
return
elem
return
elem
root
=
document
.
documentElement
root
=
document
.
documentElement
now
=
datetime
.
datetime
.
now
()
ReplaceText
(
Find
(
root
,
'date'
),
now
.
strftime
(
'
%
Y-
%
m-
%
d'
))
ReplaceText
(
Find
(
root
,
'time'
),
now
.
strftime
(
'
%
H:
%
M:
%
S'
))
version
=
Find
(
root
,
'version'
)
version
=
Find
(
root
,
'version'
)
ReplaceText
(
Find
(
version
,
'release'
),
GetFullVersion
(
rc_suffix
=
'RC'
))
ReplaceText
(
Find
(
version
,
'release'
),
GetFullVersion
(
rc_suffix
=
'RC'
))
ReplaceText
(
Find
(
version
,
'api'
),
NEW_VERSION
)
ReplaceText
(
Find
(
version
,
'api'
),
NEW_VERSION
)
...
@@ -220,9 +223,6 @@ def UpdatePhp():
...
@@ -220,9 +223,6 @@ def UpdatePhp():
ReplaceText
(
Find
(
stability
,
'release'
),
ReplaceText
(
Find
(
stability
,
'release'
),
'stable'
if
RC_VERSION
==
0
else
'beta'
)
'stable'
if
RC_VERSION
==
0
else
'beta'
)
ReplaceText
(
Find
(
stability
,
'api'
),
'stable'
if
RC_VERSION
==
0
else
'beta'
)
ReplaceText
(
Find
(
stability
,
'api'
),
'stable'
if
RC_VERSION
==
0
else
'beta'
)
now
=
datetime
.
datetime
.
now
()
ReplaceText
(
Find
(
root
,
'date'
),
now
.
strftime
(
'
%
Y-
%
m-
%
d'
))
ReplaceText
(
Find
(
root
,
'time'
),
now
.
strftime
(
'
%
H:
%
M:
%
S'
))
changelog
=
Find
(
root
,
'changelog'
)
changelog
=
Find
(
root
,
'changelog'
)
for
old_version
in
changelog
.
getElementsByTagName
(
'version'
):
for
old_version
in
changelog
.
getElementsByTagName
(
'version'
):
if
Find
(
old_version
,
'release'
)
.
firstChild
.
nodeValue
==
NEW_VERSION
:
if
Find
(
old_version
,
'release'
)
.
firstChild
.
nodeValue
==
NEW_VERSION
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment