1. 02 Aug, 2024 1 commit
    • 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
  2. 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
  3. 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
  4. 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
  5. 25 Jul, 2024 3 commits
  6. 24 Jul, 2024 1 commit
  7. 22 Jul, 2024 1 commit
  8. 19 Jul, 2024 2 commits
  9. 17 Jul, 2024 1 commit
  10. 16 Jul, 2024 2 commits
  11. 15 Jul, 2024 10 commits
  12. 12 Jul, 2024 5 commits
  13. 11 Jul, 2024 2 commits
  14. 09 Jul, 2024 3 commits
  15. 08 Jul, 2024 4 commits
  16. 03 Jul, 2024 1 commit