Skip to content

Commit

Permalink
Bump python version to 3.8.8
Browse files Browse the repository at this point in the history
Resolve #215
  • Loading branch information
km45 committed Feb 24, 2021
1 parent 17c41f4 commit 89ea10b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/playbooks/roles/python/molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
- name: assert global python version
assert:
that:
- result.stdout == "3.8.7"
- result.stdout == "3.8.8"
fail_msg: "actual version is {{ result.stdout }}"
- name: test poetry version
block:
Expand Down
14 changes: 7 additions & 7 deletions src/playbooks/roles/python/tasks/version.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---

- name: check whether already installed python 3.8.7 # noqa 306
- name: check whether already installed python {{ python_version }} # noqa 306
shell: |-
. ~/.bashrc.d/pyenv.bashrc
pyenv versions | grep '^* 3.8.7 (set by /.*)$'
pyenv versions | grep '^* {{ python_version }} (set by /.*)$'
register: checked_result
changed_when: False
failed_when: checked_result.rc not in [0, 1]
Expand All @@ -23,16 +23,16 @@
- libssl-dev
- make
- zlib1g-dev
- name: install python 3.8.7
- name: install python {{ python_version }}
shell: |-
. ~/.bashrc.d/pyenv.bashrc
pyenv install -s -k 3.8.7
pyenv install -s -k {{ python_version }}
register: install_result
- name: show stderr of python 3.8.7 installation and check whether WARNING exists
- name: show stderr of python {{ python_version }} installation and check whether WARNING exists
debug:
msg: "{{ install_result.stderr_lines }}"
failed_when: "{{ install_result.stderr_lines | select('match', '^WARNING: .*$') | list | length > 0 }}"
- name: set global python version to 3.8.7
- name: set global python version to {{ python_version }}
shell: |-
. ~/.bashrc.d/pyenv.bashrc
pyenv global 3.8.7
pyenv global {{ python_version }}
2 changes: 2 additions & 0 deletions src/playbooks/roles/python/vars/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
python_version: "3.8.8"

0 comments on commit 89ea10b

Please sign in to comment.