Skip to content

Commit c5fb5a5

Browse files
committed
[build] fix short version in python docs
1 parent dd02fbf commit c5fb5a5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,12 @@ namespace :py do
665665
File.open(file, "w") { |f| f.puts text }
666666
end
667667

668+
old_short_version = old_version.split('.')[0..1].join('.')
669+
new_short_version = new_version.split('.')[0..1].join('.')
670+
671+
text = File.read('py/docs/source/conf.py').gsub(old_short_version, new_short_version)
672+
File.open('py/docs/source/conf.py', "w") { |f| f.puts text }
673+
668674
Rake::Task['py:changelog'].invoke
669675
end
670676

py/docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# built documents.
5757
#
5858
# The short X.Y version.
59-
version = '4.15'
59+
version = '4.17'
6060
# The full version, including alpha/beta/rc tags.
6161
release = '4.17.2'
6262

0 commit comments

Comments
 (0)