Commit 545a45bc authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

slaprunner: new software release targeting Python 3

parent 6c153fe2
[buildout]
extends =
../../component/python3/buildout.cfg
software.cfg
python = python3
# Ignore these for now
common-parts -=
rdiff-backup
[eggs]
recipe = zc.recipe.egg
eggs -=
# futures is a backport of Py3's concurrent.futures module.
futures
...@@ -38,13 +38,15 @@ from six.moves.urllib.parse import quote ...@@ -38,13 +38,15 @@ from six.moves.urllib.parse import quote
from six.moves.urllib.parse import urljoin from six.moves.urllib.parse import urljoin
from six.moves.configparser import ConfigParser from six.moves.configparser import ConfigParser
import requests import requests
import six
from slapos.recipe.librecipe import generateHashFromFiles from slapos.recipe.librecipe import generateHashFromFiles
from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass from slapos.testing.testcase import makeModuleSetUpAndTestCaseClass
setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass( setUpModule, SlapOSInstanceTestCase = makeModuleSetUpAndTestCaseClass(
os.path.abspath( os.path.abspath(
os.path.join(os.path.dirname(__file__), '..', 'software.cfg'))) os.path.join(os.path.dirname(__file__), '..',
'software%s.cfg' % ("-py3" if six.PY3 else ""))))
class SlaprunnerTestCase(SlapOSInstanceTestCase): class SlaprunnerTestCase(SlapOSInstanceTestCase):
......
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