Skip to content

Commit 9ee2e80

Browse files
authored
Use Python3.5 and 3.6 from the Checkbox-dev PPA (infra) (#2141)
Use Python3.5 and 3.6 from the Checkbox-dev PPA Deadsnakes dropped python3.5 and 3.6 for focal. To still be able to do the testing we have backported it to our PPA. Note: deadsnakes is still used for python3.8+ on ubuntu:latest
1 parent a392cd4 commit 9ee2e80

File tree

7 files changed

+24
-1
lines changed

7 files changed

+24
-1
lines changed

.github/workflows/tox-checkbox.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ jobs:
137137
PYTHON_VERSION: ${{ matrix.python }}
138138
run: |
139139
sudo add-apt-repository ppa:deadsnakes/ppa
140+
# python3.5 and python3.6 are no longer in deadsnakes for focal
141+
# we pushed them to the Checkbox PPA instead
142+
sudo add-apt-repository ppa:checkbox-dev/edge
140143
sudo apt-get update
141144
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev shellcheck
142145
pip install tox

.github/workflows/tox-contrib-provider-ce-oem.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
PYTHON_VERSION: ${{ matrix.python }}
5858
run: |
5959
sudo add-apt-repository ppa:deadsnakes/ppa
60+
# python3.5 and python3.6 are no longer in deadsnakes for focal
61+
# we pushed them to the Checkbox PPA instead
62+
sudo add-apt-repository ppa:checkbox-dev/edge
6063
sudo apt-get update
6164
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev
6265
pip install tox

.github/workflows/tox-contrib-provider-dss.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
PYTHON_VERSION: ${{ matrix.python }}
4343
run: |
4444
sudo add-apt-repository ppa:deadsnakes/ppa
45+
# python3.5 and python3.6 are no longer in deadsnakes for focal
46+
# we pushed them to the Checkbox PPA instead
47+
sudo add-apt-repository ppa:checkbox-dev/edge
4548
sudo apt-get update
4649
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev
4750
pip install tox

.github/workflows/tox-provider-docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
PYTHON_VERSION: ${{ matrix.python }}
5858
run: |
5959
sudo add-apt-repository ppa:deadsnakes/ppa
60+
# python3.5 and python3.6 are no longer in deadsnakes for focal
61+
# we pushed them to the Checkbox PPA instead
62+
sudo add-apt-repository ppa:checkbox-dev/edge
6063
sudo apt-get update
6164
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev
6265
pip install tox

.github/workflows/tox-provider-tpm2.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
PYTHON_VERSION: ${{ matrix.python }}
5858
run: |
5959
sudo add-apt-repository ppa:deadsnakes/ppa
60+
# python3.5 and python3.6 are no longer in deadsnakes for focal
61+
# we pushed them to the Checkbox PPA instead
62+
sudo add-apt-repository ppa:checkbox-dev/edge
6063
sudo apt-get update
6164
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev
6265
pip install tox

.github/workflows/tox-provider-tutorial.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
PYTHON_VERSION: ${{ matrix.python }}
5858
run: |
5959
sudo add-apt-repository ppa:deadsnakes/ppa
60+
# python3.5 and python3.6 are no longer in deadsnakes for focal
61+
# we pushed them to the Checkbox PPA instead
62+
sudo add-apt-repository ppa:checkbox-dev/edge
6063
sudo apt-get update
6164
sudo apt-get install -y -qq libgl1 gcc python$PYTHON_VERSION-dev
6265
pip install tox

docs/how-to/ancient-python.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Save the following ``cloud-init`` file in ``python35_cloud_init.yaml``:
1414
1515
#cloud-config
1616
runcmd:
17-
- add-apt-repository --yes ppa:deadsnakes/ppa
17+
- add-apt-repository --yes ppa:checkbox-dev/edge
1818
- apt update -q -y
1919
- apt install -q -y "python3.5" "python3.5-venv" "python3.5-dev" gcc "flake8" "shellcheck"
2020
- python3.5 -m ensurepip
@@ -41,3 +41,8 @@ The ``cloud-init`` file has prepared you a fresh clone of the Checkbox repo in
4141
``/root/checkbox``, it has created a venv you can use in ``/root/venv`` with
4242
Python3.5 and it has developed the ``resource`` and ``base`` provider. You
4343
should now be able to iterate on your tests!
44+
45+
.. note::
46+
47+
Python 3.5 and Python 3.6 are no longer in the deadsnakes PPA. We have added
48+
them to the checkbox-dev PPA to still be able to run the tests.

0 commit comments

Comments
 (0)