Commit 5ffe2fec authored by Jérome Perrin's avatar Jérome Perrin

deploy-test: pre-install requests

These tests are still using `python setup.py test` which installs
missing packages to their latest versions. Recently, certifi (a
requests dependency) published a new release with python3 only
syntax, so running the test now got an error installing missing
packages:

    File "parts/slapos-package/playbook/roles/standalone-shared/.eggs/certifi-2022.5.18.1-py2.7.egg/certifi/core.py", line 17
        def where() -> str:
                    ^
    SyntaxError: invalid syntax

The `playbook/roles/standalone-shared` is defined on the test suite
as instance parameters, so it seems we can not already install this
package directly from playbook/roles/standalone-shared because
test suite may define something different. For now, just install
requests. All this will have to be addressed when we change this
test to pre-install packages with slapos and use `python -m unittest`
instead of `python setup.py test`.
parent b0e43f8a
Pipeline #21773 failed with stage
...@@ -12,6 +12,7 @@ parts = ...@@ -12,6 +12,7 @@ parts =
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = eggs =
erp5.util erp5.util
requests
interpreter = ${:_buildout_section_name_} interpreter = ${:_buildout_section_name_}
[python2.7-with-eggs] [python2.7-with-eggs]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment