From 27c017ad98b4c9ac5fdcd28c9fd84d3690993118 Mon Sep 17 00:00:00 2001 From: Moises Lopez Date: Wed, 18 Jul 2018 14:56:06 +0200 Subject: [PATCH] [FIX] requirements: improve python3.7 compatibility Since af9d6b86a1eb8213f738c73fe80209b44f789510 and 5a57c29ff2ac0c6b75aaba963b094809b8e60d44 , python3.7 can be used to run Odoo. This commit ensures that python3.7 compatibles versions of gevent, greenlet and lxml will be installed without breaking compatibility with Debian Stretch packages versions when using the Debian packaged Python. Closes #25841 --- requirements.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 27127c70862..96736e9917d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,11 +3,14 @@ decorator==4.0.10 docutils==0.12 ebaysdk==2.1.5 feedparser==5.2.1 -gevent==1.1.2 ; sys_platform != 'win32' -greenlet==0.4.10 +gevent==1.1.2 ; sys_platform != 'win32' and python_version < '3.7' +gevent==1.3.4 ; sys_platform != 'win32' and 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.8 -lxml==3.7.1 ; sys_platform != 'win32' +lxml==3.7.1 ; sys_platform != 'win32' and python_version < '3.7' +lxml==4.2.3 ; sys_platform != 'win32' and python_version >= '3.7' lxml ; sys_platform == 'win32' Mako==1.0.4 MarkupSafe==0.23