Skip to content
Snippets Groups Projects
  1. Mar 19, 2021
  2. Jan 29, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: update rpm packaging for fedora 32 · a8deb1dd
      Christophe Monniez authored
      
      As Fedora 32 was the current release when Odoo 14.0 was released, this
      should be the supported version.
      
      Also, a few  old libs were still in mentioned in the packaging files.
      They flew under the radar because they never broke the packaging.
      This is not the case anymore, those libs disappeared from the Fedora
      repos.
      
      It seems that pyparsing is not used anymore since 5a1c06a1 and thus can
      be safely removed from `requirements.txt` too.
      
      pychart is not used anymore since 3425752e.
      
      While at it, remove mix of tabs and spaces in package.dffedora, also add
      missing packages to avoid installation at test time.
      
      Now that I started down the slippery slope, also removed some `-dev`
      packages in package.dfsrc as wheel's are available.
      
      Finally, the rpm install script now detects the python ABI version in
      order to avoid update this file at each ABI change in Fedora.
      
      Fixes #63719
      
      closes odoo/odoo#65224
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      a8deb1dd
  3. Jan 25, 2021
  4. Nov 27, 2020
    • Xavier Morel's avatar
      [IMP] requirements: resolve compatibility issues for 3.8 and 3.9 · 648635de
      Xavier Morel authored
      
      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: default avatarXavier Morel (xmo) <xmo@odoo.com>
      648635de
    • Christophe Monniez's avatar
      [FIX] requirements: remove gevent double requirements on win32 · 4ce94234
      Christophe Monniez authored
      
      Fixes #62214
      
      closes odoo/odoo#62475
      
      X-original-commit: 45afa3a2
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      4ce94234
  5. Sep 08, 2020
  6. Sep 07, 2020
  7. Jul 10, 2020
  8. May 05, 2020
  9. Apr 22, 2020
  10. 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
  11. Mar 13, 2020
  12. Feb 05, 2020
  13. Jan 31, 2020
  14. Jan 29, 2020
  15. 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
  16. 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
  17. 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
  18. Nov 14, 2019
  19. Oct 11, 2019
  20. Oct 09, 2019
  21. Sep 09, 2019
  22. Jun 05, 2019
  23. 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
  24. May 13, 2019
  25. 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
  26. Feb 05, 2019
  27. Nov 13, 2018
  28. Oct 30, 2018
  29. 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
  30. Aug 27, 2018
  31. 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.
      Unverified
      d2605bcc
  32. Jul 18, 2018
  33. 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
  34. Apr 18, 2018
  35. 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
      Unverified
      16050869
  36. 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
  37. Nov 17, 2017
  38. Nov 13, 2017
Loading