Skip to content

Commit

Permalink
CI - Install python 3.8 on bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
Chatewgne committed Oct 17, 2022
1 parent f8436ef commit f3aa251
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
apt-get -q update
apt-get -q -y install dpkg-dev debhelper dh-virtualenv git python3 python3-venv python3-dev libffi-dev libxml2-dev libxslt1-dev libgdal-dev software-properties-common
add-apt-repository --yes ppa:deadsnakes/ppa
apt install python3.8
apt-get -q -y install python3.8 python3.8-venv python3.8-dev
- name: Building package debian 18.04
run: |
dpkg-buildpackage -uc -us -b
Expand Down Expand Up @@ -325,6 +325,8 @@ jobs:
echo "deb [arch=amd64] https://packages.geotrek.fr/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/geotrek.list
wget -O- "https://packages.geotrek.fr/geotrek.gpg.key" | sudo apt-key add -
sudo apt-get -q update
sudo add-apt-repository --yes ppa:deadsnakes/ppa
sudo apt-get -q -y install python3.8 python3.8-venv python3.8-dev
echo "geotrek-admin geotrek-admin/LANGUAGES string en fr" >> .debian_settings
echo "geotrek-admin geotrek-admin/POSTGRES_USER string $POSTGRES_USER" >> .debian_settings
echo "geotrek-admin geotrek-admin/POSTGRES_DB string $POSTGRES_DB" >> .debian_settings
Expand Down
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Build-Depends:
debhelper (>= 9),
dh-virtualenv (>= 1.0),
git,
python3 (>= 3.6),
python3-venv (>= 3.6),
python3-dev (>= 3.6),
python3.8 (>= 3.8),
python3.8-venv (>= 3.8),
python3.8-dev (>= 3.8),
libgdal-dev (>= 2.2),
libffi-dev (>= 3),
libxml2-dev (>= 2.9.2),
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export DH_VIRTUALENV_INSTALL_ROOT=/opt

override_dh_virtualenv:
dh_virtualenv \
--python /usr/bin/python3 \
--python /usr/bin/python3.8 \
--upgrade-pip \
--builtin-venv \
--extra-pip-arg --no-cache-dir \
Expand Down

0 comments on commit f3aa251

Please sign in to comment.