Skip to content

Commit

Permalink
[build] Fixing Rakefile to bump nightly for Python
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Feb 17, 2024
1 parent 4241425 commit 92d47ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -621,10 +621,11 @@ namespace :py do

desc 'Update Python version'
task :version, [:version] do |_task, arguments|
bump_nightly = arguments[:version] === 'nightly'
old_version = python_version
new_version = nil
if arguments[:version] === 'nightly' && old_version.include?('nightly')
new_version = old_version + ".#{Time.now.strftime("%Y%m%d")}"
if bump_nightly && old_version.include?('nightly')
new_version = old_version.gsub('nightly', "#{Time.now.strftime("%Y%m%d")}")
else
new_version = updated_version(old_version, arguments[:version])
new_version += '.nightly' unless old_version.include?('nightly')
Expand All @@ -645,7 +646,7 @@ namespace :py do
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 unless new_version.include?('nightly')
Rake::Task['py:changelog'].invoke unless new_version.include?('nightly') || bump_nightly
end

desc 'Update Python Syntax'
Expand Down
3 changes: 0 additions & 3 deletions py/CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
Selenium 4.17.2


Selenium 4.17.2
* [py] Correct typing_extension dependency for wheel generation

Expand Down

0 comments on commit 92d47ac

Please sign in to comment.