1. 05 Aug, 2024 2 commits
    • Carlos Ramos Carreño's avatar
      Pin software versions. · b6ca7510
      Carlos Ramos Carreño authored
      The version of z3c.pt, Chameleon and sourcecodegen were not pinned in
      ERP5-Zope2.
      We pin them to the same version used in our client project.
      b6ca7510
    • Carlos Ramos Carreño's avatar
      Add five.pt. · 20b7554e
      Carlos Ramos Carreño authored
      The current ERP5 version used for our client uses the five.pt module.
      If we do not install it explicitly it produces the following error when
      testing:
      
      ```python
      Traceback (most recent call last):
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/bin/runUnitTest", line 365, in <module>
          sys.exit(runUnitTest.main())
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/parts/erp5/Products/ERP5Type/tests/runUnitTest.py", line 879, in main
          run_only=run_only,
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/parts/erp5/Products/ERP5Type/tests/runUnitTest.py", line 572, in runUnitTestList
          layer.ZopeLite.setUp() # this will import custom_zodb.py
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Testing/ZopeTestCase/layer.py", line 26, in setUp
          func(*args, **kw)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Testing/ZopeTestCase/ZopeLite.py", line 148, in _startup
          _theApp = Zope2.app()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/__init__.py", line 51, in app
          startup()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/__init__.py", line 47, in startup
          _startup()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/App/startup.py", line 120, in startup
          load_zcml()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
          load_site()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
          _context = xmlconfig.file(site_zcml)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 649, in file
          include(context, name, package)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
          processxmlfile(f, context)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
          parser.parse(src)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 111, in parse
          xmlreader.IncrementalParser.parse(self, source)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
          self.feed(buffer)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 220, in feed
          self._parser.Parse(data, isFinal)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 384, in end_element_ns
          self._cont_handler.endElementNS(pair, None)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
          self.context.end()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
          self.stack.pop().finish()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 706, in finish
          actions = self.handler(context, **args)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/OFS/metaconfigure.py", line 46, in loadProducts
          xmlconfig.include(_context, zcml, package=product)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 548, in include
          processxmlfile(f, context)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 380, in processxmlfile
          parser.parse(src)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 111, in parse
          xmlreader.IncrementalParser.parse(self, source)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
          self.feed(buffer)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 220, in feed
          self._parser.Parse(data, isFinal)
        File "/srv/slapgrid/slappart14/t/eoa/shared/python2.7/5946ea6f150e3d313513dba389733880/lib/python2.7/xml/sax/expatreader.py", line 384, in end_element_ns
          self._cont_handler.endElementNS(pair, None)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 359, in endElementNS
          self.context.end()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 558, in end
          self.stack.pop().finish()
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 705, in finish
          args = toargs(context, *self.argdata)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 1397, in toargs
          args[str(name)] = field.fromUnicode(s)
        File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/fields.py", line 139, in fromUnicode
          raise schema.ValidationError(v)
      zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/eggs/Zope2-2.13.30-py2.7.egg/Zope2/utilities/skel/etc/site.zcml", line 16.2-16.23
          ZopeXMLConfigurationError: File "/srv/slapgrid/slappart14/t/eoa/soft/23ce02aa8134fb106bc2d3fe6f88f002/parts/erp5/product/ERP5Chameleon/configure.zcml", line 1.0-1.29
          ConfigurationError: ('Invalid value for', 'package', 'ImportError: Module five has no global pt')
      ```
      
      Thus, this commit installs the same version that is used for our client.
      20b7554e
  2. 02 Aug, 2024 2 commits
    • Carlos Ramos Carreño's avatar
      Add back DCWorkflowGraph. · 03991440
      Carlos Ramos Carreño authored
      This is just to fix compilation of very old ERP5 versions.
      Do not merge into master!!
      03991440
    • Carlos Ramos Carreño's avatar
      Update to buildout 3 for erp5-zope2. · 8fec0f04
      Carlos Ramos Carreño authored
      The SR of erp5-zope2 had the version of zc.buildout pinned to an
      unpatched version that did not support build dependencies (
      "setup-eggs").
      This caused problems when trying to compile erp5-zope2 with recent
      SlapOS in the test nodes, as it tries to use "setup_requires" instead,
      which is not allowed:
      
      ```
      Getting distribution for 'wstools'.
      DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
          ERROR: Command errored out with exit status 1:
           command: /srv/slapgrid/slappart19/t/eoa/shared/python2.7/3be205495452cf4067d1b6b952432c55/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-V_C9uf/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-V_C9uf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2KP9FV
               cwd: /tmp/pip-req-build-V_C9uf/
          Complete output (25 lines):
          DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
          WARNING: Url 'file:///dev/null/pytest-runner/' is ignored: it is neither a file nor a directory.
          ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)
          ERROR: No matching distribution found for pytest-runner
      ```
      
      We remove these pins to use the latter version of buildout from
      slapos.cfg.
      
      In addition we adapt the erp5-zope2 buildout.cfg to buildout 3,
      following the same steps as in 8c45efb1.
      8fec0f04
  3. 31 Jul, 2024 2 commits
    • Carlos Ramos Carreño's avatar
      Change SOAPpy version for erp5-zope2. · b642d9da
      Carlos Ramos Carreño authored
      The version used for SOAPpy in erp5-zope2 was 0.12.0nxd001.
      This is not a PEP 440-compliant version and thus compilation with the
      newer buildout fails with:
      
      ``
      Getting distribution for 'SOAPpy==0.12.0nxd001'.
      DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
        WARNING: Built wheel for SOAPpy is invalid: Metadata 1.2 mandates PEP 440 version, but '0.12.0nxd001' is not
      ERROR: Failed to build one or more wheels
      ```
      
      We upgrade the version to 0.12.22, which is the same that was done for
      erp5 SR when buildout was upgraded.
      b642d9da
    • Carlos Ramos Carreño's avatar
      Remove `cycler` from slapos.cfg. · 42c7cb56
      Carlos Ramos Carreño authored
      The version of `cycler` in stack/slapos.cfg is overriding the version
      specified in component/matplotlib/buildout.cfg.
      This is a problem because the former does not take into account the
      Python version, while the later does.
      Thus, attempting to compile in Python 2 would give the following error:
      
      ```
      Getting distribution for 'cycler==0.11.0'.
      DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
      ERROR: Package 'cycler' requires a different Python: 2.7.18 not in '>=3.6'
      While:
        Installing matplotlib.
        Base installation request: 'cycler', 'python-dateutil', 'numpy'
        Getting distribution for 'cycler==0.11.0'.
      ```
      
      This removes `cycler` from `slapos.cfg`, so that it does not fail with
      Python 2.
      42c7cb56
  4. 30 Jul, 2024 1 commit
    • Carlos Ramos Carreño's avatar
      Re-add dependency on Python 2 for NEO. · e1ccb999
      Carlos Ramos Carreño authored
      NEO does not currently work with Python 3.
      Its dependency with Python 2 was removed in
      nexedi/slapos@b3ac97ff
      This causes erp5-zope2 to fail during installation with the following
      message:
      
      ```python
      Getting distribution for 'zope.testing==3.9.7'.
        error: subprocess-exited-with-error
      
        × python setup.py egg_info did not run successfully.
        │ exit code: 1
        ╰─> [7 lines of output]
            Traceback (most recent call last):
              File "<string>", line 2, in <module>
              File "<pip-setuptools-caller>", line 34, in <module>
              File "/tmp/pip-req-build-e3n8vnyw/setup.py", line 37
                except ImportError, e:
                                  ^
            SyntaxError: invalid syntax
            [end of output]
      ```
      
      Thus, we re-add the constraint in this commit.
      e1ccb999
  5. 29 Jul, 2024 1 commit
    • Rafael Monnerat's avatar
      kvm/theia: Dont use allOf on resilient to extend properties · 42083eea
      Rafael Monnerat authored
        allOf implies that all (both) schemas should be valid, but
          additionalProperties false wont allow it, since it become multually
          invalid. (You can validate only one or None)
      
        Just use $ref to expand the list, it end up with the expected outcome
         reducing complexity.
      
        Note: kvm wasn't using additionalProperties false but it was changed
         because it makes it future proof, in case we set it (we should set).
      42083eea
  6. 25 Jul, 2024 3 commits
  7. 24 Jul, 2024 1 commit
  8. 22 Jul, 2024 1 commit
  9. 19 Jul, 2024 2 commits
  10. 17 Jul, 2024 1 commit
  11. 16 Jul, 2024 2 commits
  12. 15 Jul, 2024 10 commits
  13. 12 Jul, 2024 5 commits
  14. 11 Jul, 2024 2 commits
  15. 09 Jul, 2024 3 commits
  16. 08 Jul, 2024 2 commits