Skip to content

Commit

Permalink
Upgraded to Python 3.11 in the dev environment and CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbusenius committed Jul 22, 2024
1 parent e1fbad4 commit d90f7c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
with:
redis-version: 6

- name: Set up Python '3.10'
- name: Set up Python '3.11'
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
15 changes: 9 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# boxes at https://atlas.hashicorp.com/search.
# https://app.vagrantup.com/ubuntu/boxes/jammy64
config.vm.box = "ubuntu/jammy64"
config.vm.box_version = "20230720.0.0"
config.vm.box_version = "20240720.0.1"

es = "true"
if ENV['ELASTICSEARCH']
Expand Down Expand Up @@ -191,13 +191,16 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
echo "============== Updating repos =============="
rm -rf /var/lib/apt/lists/partial
apt-get update -y -o Acquire::CompressionTypes::Order::=gz
#apt-get update -y
# Jammy ships wih Python 10. We need Python 11.
# Remove this to go to Python 10 in the future.
echo ""
echo "============== Install Python dev tools =============="
echo "============== Upgrading to Python 3.11 =============="
apt-get install -y software-properties-common
apt-get -y install python3-distutils
apt-get install -y python3-pip python3-dev python3-venv
add-apt-repository ppa:deadsnakes/ppa
apt-get install -y python3.11
apt-get -y install python3.11-distutils
apt-get install -y python3-pip python3.11-dev python3.11-venv
# Install Wagtail dependencies and useful dev tools
echo -e ""
Expand Down Expand Up @@ -258,7 +261,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
echo ""
echo "============== Creating a Python virtualenv =============="
echo "..."
cd /home/vagrant && python3 -m venv lw
cd /home/vagrant && python3.11 -m venv lw
# Pip install project dependencies
echo ""
Expand Down

0 comments on commit d90f7c0

Please sign in to comment.