Merge remote-tracking branch 'origin/master' into macos-universal2
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import platform
|
||||
import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
from cibuildwheel.logger import Logger
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
basic_project = test_projects.new_c_project(
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import pytest
|
||||
import subprocess
|
||||
import textwrap
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
import pytest
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_before_build_asserts = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import pytest
|
||||
import subprocess
|
||||
import textwrap
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
import pytest
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_before_build_asserts = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from . import test_projects
|
||||
from . import utils
|
||||
from . import test_projects, utils
|
||||
|
||||
before_test_project = test_projects.new_c_project()
|
||||
before_test_project.files['test/spam_test.py'] = r'''
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import textwrap
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_skip_asserts = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import re
|
||||
import pytest
|
||||
import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
import cibuildwheel.util
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_expected_version_checks = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -3,8 +3,7 @@ import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
dockcross_only_project = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import subprocess
|
||||
import pytest
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
|
||||
import pytest
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_a_test = test_projects.new_c_project()
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import os
|
||||
import pytest
|
||||
import subprocess
|
||||
import textwrap
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
|
||||
import pytest
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_environment_asserts = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import pytest
|
||||
import platform
|
||||
|
||||
import pytest
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
basic_project = test_projects.new_c_project()
|
||||
|
||||
@@ -3,8 +3,7 @@ import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
# TODO: specify these at runtime according to manylinux_image
|
||||
project_with_manylinux_symbols = test_projects.new_c_project(
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
import textwrap
|
||||
from . import test_projects
|
||||
from . import utils
|
||||
import os
|
||||
import textwrap
|
||||
|
||||
from . import test_projects, utils
|
||||
|
||||
basic_project = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Union
|
||||
|
||||
import jinja2
|
||||
|
||||
from typing import Union, Dict, Any
|
||||
|
||||
|
||||
FilesDict = Dict[str, Union[str, jinja2.Template]]
|
||||
TemplateContext = Dict[str, Any]
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import jinja2
|
||||
from .base import TestProject
|
||||
|
||||
from .base import TestProject
|
||||
|
||||
SPAM_C_TEMPLATE = r'''
|
||||
#include <Python.h>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import subprocess
|
||||
import pytest
|
||||
from test import test_projects
|
||||
|
||||
import pytest
|
||||
|
||||
from . import utils
|
||||
|
||||
pure_python_project = test_projects.TestProject()
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
import textwrap
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_ssl_tests = test_projects.new_c_project(
|
||||
setup_py_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -4,8 +4,7 @@ import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_a_test = test_projects.new_c_project(
|
||||
setup_cfg_add=textwrap.dedent(r'''
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import subprocess
|
||||
|
||||
import pytest
|
||||
from .test_projects import TestProject
|
||||
|
||||
from . import utils
|
||||
from .test_projects import TestProject
|
||||
|
||||
so_file_project = TestProject()
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@ import textwrap
|
||||
|
||||
import pytest
|
||||
|
||||
from . import utils
|
||||
from . import test_projects
|
||||
from . import test_projects, utils
|
||||
|
||||
project_with_unicode = test_projects.new_c_project(
|
||||
spam_c_function_add=textwrap.dedent(r'''
|
||||
|
||||
Reference in New Issue
Block a user