@@ -73,19 +73,28 @@ def create_environ(python_version: str) -> Dict[str, str]:
73
73
'MYPY_USE_MYPYC=1 MYPYC_OPT_LEVEL=2 PIP_NO_BUILD_ISOLATION=no'
74
74
)
75
75
76
+ # lxml doesn't have a wheel for Python 3.10 on the manylinux image we use.
77
+ # lxml has historically been slow to support new Pythons as well.
76
78
env ['CIBW_BEFORE_TEST' ] = (
77
- 'pip install -r {project}/mypy/test-requirements.txt'
79
+ 'pip install -r <(grep -v lxml {project}/mypy/test-requirements.txt) '
78
80
)
79
81
80
82
# pytest looks for configuration files in the parent directories of where the tests live.
81
83
# since we are trying to run the tests from their installed location, we copy those into
82
84
# the venv. Ew ew ew.
85
+ # We don't run tests that need lxml since we don't install lxml
86
+ # We don't run external mypyc tests since there's some issue with compilation on the
87
+ # manylinux image we use.
83
88
env ['CIBW_TEST_COMMAND' ] = """
84
89
(
85
90
DIR=$(python -c 'import mypy, os; dn = os.path.dirname; print(dn(dn(mypy.__path__[0])))')
86
- && TEST_DIRS=$(python -c 'import mypy.test; import mypyc.test; print(mypy.test.__path__[0], mypyc.test.__path__[0])')
87
91
&& cp '{project}/mypy/pytest.ini' '{project}/mypy/conftest.py' $DIR
88
- && MYPY_TEST_PREFIX='{project}/mypy' pytest $TEST_DIRS
92
+
93
+ && MYPY_TEST_DIR=$(python -c 'import mypy.test; print(mypy.test.__path__[0])')
94
+ && MYPY_TEST_PREFIX='{project}/mypy' pytest $MYPY_TEST_DIR -k 'not (reports.test or testreports)'
95
+
96
+ && MYPYC_TEST_DIR=$(python -c 'import mypyc.test; print(mypyc.test.__path__[0])')
97
+ && pytest $MYPYC_TEST_DIR -k 'not test_external'
89
98
)
90
99
""" .replace ('\n ' , ' ' )
91
100
0 commit comments