Skip to content

Commit

Permalink
[UPD] Odoo 13.0 on Ubuntu-20.04: PyPi from requirements file.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobslee committed Jul 29, 2020
1 parent 7380699 commit 839b659
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ansible_ssh_pipelining: true

odoo_install_type: standard # standard, buildout
odoo_pip_executable: "pip"
odoo_version: 12.0
odoo_version: 13.0
odoo_service: odoo
odoo_user: odoo
odoo_user_passwd: "*" # http://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
Expand Down
9 changes: 9 additions & 0 deletions tasks/install_standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@
name: "{{ item }}"
executable: "{{ odoo_pip_executable }}"
with_items: "{{ odoo_pypi_packages }}"
when: odoo_pypi_packages_requirements_file is not defined or odoo_pypi_packages_requirements_file == False
tags:
- odoo_packages

- name: Install Odoo dependencies (PyPi) requirements.txt
pip:
requirements: "file://{{ odoo_workdir }}/server/requirements.txt"
executable: "{{ odoo_pip_executable }}"
when: odoo_pypi_packages_requirements_file is defined and odoo_pypi_packages_requirements_file == True
tags:
- odoo_packages

Expand Down
49 changes: 3 additions & 46 deletions vars/Ubuntu-20_Odoo-13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ odoo_debian_packages:
- python3-dev
- python3-pip
- python3-setuptools
# Python pyldap requirements
- python3-wheel
- libjpeg9-dev
- libldap2-dev
- libpq-dev
- libsasl2-dev
Expand All @@ -24,51 +25,7 @@ odoo_required_tools:
- xz-utils

odoo_pip_executable: "pip3"
odoo_pypi_packages:
# Straight from the Odoo requirements.txt
- Babel==2.3.4
- chardet==3.0.4
- decorator==4.0.10
- docutils==0.12
- ebaysdk==2.1.5
- feedparser==5.2.1
- gevent==1.1.2 ; python_version < '3.7'
- gevent==1.3.4 ; python_version >= '3.7'
- greenlet==0.4.10 ; python_version < '3.7'
- greenlet==0.4.13 ; python_version >= '3.7'
- html2text==2016.9.19
- Jinja2==2.10.1
- libsass==0.12.3
- lxml==3.7.1 ; python_version < '3.7'
- lxml==4.2.3 ; python_version >= '3.7'
- Mako==1.0.4
- MarkupSafe==0.23
- mock==2.0.0
- num2words==0.5.6
- ofxparse==0.16
- passlib==1.6.5
- Pillow==5.4.0
- polib==1.1.0
- psutil==4.3.1
- psycopg2==2.7.3.1
- pydot==1.2.3
- pyldap==2.4.28
- pyparsing==2.1.10
- PyPDF2==1.26.0
- pyserial==3.1.1
- python-dateutil==2.5.3
- pytz==2016.7
- pyusb==1.0.0
- qrcode==5.3
- reportlab==3.3.0
- requests==2.20.0
- zeep==3.1.0
- vatnumber==1.2
- vobject==0.9.3
- Werkzeug==0.14.1
- XlsxWriter==0.9.3
- xlwt==1.3.*
- xlrd==1.0.0
odoo_pypi_packages_requirements_file: True

odoo_nodejs_apt_package: "nodejs=6.*"
odoo_nodejs_apt_repo: "node_6.x"
Expand Down

0 comments on commit 839b659

Please sign in to comment.