Skip to content

Commit

Permalink
Merge pull request #150 from 4teamwork/python3
Browse files Browse the repository at this point in the history
Python 3 support
  • Loading branch information
buchi authored Apr 17, 2019
2 parents bbc0228 + b41a898 commit c1ff4cf
Showing 1 changed file with 16 additions and 30 deletions.
46 changes: 16 additions & 30 deletions test-base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,9 @@ allow-hosts =

# bin/test : A script running the tests of the configured package.
[test]
recipe = zc.recipe.egg
recipe = collective.xmltestreport
eggs =
collective.xmltestreport
${buildout:test-egg}
entry-points = test=collective.xmltestreport.runner:run_internal
arguments = ['-s', '${buildout:package-namespace}', '--exit-with-status', '--auto-color', '--auto-progress', '--xml', '--test-path', '${buildout:directory}']
initialization =
import os
sys.argv[0] = os.path.abspath(sys.argv[0])
Expand All @@ -112,17 +109,7 @@ initialization =
except OSError: pass
if 'CHAMELEON_CACHE' not in os.environ: os.environ['CHAMELEON_CACHE'] = chameleon_cache_dir
scripts = test

# collective.xmltestreport currently returns bad exit codes when installed as it
# is intended. Therefore we manually install it and use run_internal instead of run.
# See https://github.com/collective/collective.xmltestreport/issues/3
#
# recipe = collective.xmltestreport
# eggs = ${buildout:test-egg}
# script = test
# defaults =
# ['-s', '${buildout:package-name}', '--exit-with-status', '--auto-color', '--auto-progress', '--xml']

defaults = ['-s', '${buildout:package-namespace}', '--exit-with-status', '--auto-color', '--auto-progress', '--xml', '--test-path', '${buildout:directory}']


# bin/coverage : A helper script generating a coverage report.
Expand Down Expand Up @@ -201,13 +188,12 @@ mode = 755

# Downloads the default pycodestyle.cfg.
[pycodestyle-cfg]
recipe = collective.recipe.shelloutput
recipe = collective.recipe.cmd
cfgfile = ${buildout:directory}/parts/pycodestyle/pycodestyle.cfg
cfgurl = https://raw.githubusercontent.com/4teamwork/ftw-buildouts/master/pycodestyle.cfg
commands =
cmd1 = mkdir -p `dirname ${pycodestyle-cfg:cfgfile}`
cmd2 = curl "${pycodestyle-cfg:cfgurl}" > "${pycodestyle-cfg:cfgfile}"

cmds =
mkdir -p `dirname ${pycodestyle-cfg:cfgfile}`
curl "${pycodestyle-cfg:cfgurl}" > "${pycodestyle-cfg:cfgfile}"


# bin/pycodestyle : pycodestyle validation of the packages source.
Expand Down Expand Up @@ -244,12 +230,12 @@ initialization =

# Downloads the default pydocstyle.cfg.
[pydocstyle-cfg]
recipe = collective.recipe.shelloutput
recipe = collective.recipe.cmd
cfgfile = ${buildout:directory}/parts/pydocstyle/pydocstyle.cfg
cfgurl = https://raw.githubusercontent.com/4teamwork/ftw-buildouts/master/pydocstyle.cfg
commands =
cmd1 = mkdir -p `dirname ${pydocstyle-cfg:cfgfile}`
cmd2 = curl "${pydocstyle-cfg:cfgurl}" > "${pydocstyle-cfg:cfgfile}"
cmds =
mkdir -p `dirname ${pydocstyle-cfg:cfgfile}`
curl "${pydocstyle-cfg:cfgurl}" > "${pydocstyle-cfg:cfgfile}"



Expand All @@ -271,12 +257,12 @@ initialization =

# Downloads the default isort.cfg.
[isort-cfg]
recipe = collective.recipe.shelloutput
recipe = collective.recipe.cmd
cfgfile = ${buildout:directory}/parts/isort/.isort.cfg
cfgurl = https://raw.githubusercontent.com/4teamwork/ftw-buildouts/master/.isort.cfg
commands =
cmd1 = mkdir -p `dirname ${isort-cfg:cfgfile}`
cmd2 = curl "${isort-cfg:cfgurl}" > "${isort-cfg:cfgfile}"
cmds =
mkdir -p `dirname ${isort-cfg:cfgfile}`
curl "${isort-cfg:cfgurl}" > "${isort-cfg:cfgfile}"

# bin/isort : isort validation of the packages source.
[isort]
Expand Down Expand Up @@ -476,5 +462,5 @@ scripts = dependencychecker


[versions]
# collective.xmltestreport: pinned down because of the z3c.recipe.scripts which results in version conflicts with the zope versions configuration.
collective.xmltestreport = 1.2.6
collective.recipe.cmd = 0.11
collective.xmltestreport = 2.0.1

0 comments on commit c1ff4cf

Please sign in to comment.