In general, prefer single quotes
This commit is contained in:
@@ -8,11 +8,11 @@ import utils
|
|||||||
def test():
|
def test():
|
||||||
# set up the environment
|
# set up the environment
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["CIBW_TEST_REQUIRES"] = "nose",
|
env['CIBW_TEST_REQUIRES'] = 'nose',
|
||||||
# the 'false ||' bit is to ensure this command runs in a shell on
|
# the 'false ||' bit is to ensure this command runs in a shell on
|
||||||
# mac/linux.
|
# mac/linux.
|
||||||
env["CIBW_TEST_COMMAND"] = "false || nosetests {project}/test"
|
env['CIBW_TEST_COMMAND'] = 'false || nosetests {project}/test'
|
||||||
env["CIBW_TEST_COMMAND_WINDOWS"] = "nosetests {project}/test"
|
env['CIBW_TEST_COMMAND_WINDOWS'] = 'nosetests {project}/test'
|
||||||
|
|
||||||
# build & test the wheels
|
# build & test the wheels
|
||||||
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ def test():
|
|||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
# write python version information to a temporary file, this is checked
|
# write python version information to a temporary file, this is checked
|
||||||
# in setup.py
|
# in setup.py
|
||||||
env["CIBW_BEFORE_BUILD"] = "python -c \"import sys; open('/tmp/pythonversion.txt', 'w').write(sys.version)\" && python -c \"import sys; open('/tmp/pythonexecutable.txt', 'w').write(sys.executable)\"",
|
env['CIBW_BEFORE_BUILD'] = "python -c \"import sys; open('/tmp/pythonversion.txt', 'w').write(sys.version)\" && python -c \"import sys; open('/tmp/pythonexecutable.txt', 'w').write(sys.executable)\""
|
||||||
env["CIBW_BEFORE_BUILD_WINDOWS"] = "python -c \"import sys; open('c:\\pythonversion.txt', 'w').write(sys.version)\" && python -c \"import sys; open('c:\\pythonexecutable.txt', 'w').write(sys.executable)\""
|
env['CIBW_BEFORE_BUILD_WINDOWS'] = "python -c \"import sys; open('c:\\pythonversion.txt', 'w').write(sys.version)\" && python -c \"import sys; open('c:\\pythonexecutable.txt', 'w').write(sys.executable)\""
|
||||||
|
|
||||||
# build the wheels
|
# build the wheels
|
||||||
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import utils
|
|||||||
def test():
|
def test():
|
||||||
# set up the environment
|
# set up the environment
|
||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["CIBW_BUILD"] = "cp3?-*"
|
env['CIBW_BUILD'] = 'cp3?-*'
|
||||||
env["CIBW_SKIP"] = "cp34-*"
|
env['CIBW_SKIP'] = 'cp34-*'
|
||||||
|
|
||||||
# build the wheels
|
# build the wheels
|
||||||
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ def test():
|
|||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
# change the docker images to use. The docker image is tested in setup.py
|
# change the docker images to use. The docker image is tested in setup.py
|
||||||
# during the build
|
# during the build
|
||||||
env["CIBW_MANYLINUX1_X86_64_IMAGE"] = "dockcross/manylinux-x64"
|
env['CIBW_MANYLINUX1_X86_64_IMAGE'] = 'dockcross/manylinux-x64'
|
||||||
env["CIBW_MANYLINUX1_I686_IMAGE"] = "dockcross/manylinux-x86"
|
env['CIBW_MANYLINUX1_I686_IMAGE'] = 'dockcross/manylinux-x86'
|
||||||
|
|
||||||
# build the wheels
|
# build the wheels
|
||||||
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_dir], env=env)
|
||||||
|
|||||||
Reference in New Issue
Block a user