Skip to content

Commit

Permalink
revisit ci/bootstrap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Mar 8, 2019
1 parent 912c27d commit 7a7863f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ci/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@
# WARNING: 'tox' must be installed globally or in the project's virtualenv
for line in subprocess.check_output(['tox', '--listenvs'], universal_newlines=True).splitlines()
]
tox_environments = [line for line in tox_environments if line not in ['clean', 'report', 'docs', 'check']]
tox_environments = [line for line in tox_environments
if line not in ['clean', 'report', 'docs', 'check']]

template_vars = {'tox_environments': tox_environments}
for py_ver in '27 34 35 py'.split():
template_vars['py%s_environments' % py_ver] = [x for x in tox_environments if x.startswith('py' + py_ver)]
template_vars['py%s_environments' % py_ver] = [
x for x in tox_environments
if x.startswith('py' + py_ver)]

for name in os.listdir(join("ci", "templates")):
with open(join(base_path, name), "w") as fh:
Expand Down

0 comments on commit 7a7863f

Please sign in to comment.