Skip to content

Commit 424dbcf

Browse files
Update pyenv setup with latest Python versions for FreeBSD 14
1 parent a8c717a commit 424dbcf

File tree

1 file changed

+15
-12
lines changed
  • cookbooks/travis_ci_freebsd_14/recipes

1 file changed

+15
-12
lines changed

β€Žcookbooks/travis_ci_freebsd_14/recipes/pyenv.rb

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,13 @@
126126
end
127127

128128
pyenv_versions = %w[
129-
3.7.6
130-
3.8.1
131-
3.9.16
132-
3.10.9
129+
3.7.17
130+
3.8.18
131+
3.9.19
132+
3.10.13
133+
3.11.8
134+
3.12.5
135+
3.13.0
133136
]
134137

135138
Chef::Log.info("#{MAGENTA}#{PREFIX} πŸ“‹ Installing Python versions: #{pyenv_versions.join(', ')}#{RESET}")
@@ -164,16 +167,16 @@
164167
end
165168
end
166169

167-
Chef::Log.info("#{BLUE}#{PREFIX} πŸ”„ Setting global Python version to 3.8.1#{RESET}")
168-
bash 'pyenv_global_set_to_3.8.1' do
170+
Chef::Log.info("#{BLUE}#{PREFIX} πŸ”„ Setting global Python version to 3.8.18#{RESET}")
171+
bash 'pyenv_global_set_to_3.8.18' do
169172
code <<-EOH
170173
source #{bash_profile}
171-
pyenv global 3.8.1
174+
pyenv global 3.8.18
172175
echo "#{BLUE}#{PREFIX} πŸ” Current Python version: $(python --version)#{RESET}"
173-
if [[ "$(python --version 2>&1)" == *"3.8.1"* ]]; then
174-
echo "#{GREEN}#{PREFIX} βœ… Successfully set global Python version to 3.8.1#{RESET}"
176+
if [[ "$(python --version 2>&1)" == *"3.8.18"* ]]; then
177+
echo "#{GREEN}#{PREFIX} βœ… Successfully set global Python version to 3.8.18#{RESET}"
175178
else
176-
echo "#{RED}#{PREFIX} ❌ Failed to set global Python version to 3.8.1#{RESET}"
179+
echo "#{RED}#{PREFIX} ❌ Failed to set global Python version to 3.8.18#{RESET}"
177180
exit 1
178181
fi
179182
EOH
@@ -188,7 +191,7 @@
188191

189192
ruby_block 'log_global_python' do
190193
block do
191-
Chef::Log.info("#{GREEN}#{PREFIX} βœ… Global Python version set to 3.8.1#{RESET}")
194+
Chef::Log.info("#{GREEN}#{PREFIX} βœ… Global Python version set to 3.8.18#{RESET}")
192195
end
193196
action :nothing
194197
end
@@ -252,7 +255,7 @@
252255
puts "#{BLUE}#{PREFIX} πŸ“Œ Pyenv location: #{node['travis_build_environment']['home']}/.pyenv#{RESET}"
253256
puts "#{BLUE}#{PREFIX} πŸ“Œ Symlink: /opt/pyenv#{RESET}"
254257
puts "#{BLUE}#{PREFIX} πŸ“Œ Python versions installed: #{pyenv_versions.join(', ')}#{RESET}"
255-
puts "#{BLUE}#{PREFIX} πŸ“Œ Global Python version: 3.8.1#{RESET}"
258+
puts "#{BLUE}#{PREFIX} πŸ“Œ Global Python version: 3.8.18#{RESET}"
256259
puts "#{BLUE}#{PREFIX} πŸ“Œ Bash profile: #{bash_profile}#{RESET}"
257260
puts "#{MAGENTA}#{PREFIX} =============================================#{RESET}"
258261
puts "\n"

0 commit comments

Comments
Β (0)