|
4 | 4 | apt_repository: |
5 | 5 | repo: ppa:deadsnakes/ppa |
6 | 6 | update_cache: yes |
7 | | - when: xqueue_use_python38 |
| 7 | + when: xqueue_use_python311 |
8 | 8 |
|
9 | | -- name: install python3.8 |
| 9 | +- name: install python3.11 |
10 | 10 | apt: |
11 | 11 | name: "{{ item }}" |
12 | | - when: xqueue_use_python38 |
| 12 | + when: xqueue_use_python311 |
13 | 13 | with_items: |
14 | | - - python3.8-dev |
15 | | - - python3.8-distutils |
| 14 | + - python3.11-dev |
| 15 | + - python3.11-distutils |
16 | 16 | tags: |
17 | 17 | - install |
18 | 18 | - install:system-requirements |
|
28 | 28 | - install |
29 | 29 | - install:system-requirements |
30 | 30 |
|
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 }}" |
33 | 33 | args: |
34 | 34 | creates: "{{ xqueue_venv_dir }}/bin/pip" |
35 | 35 | become_user: "{{ xqueue_user }}" |
36 | | - when: xqueue_use_python38 |
| 36 | + when: xqueue_use_python311 |
37 | 37 | tags: |
38 | 38 | - install |
39 | 39 | - install:system-requirements |
|
48 | 48 | - install |
49 | 49 | - install:system-requirements |
50 | 50 |
|
51 | | -- name: "Install python3.8 requirements" |
| 51 | +- name: "Install python3.11 requirements" |
52 | 52 | pip: |
53 | 53 | requirements: "{{ xqueue_requirements_file }}" |
54 | 54 | virtualenv: "{{ xqueue_venv_dir }}" |
55 | | - virtualenv_python: 'python3.8' |
| 55 | + virtualenv_python: 'python3.11' |
56 | 56 | state: present |
57 | 57 | extra_args: "-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w" |
58 | 58 | become_user: "{{ xqueue_user }}" |
59 | | - when: xqueue_use_python38 |
| 59 | + when: xqueue_use_python311 |
60 | 60 | tags: |
61 | 61 | - install |
62 | 62 | - install:app-requirements |
|
94 | 94 | args: |
95 | 95 | creates: "{{ xqueue_venv_dir }}/bin/pip" |
96 | 96 | 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 |
98 | 98 | tags: |
99 | 99 | - install |
100 | 100 | - install:system-requirements |
|
170 | 170 | state: present |
171 | 171 | extra_args: "-i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w" |
172 | 172 | 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 |
174 | 174 | tags: |
175 | 175 | - install |
176 | 176 | - install:app-requirements |
|
0 commit comments