Skip to content

Commit

Permalink
[build] fix short version in python docs
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jan 23, 2024
1 parent dd02fbf commit c5fb5a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Rakefile
Expand Up @@ -665,6 +665,12 @@ namespace :py do
File.open(file, "w") { |f| f.puts text }
end

old_short_version = old_version.split('.')[0..1].join('.')
new_short_version = new_version.split('.')[0..1].join('.')

text = File.read('py/docs/source/conf.py').gsub(old_short_version, new_short_version)
File.open('py/docs/source/conf.py', "w") { |f| f.puts text }

Rake::Task['py:changelog'].invoke
end

Expand Down
2 changes: 1 addition & 1 deletion py/docs/source/conf.py
Expand Up @@ -56,7 +56,7 @@
# built documents.
#
# The short X.Y version.
version = '4.15'
version = '4.17'
# The full version, including alpha/beta/rc tags.
release = '4.17.2'

Expand Down

0 comments on commit c5fb5a5

Please sign in to comment.