Skip to content
Snippets Groups Projects
  1. Apr 22, 2020
  2. Apr 01, 2020
    • Adrian Torres's avatar
      [REM] *: remove various unused import shims · 5952928b
      Adrian Torres authored
      
      Before this commit, a lot of leftover import shims existed in the
      codebase for py2-py3 compatibility, these are no longer needed since
      Odoo 13.0+ doesn't support Python 2 anymore and is (finally) in EOL.
      
      With this commit, these shims are dropped, making the code cleaner,
      easier to read and with one less dependency.
      
      Queue -> queue -> py2-py3 compatibility
      xmlrpclib -> xmlrpc.client -> py2-py3 compatibility
      ConfigParser -> configparser -> py2-py3 compatibility
      itertools.izip_longest -> itertools.zip_longest -> py2-py3 compatibility
      urllib -> urllib.request -> py2-py3 compatibility
      __builtins__ -> builtins -> py2-py3 compatibility
      _winreg -> winreg -> py2-py3 compatibility
      
      mock -> unittest.mock -> merged into CPython
      
      The debian/fedora packages and requirements.txt have been updated accordingly
      
      closes odoo/odoo#44601
      
      Related: odoo/enterprise#8141
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      5952928b
  3. Mar 13, 2020
  4. Feb 05, 2020
  5. Jan 31, 2020
  6. Jan 29, 2020
  7. Jan 28, 2020
    • Martin Trigaux's avatar
      [FIX] package: requirements for python 3.8 · 2716e738
      Martin Trigaux authored
      
      psycopg2 2.7 not be installed on python 3.8, needs at least psycopg2 2.8
      use the same version as windows to avoid complicated rules if windows
      AND python 3.8
      Note that psycopg2 3.8.4 is currently the only one released after the
      release of python 3.8 but reported compatibilty issued seems to be
      fixed since 3.8 at psycopg/psycopg2#854
      
      Fixes odoo/odoo#42660
      
      closes odoo/odoo#44143
      
      X-original-commit: f6158264
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      2716e738
  8. Jan 22, 2020
    • Martin Trigaux's avatar
      [FIX] auth_ldap: replace the deprecated library by one up to date · 9aef423d
      Martin Trigaux authored
      At 795c7b0a the external dependencies was changed from trying
      to import 'ldap' to checking than 'pyldap' package was installed.
      The problem is that pyldap is a unmaintained library that should no
      longer be used, as explained on the package page:
      https://pypi.org/project/pyldap/
      
      
      "The pyldap fork was merged back into python-ldap, and released as
       python-ldap 3.0.0."
      
      Having pyldap version >= 3.0 installs python-ldap automatically and
      will not cause any issue.
      
      The Debian control file package name is adapted to use the latest.
      
      The "ldap" externalm dependency defined in __manifest__.py will cause
      pkg_resources.get_distribution() to fail in both case ("python-lap" or
      "pyldap"), but the "import" fallback will succeed. For that reason, the
      log warning is turned into a log info.
      
      closes odoo/odoo#43769
      
      Note: This library should be replaced by the pure python "ldap3" library.
      X-original-commit: 1afd0ccf
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      9aef423d
  9. Jan 10, 2020
    • Christophe Monniez's avatar
      [FIX] requirements: update library versions to match Debian Buster · 29f02a37
      Christophe Monniez authored
      
      Some library versions are outdated since the release of Debian Buster.
      
      With this commit the required libraries versions will match as close as
      possible the versions available in the current Debian stable release
      (Buster).
      
      Also, the requirements were tested against a Windows Python 3.7 to
      ensure that a "pip install -r" can be used without the need of a CPP
      compiler.
      
      As Babel format_time now returns 'HNE' (Heure Normale de l'EST) for Fr
      locale instead of the zone offset, the test is adapted.
      
      Finally the babel.dates is explicitely imported, otherwise the proper
      import of this submodule is relying on a side effect.
      
      closes odoo/odoo#43106
      
      X-original-commit: 32e455bf
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      29f02a37
  10. Nov 14, 2019
  11. Oct 11, 2019
  12. Oct 09, 2019
  13. Sep 09, 2019
  14. Jun 05, 2019
  15. Apr 10, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 78ba90d5
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 10.0 that would be Debian 8
      (jessie) and thus Jinja 2.7.3 (albeit with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32602
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      78ba90d5
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 6cbecced
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      6cbecced
  16. May 13, 2019
  17. May 07, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · e554ce34
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      e554ce34
  18. Feb 05, 2019
  19. Nov 13, 2018
  20. Oct 30, 2018
  21. Oct 09, 2018
    • Adrian Torres's avatar
      [REM] packaging: drop PyYAML dependency · a277bfb4
      Adrian Torres authored
      Commit cf853a78 removed all yml tests
      and the yml import engine from Odoo forever, however PyYAML remains a
      dependency even though it's not used anymore.
      
      This commit removes any reference to this lib that could be found.
      
      closes odoo/odoo#27563
      a277bfb4
  22. Aug 27, 2018
  23. Aug 14, 2018
    • Olivier Dony's avatar
      [FIX] requirements: bump up pillow,jinja2 reqs · d2605bcc
      Olivier Dony authored
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 9.0 that would be Debian 8
      (jessie) and thus Pillow 2.6.1.
      
      However Pillow versions before 3.3.2 and Jinja2 before 2.8.1 suffer
      from a few issues that could lead to crashes of Odoo workers.
      The bugfixes have been backported in the DEB packages for Pillow,
      so users of Debian/Ubuntu LTS versions won't be affected if they are
      keeping their systems updated.
      
      However it's worth an exception to our rule for pip users.
      d2605bcc
  24. Jul 18, 2018
  25. Jul 17, 2018
    • Jigar Patel's avatar
      [IMP] import/export UIs · b60de0db
      Jigar Patel authored
      Task 40692
      
      Various changes to import/export (mainly) UIs:
      
      * default to excel & "full" (non-import-compatible) export
      * auto-detect encoding of CSV using chardet
      * remember column -> field mapping after having imported a file (useful
         for repeated imports where auto-matching failed)
      * better handle localised booleans & column names
      * automatically select source list view's fields when exporting
      * better integrate import templates feature and add a number of templates
      b60de0db
  26. Apr 18, 2018
  27. Feb 14, 2018
    • Olivier Dony's avatar
      [FIX] reqs.txt: bump up recommended Pillow version · 16050869
      Olivier Dony authored
      We should normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 9.0 that would be Debian 8
      (jessie) and thus Pillow 2.6.1.
      
      However Pillow versions before 3.1.1 suffer from a few issues that could
      lead to crashes of Odoo workers. The bugfixes have been backported in
      the DEB packages for Pillow, so users of Debian/Ubuntu LTS versions
      won't be affected if they are keeing their systems updated.
      
      However it's worth an exception to our rule for pip users.
      
      FWD-PORTS: skip
      16050869
  28. Jan 16, 2018
    • Vincent Schippefilt's avatar
      [FIX] requirements: update for windows compatibility · 3ede4c72
      Vincent Schippefilt authored
      problem: installing from the source on windows includes manual modification of the requiremnets, as well as
      not supported package versions
      
      solution:
      - increased the version of lxml, werkzeug and pillow to the latest supported version in debian, it
      will fix already a number of issues on windows
      - automatically include or exclude dependencies from requirement.txt using requirement specifiers
      
      Note that for lxml on windows, we will always install the latest version because the version 3.7.1 does not exist on
      windows in WHL.
      3ede4c72
  29. Nov 17, 2017
  30. Nov 13, 2017
  31. Oct 16, 2017
  32. Oct 12, 2017
  33. Oct 09, 2017
  34. Sep 14, 2017
    • Xavier Morel's avatar
      [FIX] P3: metadata update · 4a878fa4
      Xavier Morel authored
      * gitignore pycache folders (apparently appear for some)
      * update xlwt requirement: 1.1.2 does not work with Python 3.6, 1.2 should work, 1.3 officially supports it
      4a878fa4
  35. Aug 20, 2017
    • Olivier Dony's avatar
      [FIX] P3: more requirements.txt changes · 589c0d7e
      Olivier Dony authored
      - jcconv is not P3-ready and is only optional, for use on the POSBox
        firmware for Japanese charset support in some receipt printers
        (The POSBox firmware is still based on Odoo 8 + PY2 at this time)
      
      - wsgiref is built-in since Python 2.5, and the one on pypi does not work
        on Python 3.2+
      589c0d7e
  36. Jun 16, 2017
  37. May 30, 2017
  38. May 15, 2017
    • Xavier Morel's avatar
      [REM] P3: outdated html2text vendoring · 67c17cb3
      Xavier Morel authored
      The vendored html2text is *really* old and absolutely not
      P3-compatible.
      
      There is a maintained version on Pypy which is, so use that and stop
      vendoring html2text.
      67c17cb3
  39. May 12, 2017
Loading