summaryrefslogtreecommitdiff
path: root/odoo/tools/__init__.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2020-11-26 07:05:14 +0000
committerXavier Morel <xmo@odoo.com>2020-11-27 09:36:32 +0000
commit648635deca67df09417ae55c6eb181c98524b74d (patch)
tree9bb2bc4c2ac549757cfabe55f83da6863ee114fd /odoo/tools/__init__.py
parentd8254c130d4b04a0f1ff80990fe28e795bf9ad51 (diff)
[IMP] requirements: resolve compatibility issues for 3.8 and 3.9
Only updates outdated requirements which actively cause issues: * freezegun broken in 3.8 (removal of time.clock) * xlrd broken in 3.8 (removal of time.clock) * also monkeypatches xlrd.xlsx for 3.9 (removal of Element.getiterator, breaks because of defusedxml) * jinja triggers DeprecationWarning in 3.8 * pillow triggers warning in 3.9 * lxml, greenlet don't compile in 3.9 * reportlab doesn't work in 3.9 New versions try to match those of Debian Bullseye. Also adds a script to more easily compare dependency versions between the requirements files and what's in various distributions (currently supports checking against debian and ubuntu). Furthermore updates warnings filtering: * removes xlrd (mischeck was monkeypatched as noted above) * removes setuptools (was for older versions, one would hope this isn't an issue anymore) * adds babel: python-babel/babel#684 fixes the deprecation warning but is not part of any release yet * ignores error related to `random.sample` on a set, this is a diagnostics bug because recordsets implement both Sequence and Set, and the stdlib checks for Set first (bpo-42470) See #59980 Closes #61103 closes odoo/odoo#62380 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'odoo/tools/__init__.py')
-rw-r--r--odoo/tools/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/tools/__init__.py b/odoo/tools/__init__.py
index 1e23e499d67..e3404b9b0f1 100644
--- a/odoo/tools/__init__.py
+++ b/odoo/tools/__init__.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
+from . import _monkeypatches
from . import pycompat
from . import win32
from . import appdirs