Skip to content

Commit 0188830

Browse files
committed
chore: update xqueue to use Python 3.11
1 parent 2169897 commit 0188830

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

playbooks/roles/xqueue/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,5 @@ xqueue_release_specific_debian_pkgs:
205205

206206
# flag to run xqueue on python3
207207
xqueue_use_python3: false
208-
# flag to run xqueue on python3.8
209-
xqueue_use_python38: true
208+
# flag to run xqueue on python3.11
209+
xqueue_use_python311: true

playbooks/roles/xqueue/tasks/main.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
apt_repository:
55
repo: ppa:deadsnakes/ppa
66
update_cache: yes
7-
when: xqueue_use_python38
7+
when: xqueue_use_python311
88

9-
- name: install python3.8
9+
- name: install python3.11
1010
apt:
1111
name: "{{ item }}"
12-
when: xqueue_use_python38
12+
when: xqueue_use_python311
1313
with_items:
14-
- python3.8-dev
15-
- python3.8-distutils
14+
- python3.11-dev
15+
- python3.11-distutils
1616
tags:
1717
- install
1818
- install:system-requirements
@@ -28,12 +28,12 @@
2828
- install
2929
- install:system-requirements
3030

31-
- name: build virtualenv with python3.8
32-
command: "virtualenv --python=python3.8 {{ xqueue_venv_dir }}"
31+
- name: build virtualenv with python3.11
32+
command: "virtualenv --python=python3.11 {{ xqueue_venv_dir }}"
3333
args:
3434
creates: "{{ xqueue_venv_dir }}/bin/pip"
3535
become_user: "{{ xqueue_user }}"
36-
when: xqueue_use_python38
36+
when: xqueue_use_python311
3737
tags:
3838
- install
3939
- install:system-requirements
@@ -48,15 +48,15 @@
4848
- install
4949
- install:system-requirements
5050

51-
- name: "Install python3.8 requirements"
51+
- name: "Install python3.11 requirements"
5252
pip:
5353
requirements: "{{ xqueue_requirements_file }}"
5454
virtualenv: "{{ xqueue_venv_dir }}"
55-
virtualenv_python: 'python3.8'
55+
virtualenv_python: 'python3.11'
5656
state: present
5757
extra_args: "-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
5858
become_user: "{{ xqueue_user }}"
59-
when: xqueue_use_python38
59+
when: xqueue_use_python311
6060
tags:
6161
- install
6262
- install:app-requirements
@@ -94,7 +94,7 @@
9494
args:
9595
creates: "{{ xqueue_venv_dir }}/bin/pip"
9696
become_user: "{{ xqueue_user }}"
97-
when: not xqueue_use_python3 and not xqueue_use_python38
97+
when: not xqueue_use_python3 and not xqueue_use_python311
9898
tags:
9999
- install
100100
- install:system-requirements
@@ -170,7 +170,7 @@
170170
state: present
171171
extra_args: "-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w"
172172
become_user: "{{ xqueue_user }}"
173-
when: not xqueue_use_python3 and not xqueue_use_python38
173+
when: not xqueue_use_python3 and not xqueue_use_python311
174174
tags:
175175
- install
176176
- install:app-requirements

0 commit comments

Comments
 (0)