Skip to content

Commit dd5d899

Browse files
committed
mypyc: not yet ready for Python 3.12
1 parent e6831cc commit dd5d899

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/ci-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- py-ver-major: 3
3333
py-ver-minor: 6
3434
step: lint
35+
- py-ver-major: 3
36+
py-ver-minor: 12
37+
step: memleak
3538

3639
env:
3740
py-semver: ${{ format('{0}.{1}', matrix.py-ver-major, matrix.py-ver-minor) }}

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ mypy_3.6: $(filter-out setup.py,$(PYSOURCES))
182182
MYPYPATH=$$MYPYPATH:mypy-stubs mypy --python-version 3.6 $^
183183

184184
mypyc: $(PYSOURCES)
185-
MYPYPATH=mypy-stubs SCHEMA_SALAD_USE_MYPYC=1 pytest "${PYTEST_EXTRA}"
185+
MYPYPATH=mypy-stubs SCHEMA_SALAD_USE_MYPYC=1 pip install --verbose -e . \
186+
&& pytest "${PYTEST_EXTRA}"
186187

187188
mypyi:
188189
MYPYPATH=mypy-stubs SCHEMA_SALAD_USE_MYPYC=1 pip install .${EXTRAS}

tox.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist =
44
py3{6,8,9,10,11,12}-unit,
55
py3{8,9,10,11,12}-bandit,
66
py3{8,9,10,11,12}-mypy,
7-
py3{8,9,10,11,12}-memleak,
7+
py3{8,9,10,11}-memleak,
88
py311-lintreadme,
99
py311-pydocstyle
1010

@@ -29,7 +29,7 @@ description =
2929
py3{6,8,9,10,11,12}-lint: Lint the Python code
3030
py3{8,9,10,11,12}-bandit: Search for common security issues
3131
py3{8,9,10,11,12}-mypy: Check for type safety
32-
py3{8,9,10,11,12}-memleak: Simple test for memory leaks with mypyc
32+
py3{8,9,10,11}-memleak: Simple test for memory leaks with mypyc
3333
py311-pydocstyle: docstring style checker
3434
py311-lintreadme: Lint the README.rst->.md conversion
3535

@@ -44,8 +44,8 @@ deps =
4444
py3{8,9,10,11,12}-bandit: bandit < 1.8
4545
py3{8,9,10,11,12}-{mypy,memleak}: -rmypy-requirements.txt
4646
py38-mypy: importlib_metadata # for mypy_3.6
47-
py3{8,9,10,11,12}-memleak: cwl-utils
48-
py3{8,9,10,11,12}-memleak: objgraph
47+
py3{8,9,10,11}-memleak: cwl-utils
48+
py3{8,9,10,11}-memleak: objgraph
4949
# don't forget to update dev-requirements.txt as well
5050

5151
setenv =
@@ -58,9 +58,9 @@ commands =
5858
py3{6,8,9,10,11,12}-lint: make flake8
5959
py3{6,8,9,10,11,12}-lint: make format-check
6060
py3{8,9,10,11,12}-mypy: make mypy
61-
py3{8,9,10,11,12}-mypy: make mypyc
62-
py3{8,9,10,11,12}-memleak: make mypyi
63-
py3{8,9,10,11,12}-memleak: python schema_salad/tests/memory-leak-check.py schema_salad/tests/test_real_cwl/ICGC-TCGA-PanCancer/preprocess_vcf.cwl
61+
py3{8,9,10,11}-mypy: make mypyc
62+
py3{8,9,10,11}-memleak: make mypyi
63+
py3{8,9,10,11}-memleak: python schema_salad/tests/memory-leak-check.py schema_salad/tests/test_real_cwl/ICGC-TCGA-PanCancer/preprocess_vcf.cwl
6464
py38-mypy: make mypy_3.6
6565

6666
allowlist_externals =

0 commit comments

Comments
 (0)