From 5a82524169e29d0b9c9e84d4b11c4723c82a1266 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Fri, 12 Jan 2018 23:52:26 +0100 Subject: [PATCH] add support for pip install of odoo and addons --- .gitignore | 56 ++ .idea/ansible-odoo.iml | 11 + .idea/misc.xml | 4 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 732 +++++++++++++++++++++++ .travis.yml | 14 + README.md | 31 +- defaults/main.yml | 5 + tasks/install.yml | 8 +- tasks/install_pip.yml | 48 ++ templates/odoo-10.0-pip-requirements.txt | 2 + templates/odoo-10.0.conf | 4 + templates/odoo-11.0-pip-requirements.txt | 2 + templates/odoo-11.0.conf | 4 + templates/odoo-8.0-pip-requirements.txt | 1 + templates/odoo-8.0.conf | 4 + templates/odoo-9.0-pip-requirements.txt | 1 + templates/odoo-9.0.conf | 4 + templates/odoo-pip.init | 87 +++ tests/test_pip.yml | 11 + tests/test_pip_changed.yml | 13 + vars/Debian-8_Odoo-10.yml | 23 + vars/Debian-8_Odoo-8.yml | 24 + vars/Debian-8_Odoo-9.yml | 23 + vars/Debian-9_Odoo-10.yml | 22 + vars/Debian-9_Odoo-11.yml | 23 + vars/Debian-9_Odoo-8.yml | 22 + vars/Debian-9_Odoo-9.yml | 22 + vars/Ubuntu-14_Odoo-10.yml | 23 + vars/Ubuntu-14_Odoo-8.yml | 23 + vars/Ubuntu-14_Odoo-9.yml | 23 + vars/Ubuntu-16_Odoo-10.yml | 24 + vars/Ubuntu-16_Odoo-11.yml | 24 + vars/Ubuntu-16_Odoo-8.yml | 23 + vars/Ubuntu-16_Odoo-9.yml | 23 + vars/main.yml | 1 + 37 files changed, 1376 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 .idea/ansible-odoo.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 tasks/install_pip.yml create mode 100644 templates/odoo-10.0-pip-requirements.txt create mode 100644 templates/odoo-11.0-pip-requirements.txt create mode 100644 templates/odoo-8.0-pip-requirements.txt create mode 100644 templates/odoo-9.0-pip-requirements.txt create mode 100644 templates/odoo-pip.init create mode 100644 tests/test_pip.yml create mode 100644 tests/test_pip_changed.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..890ff01 --- /dev/null +++ b/.gitignore @@ -0,0 +1,56 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +bin/ +build/ +develop-eggs/ +dist/ +eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.cache +nosetests.xml +coverage.xml + +# Translations +*.mo + +# Pycharm +.idea + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject + +# Rope +.ropeproject + +# Sphinx documentation +docs/_build/ + +# Backup files +*~ +*.swp diff --git a/.idea/ansible-odoo.iml b/.idea/ansible-odoo.iml new file mode 100644 index 0000000..6711606 --- /dev/null +++ b/.idea/ansible-odoo.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..8dd20a0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..4aa3a5e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..75cbbd7 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,732 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + pypdf2 + pyth + odoo_pip_odoo_bin_path + libldap2-dev + python3 + env + pyrax + pyldap + odoo_repo_url + extra_args + odoo_pip_packages + packages + pypy + odoo_pypi_packages + libssl-dev + odoo_required_tools + odoo_pip_venv_path + ANSIBLE_VERSION + odoo_pip_venv_cmd + export + setuptools-git + Pip installation + odoo_pip_virtualenv_python + CHANGED_TEST + IDEMPOTENCE TEST + upgrade + odoo_pip_dependencies + odoo_repo_type + odoo_packages + odoo_debian_packages + + + + + + $PROJECT_DIR$/tasks + $PROJECT_DIR$/vars + $PROJECT_DIR$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +