From 6c2cf31ff78f68e0ffa9ac618ead3ec31e8f962d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez?= Date: Wed, 19 Aug 2020 16:24:55 +0000 Subject: [PATCH] [REF] requirements.txt: Use gevent 1.5.0 version with fixes for >=py3.7.4 The following commit fixes >=py3.7.4 compatibility: - https://github.com/gevent/gevent/commit/9d27d269ed01a7e752966caa7a6f85d773780a1a It was released in stable version gevent==1.5.0 on April 10, 2020: - https://pypi.org/project/gevent/1.5.0/ gevent==1.3.4 was released on June 20, 2018 - https://github.com/gevent/gevent/releases/tag/1.3.4 And python3.7.0 was released June 27, 2018 - https://www.python.org/downloads/release/python-370/ So, the current pinned version 1.3.4 is not optimized for py3.7 It could be a possible reason to reproduce the following error: - https://github.com/odoo/odoo/pull/50861 This change upgrades the pinned version to gevent==1.5.0 in order to get an optimized version for py3.7 Bump version to greenlet==0.4.14 for py3.7 since that it is the version defined in the sha of release of gevent==1.5.0 - https://github.com/gevent/gevent/commit/a1a72cb9 - https://github.com/gevent/gevent/blob/a1a72cb9/setup.py#L188 closes odoo/odoo#57219 X-original-commit: bb0b32bd1a3fc0c047d0787b10e8c1c8d696daa5 Signed-off-by: Christophe Monniez (moc) --- requirements.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 26fb9582b70..d740962f131 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,9 +5,8 @@ docutils==0.14 ebaysdk==2.1.5 feedparser==5.2.1 freezegun==0.3.11 -gevent==1.1.2 ; sys_platform != 'win32' and python_version < '3.7' -gevent==1.3.7 ; sys_platform != 'win32' and python_version >= '3.7' -gevent==1.4.0 ; sys_platform == 'win32' +gevent==1.3.7 ; python_version < '3.7' +gevent==1.5.0 ; python_version >= '3.7' greenlet==0.4.10 ; python_version < '3.7' greenlet==0.4.15 ; python_version >= '3.7' html2text==2018.1.9