...
 
Commits (2)
  • Jérome Perrin's avatar
    software/slapos-sr-testing: fix python-interpreter for python3 · e7681c21
    Jérome Perrin authored
    The initial intent was to use an interpreter named `python_for_test` and not
    `python`, so that software do not accidentally pick up this python during
    compilation.
    6033e4fa (software/slapos-sr-testing: fix python3 profile, 2020-12-01)
    was a quick fix for some python3 compatibility issues discovered after merge,
    but it was not correct, because by using ${python-interpreter:eggs}, it was
    installing the default python-interpreter section, which has an interpreter
    named `python`.
    
    This caused issues while building proxysql, which assumes /usr/bin/env python
    is python2.
    
    The fix is to override python-interpreter directly, we don't need another
    section eggs here.
    e7681c21
  • Jérome Perrin's avatar
    software/slapos-sr-testing: run repman only on python3 · 684af273
    Jérome Perrin authored
    in ceb063a4 (software/repman: tests python3 compliance, 2020-10-23), test
    profile was changed to run on python3 only but this was accidentally
    reverted in 3a1e5628 (software/slapos-sr-testing: use nxdtest, 2020-10-28),
    by running repman also on python2.
    
    Restore the situation where we run repman only on python3
    684af273
......@@ -5,8 +5,8 @@ extends =
[python]
part = python3
[eggs]
eggs +=
[python-interpreter]
extra-eggs +=
# plantuml 0.3.0 is only available for Python 3
${slapos.test.plantuml-setup:egg}
......
......@@ -167,10 +167,9 @@ branch = master
egg = slapos.core
setup = ${slapos.core-repository:location}
[eggs]
<= python-interpreter
eggs =
${python-interpreter:eggs}
[python-interpreter]
eggs += ${:extra-eggs}
extra-eggs =
${lxml-python:egg}
${slapos.core-setup:egg}
${pillow-python:egg}
......@@ -217,7 +216,7 @@ PyPDF2-patch-options = -p1
[eggs/scripts]
recipe = zc.recipe.egg
eggs = ${eggs:eggs}
eggs = ${python-interpreter:eggs}
scripts =
slapos
supervisord
......@@ -244,7 +243,7 @@ context =
key nxdtest_instance nxdtest-instance.cfg:rendered
key git_location git:location
key slapos_location slapos-repository:location
key interpreter eggs:interpreter
key interpreter python-interpreter:interpreter
key curl_location curl:location
key openssl_location openssl-output:bin
key faketime_location faketime:location
......@@ -273,7 +272,6 @@ extra =
gitlab ${slapos.test.gitlab-setup:setup}
cloudooo ${slapos.test.cloudooo-setup:setup}
dream ${slapos.test.dream-setup:setup}
repman ${slapos.test.repman-setup:setup}
[versions]
# slapos.core is used from the clone always
......