Fix misaligned triple-quote blocks
This commit is contained in:
@@ -14,7 +14,7 @@ basic_project = test_projects.new_c_project(
|
||||
|
||||
if os.environ.get("CIBUILDWHEEL", "0") != "1":
|
||||
raise Exception("CIBUILDWHEEL environment variable is not set to 1")
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ project_with_before_build_asserts = test_projects.new_c_project(
|
||||
|
||||
print("## stored text: " + stored_text)
|
||||
assert stored_text == "sample text 123"
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ project_with_before_build_asserts = test_projects.new_c_project(
|
||||
print('sys.executable', sys.executable)
|
||||
# windows/mac are case insensitive
|
||||
assert os.path.realpath(stored_executable).lower() == os.path.realpath(sys.executable).lower()
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ project_with_skip_asserts = test_projects.new_c_project(
|
||||
raise Exception("Python 2.7 should not be built")
|
||||
if sys.version_info[0:2] == (3, 7):
|
||||
raise Exception("Python 3.7 should be skipped")
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from .test_projects import TestProject
|
||||
|
||||
cpp_test_project = TestProject()
|
||||
|
||||
setup_py_template = r'''\
|
||||
setup_py_template = r'''
|
||||
from setuptools import Extension, setup
|
||||
|
||||
setup(
|
||||
@@ -18,7 +18,7 @@ setup(
|
||||
)
|
||||
'''
|
||||
|
||||
spam_cpp_template = r'''\
|
||||
spam_cpp_template = r'''
|
||||
#include <Python.h>
|
||||
|
||||
{{ spam_cpp_top_level_add }}
|
||||
|
||||
@@ -31,7 +31,7 @@ project_with_expected_version_checks = test_projects.new_c_project(
|
||||
assert '{}=={}'.format(package_name, expected_version) in versions, (
|
||||
'error: {} version should equal {}'.format(package_name, expected_version)
|
||||
)
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
@@ -148,7 +148,7 @@ def test_dependency_constraints_file(tmp_path, python_version):
|
||||
setuptools=={setuptools}
|
||||
wheel=={wheel}
|
||||
virtualenv=={virtualenv}
|
||||
'''.format(
|
||||
'''.format(
|
||||
**tool_versions
|
||||
)
|
||||
)
|
||||
|
||||
@@ -16,7 +16,7 @@ dockcross_only_project = test_projects.new_c_project(
|
||||
raise Exception(
|
||||
"/dockcross directory not found. Is this test running in the correct docker image?"
|
||||
)
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ project_with_environment_asserts = test_projects.new_c_project(
|
||||
raise Exception('PATH should contain "/opt/cibw_test_path". It was "%s"' % PATH)
|
||||
if "$PATH" in PATH:
|
||||
raise Exception('$PATH should be expanded in PATH. It was "%s"' % PATH)
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ project_with_manylinux_symbols = test_projects.new_c_project(
|
||||
#if !__GLIBC_PREREQ(2, 5) /* manylinux1 is glibc 2.5 */
|
||||
#error "Must run on a glibc >= 2.5 linux environment"
|
||||
#endif
|
||||
'''
|
||||
'''
|
||||
),
|
||||
spam_c_function_add=textwrap.dedent(
|
||||
r'''
|
||||
@@ -35,7 +35,7 @@ project_with_manylinux_symbols = test_projects.new_c_project(
|
||||
// malloc_info is only available on manylinux2010+
|
||||
sts = malloc_info(0, stdout);
|
||||
#endif
|
||||
'''
|
||||
'''
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -13,22 +13,16 @@ def main():
|
||||
parser.add_argument(
|
||||
'--open',
|
||||
action='store_true',
|
||||
help='''
|
||||
Open the generated project in a file explorer
|
||||
''',
|
||||
help='Open the generated project in a file explorer',
|
||||
)
|
||||
parser.add_argument(
|
||||
'PROJECT',
|
||||
help='''
|
||||
Python path to a project object. E.g. test.test_0_basic.basic_project
|
||||
''',
|
||||
help='Python path to a project object. E.g. test.test_0_basic.basic_project',
|
||||
)
|
||||
parser.add_argument(
|
||||
'OUTPUT',
|
||||
nargs='?',
|
||||
help='''
|
||||
Path to output dir. If no dir is passed, a tempdir will be generated.
|
||||
''',
|
||||
help='Path to output dir. If no dir is passed, a tempdir will be generated.',
|
||||
)
|
||||
options = parser.parse_args()
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ project_with_ssl_tests = test_projects.new_c_project(
|
||||
data = urlopen("https://www.nist.gov", context=context)
|
||||
data = urlopen("https://raw.githubusercontent.com/joerick/cibuildwheel/master/CI.md", context=context)
|
||||
data = urlopen("https://raw.githubusercontent.com/joerick/cibuildwheel/master/CI.md")
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ project_with_a_test = test_projects.new_c_project(
|
||||
r'''
|
||||
[options.extras_require]
|
||||
test = nose
|
||||
'''
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ project_with_unicode = test_projects.new_c_project(
|
||||
{
|
||||
Py_XDECREF(PyUnicode_FromStringAndSize("foo", 4));
|
||||
}
|
||||
'''
|
||||
'''
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user