From 580eff00626c23713873891ad1cdb14e928051ab Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 8 May 2019 10:21:59 +0200 Subject: [PATCH] Override dependencies with different name and pin versions The name of the libs and python packages are different, Odoo expects the inner python package in the manifest, but setuptools cannot find the libs in pypi, overrides them with the libs names. --- attachment_swift/__manifest__.py | 1 + setup/attachment_swift/setup.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/attachment_swift/__manifest__.py b/attachment_swift/__manifest__.py index 1a21cb8..17fe88f 100644 --- a/attachment_swift/__manifest__.py +++ b/attachment_swift/__manifest__.py @@ -12,6 +12,7 @@ 'external_dependencies': { 'python': ['swiftclient', 'keystoneclient', + 'keystoneauth1', ], }, 'website': 'https://www.camptocamp.com', diff --git a/setup/attachment_swift/setup.py b/setup/attachment_swift/setup.py index 28c57bb..d6d1eb0 100644 --- a/setup/attachment_swift/setup.py +++ b/setup/attachment_swift/setup.py @@ -2,5 +2,13 @@ import setuptools setuptools.setup( setup_requires=['setuptools-odoo'], - odoo_addon=True, + odoo_addon={ + 'external_dependencies_override': { + 'python': { + 'swiftclient': 'python-swiftclient>=3.7.0', + 'keystoneclient': 'python-keystoneclient>=3.19.0', + 'keystoneauth1': 'keystoneauth1>=3.14.0', + }, + }, + } )