Skip to content

Commit 1a62baf

Browse files
authored
Merge pull request #154 from coopdevs/upgrade-pip
Tasks to upgrade pip and define pip version
2 parents 276c88e + 8c2b4ec commit 1a62baf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ odoo_role_odoo_download_path: "{{ odoo_role_odoo_path }}/../odoo_releases/odoo_{
4646
odoo_role_odoo_git_url: "https://github.com/OCA/OCB.git"
4747
# OCA's OCB, branch 11.0. LTS probably until 14.0 release. 13.0 is scheduled for October 2019.
4848
odoo_role_odoo_git_ref: "11.0"
49+
# Variable to define pip version
50+
odoo_role_pip_version: "23.1.2"
4951
```
5052
5153
* Users and group

tasks/pyenv.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,21 @@
8888
shell: . /home/{{ odoo_role_odoo_user }}/pyenv/.pyenvrc && pyenv virtualenv {{ odoo_role_python_version }} {{ odoo_role_venv_name }}
8989
args:
9090
creates: "/home/{{ odoo_role_odoo_user }}/pyenv/versions/{{ odoo_role_venv_name }}/bin/python"
91+
92+
- name: Upgrade pip
93+
become: true
94+
become_user: "{{ odoo_role_odoo_user }}"
95+
pip:
96+
name: pip
97+
state: latest
98+
virtualenv: "{{ odoo_role_odoo_venv_path }}"
99+
when: odoo_role_pip_version is not defined
100+
101+
- name: Define pip specific version
102+
become: true
103+
become_user: "{{ odoo_role_odoo_user }}"
104+
pip:
105+
name: pip
106+
version: "{{ odoo_role_pip_version }}"
107+
virtualenv: "{{ odoo_role_odoo_venv_path }}"
108+
when: odoo_role_pip_version is defined

0 commit comments

Comments
 (0)