Skip to content
Snippets Groups Projects
  1. Jul 19, 2023
  2. Jun 16, 2023
    • Christophe Monniez's avatar
      [REM] packaging: remove windows 32 bit support · 47046e9d
      Christophe Monniez authored
      
      Since may 2020, M$ stopped to ship their 32 bits OS.
      So, there is no need to distribute a 32 bit version anymore.
      
      This will reduce the package size by 2.
      
      The new package will use Python 3.10 by default, that's why the
      local requirements were changed (a wheel package was missing for windows
      in the previous version of PyKCS11).
      
      closes odoo/odoo#125361
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      47046e9d
  3. Feb 16, 2023
  4. Feb 14, 2023
  5. Feb 08, 2023
    • lejeune quentin's avatar
      [FIX] hw_*: Modify the default user for iot in windows · 36c03128
      lejeune quentin authored
      
      currently there is an error in the configuration
      of the default user for the iot windows
      it is configured for "local service"
      which is the French version of the local user.
      Except if the pc window is not in French,
      the user is not configured correctly.
      We have to use the default local user name
      of windows which is "LOCALSERVICE"
      
      closes odoo/odoo#112129
      
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      36c03128
  6. Dec 06, 2022
    • lejeune quentin's avatar
      [IMP] hw_*: Add possibility to run IoT in Windows · b7b8809e
      lejeune quentin authored
      
      Currently it is only possible to run the modules
      for the IoT Box on Raspios.
      The modifications brought by this commit brings the possibility
      that the various hw_* modules can be executed whatever the OS
      of the hardware (Linux or Windows).
      If the modules should be versioned according to the OS,
      the file will be renamed so that the end of
      the file includes *_L (for linux) or *_W (for windows)
      
      closes odoo/odoo#105938
      
      Related: odoo/enterprise#34661
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      b7b8809e
  7. Nov 21, 2022
  8. Oct 10, 2022
  9. Sep 23, 2022
  10. May 24, 2022
    • Christophe Monniez's avatar
      [IMP] packaging: add a new install type for windows · 53d00c7c
      Christophe Monniez authored
      In order to be able to use #86723 Odoo needs to be used as a local
      proxy. With this commit, a new install type `Local Proxy Mode` is added
      to the windows installer. When chosen, this install type does not
      install the PostgreSQL server and it adds the `hw_l10n_eg_eta` as a
      server wide module. It also generate and sets a proxy token.
      
      While at it, the windows packaging is a bit improved:
      * the VM now uses the virtio drivers
      * the installer size and speed is improved
      
      X-original-commit: 8586f78af36616d8014caf7ec9e44d8f6549d10d
      Part-of: odoo/odoo#92195
      53d00c7c
  11. May 23, 2022
  12. Feb 16, 2022
  13. Jan 12, 2022
    • Thibault Delavallée's avatar
      [REF] various: remove usage and dependency on html2text library · 37db926f
      Thibault Delavallée authored
      
      We have our own html2plaintext, already used in lot of use cases instead of
      just a few for the html2txt library.
      
      Notably for emails: most emails going through Odoo stack use our simple
      html2plaintext to format the body alternative. When no body alternative
      is given to ``build_email`` an alternative is built using the library to
      remove. Using our own parser allows to have the same results compared to
      using ``MailMail.send()``. Difference lies in spaces and new lines as well
      as markdown. Our html2plaintext is a bit simple and does not try to generate
      Markdown but generates a simple plaintext version.
      
      This also helps solving some issues with depending on that library.
      
      Task-2702034
      
      closes odoo/odoo#82486
      
      X-original-commit: b3b9627b
      Related: odoo/enterprise#23364
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      37db926f
  14. Oct 21, 2021
  15. Oct 16, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: verify repodata exists · fae2bd0c
      Christophe Monniez authored
      
      The rpm packaging fails to generate a repository when the repodata
      directory does not exists previously to the build.
      
      The reason is that the package.py script removes the repodata before
      rpm repo generation without verifying the the directory exists.
      
      That kind of corner case happens when a new odoo version comes out.
      With this commit, the script now verifies that the directory exists.
      
      Also, while at it, a time stamp based on seconds is added to the default
      build directory name to allow to build more than one time the same day
      without removing the build directory. It's mainly a testing use case,
      when the packaging script is tested, the build dir is usually kept for
      debugging purposes.
      
      closes odoo/odoo#78386
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      fae2bd0c
    • Christophe Monniez's avatar
      [IMP] packaging: automate win installer displayed version · e7231db7
      Christophe Monniez authored
      When a new Odoo version is released, the displayed version in the
      Windows NSIS installer has to be manually updated.
      
      With this commit, the displayed version is computed from the release.py
      file.
      
      Part-of: odoo/odoo#78386
      e7231db7
  16. Oct 11, 2021
  17. Oct 09, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: fix python abi detection in rpm · 7e1e0f16
      Christophe Monniez authored
      
      Although the ABI detection was fixed in install, it was forgotten in
      post install script.
      
      closes odoo/odoo#78097
      
      X-original-commit: 3a4e98b6
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      7e1e0f16
    • Christophe Monniez's avatar
      [FIX] packaging: add missing dependencies · f78b6d00
      Christophe Monniez authored
      A dependency on python pyopenssl package was added in #61853 and flew
      under the radar. As this package is pure python, it should not cause any
      arm.
      
      Also, it seems that the gsfonts package is needed on Debian to print
      things like barcode badges. Previously, the gsfonts package was a
      dependency of python3-renderm package which is itself a dependency of
      odoo. The gsfonts dependency was removed in the python3-renderpm Bullseye package.
      
      With this commit the gsfonts dependency is set on the odoo Debian
      package directly.
      
      X-original-commit: 248762c8
      Part-of: odoo/odoo#78097
      f78b6d00
  18. Oct 07, 2021
  19. Sep 15, 2021
  20. Mar 06, 2021
  21. Feb 25, 2021
  22. Feb 01, 2021
  23. Jan 29, 2021
    • Christophe Monniez's avatar
      [FIX] packaging: update rpm packaging for fedora 32 · 2d4c3834
      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#65288
      
      X-original-commit: a8deb1dd
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      2d4c3834
  24. Dec 18, 2020
  25. Nov 27, 2020
    • Xavier Morel's avatar
      [IMP] requirements: resolve compatibility issues for 3.8 and 3.9 · 43dd8785
      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#62510
      
      X-original-commit: 648635de
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      43dd8785
  26. Oct 21, 2020
  27. Sep 24, 2020
    • Christophe Monniez's avatar
      [FIX] packaging: wait for windows sshd service · 18bdafae
      Christophe Monniez authored
      
      In some undeterministic conditions, the Windows virtual machine can take
      more than 60 sec to start and have the sshd service ready.
      
      With this commit, the packaging script tries to connect to the VM up to
      30 times, giving more than 10 minutes for the boot.
      
      As soon as the connexion is ready, the packaging starts. This means
      that the script will probably start sooner in most of the cases.
      
      closes odoo/odoo#58417
      
      X-original-commit: aed85d89
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      18bdafae
  28. Sep 15, 2020
    • Christophe Monniez's avatar
      [IMP] packaging: update windows packaging · 917928eb
      Christophe Monniez authored
      
      Up to Odoo 13.0, the windows setup is 32 bits and embeds an old
      postgresql 9.5 32 bits version too.
      
      With this commit, the postgresql server is no longer embedded in the
      resulting setup file. Instead, if the user choose to install the
      postgresql server, the 12.4 version is downloaded from the official site
      (version 10.14 in the case of a 32 bits windows).
      
      Also, the Python target achitecture is choosen based on the Windows
      system on which Odoo is installed.
      
      This imply changes on the KVM images used to build the installer:
      
          - The Windows system on the KVM as to be 64 bits.
          - A 32 bits WinPython version must be in `c:/odoobuild/WinPy32`
          - A 64 bits WinPyhton version must be in `c:/odoobuild/WinPy64`
      
      A little bit of cleaning also comes with this commit to get rid of the
      old `openerp` references.
      
      closes odoo/odoo#57727
      
      X-original-commit: c47d7c67
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      917928eb
  29. Aug 21, 2020
    • Christophe Monniez's avatar
      [FIX] packaging: stop docker container when odoo fails · 5dbabad0
      Christophe Monniez authored
      
      When the Odoo installation is tested, if the test fails an error is
      raised but the Docker container is not stopped.
      
      As a result, a ghost container stays alive with a Postgres server
      running. Worse, if another package is built on the same host, the
      ghost container prevent the other build to succeed.
      
      With this commit, a specific Exception is raised and the container is
      stopped in any case.
      
      closes odoo/odoo#56270
      
      X-original-commit: fbe2092d
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      5dbabad0
  30. Aug 03, 2020
  31. Jul 10, 2020
    • Romain Tartière's avatar
      [FIX] packaging: List all package versions in APT repositories · 607b3c9b
      Romain Tartière authored
      
      When building the package list of the APT repository, dpkg-scanpackages
      reports the following and only output the latest package information in
      the Packages file:
      
      ```
      dpkg-scanpackages: warning: Packages with multiple instances but no --multiversion specified:
      dpkg-scanpackages: warning: ./odoo_13.0.20191002_all.deb
      dpkg-scanpackages: warning: ./odoo_13.0.20191003_all.deb
      [...]
      dpkg-scanpackages: warning: ./odoo_13.0.20200630_all.deb
      ```
      
      Having only the latest version listed in the Packages file makes it
      impossible to tell apt to use a specific version through apt-pinning.
      It also makes it impossible to revert to a previous version if a
      regression is caused by an update.
      
      For these reasons, tell dpkg-scanpackages to include all versions of the
      odoo package in the Packages file it generates.
      
      closes odoo/odoo#54302
      
      X-original-commit: f41c00a8
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      607b3c9b
  32. Apr 09, 2020
  33. 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
  34. Feb 05, 2020
  35. 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
  36. Nov 05, 2019
    • Christophe Monniez's avatar
      [FIX] packaging: compute winpython path with package.py args · 7ce07a7a
      Christophe Monniez authored
      
      When building the MS Windows package, the PYTHON_VERSION variable is not
      used and the WinPython path is hard coded in the Makefile and NSI file.
      This prevent the usage of a newer version of Python.
      
      With this commit, the PYTHON_VERSION is used to compute the WinPython
      Python directory. That way, this directory can be derived from
      package.py command line argument --vm-winxp-python-version.
      
      Also the less windows binaries are not packaged anymore.
      
      closes odoo/odoo#39821
      
      X-original-commit: ac90d858
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      7ce07a7a
  37. Oct 22, 2019
Loading