Neaten the environment modification using triple-quotes and dict.update

This commit is contained in:
Joe Rickerby
2019-04-22 23:23:49 +01:00
parent 857aafbd3f
commit 9050137d2b
5 changed files with 23 additions and 13 deletions
+4 -2
View File
@@ -7,8 +7,10 @@ def test():
# set up the environment
env = os.environ.copy()
env['CIBW_BUILD'] = 'cp3?-*'
env['CIBW_SKIP'] = 'cp34-*'
env.update({
'CIBW_BUILD': 'cp3?-*',
'CIBW_SKIP': 'cp34-*',
})
# build the wheels
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)