File tree 5 files changed +18
-4
lines changed 5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ jobs:
120
120
if : ${{ matrix.test_mypyc }}
121
121
run : |
122
122
pip install -r test-requirements.txt
123
- CC=clang MYPYC_OPT_LEVEL=0 python3 setup.py --use-mypyc build_ext --inplace
123
+ CC=clang MYPYC_OPT_LEVEL=0 MYPY_USE_MYPYC=1 pip install -e .
124
124
- name : Setup tox environment
125
125
run : tox -e ${{ matrix.toxenv }} --notest
126
126
- name : Test
Original file line number Diff line number Diff line change
1
+ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml
1
2
-r mypy-requirements.txt
2
3
types-setuptools
3
- types-typed-ast>=1.5.0 ,<1.6.0
4
+ types-typed-ast>=1.5.8 ,<1.6.0
Original file line number Diff line number Diff line change
1
+ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml
1
2
typing_extensions>=3.10
2
3
mypy_extensions>=0.4.3
3
4
typed_ast>=1.4.0,<2; python_version<'3.8'
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
requires = [
3
+ # NOTE: this needs to be kept in sync with mypy-requirements.txt
4
+ # and build-requirements.txt, because those are both needed for
5
+ # self-typechecking :/
3
6
" setuptools >= 40.6.2" ,
4
7
" wheel >= 0.30.0" ,
8
+ # the following is from mypy-requirements.txt
9
+ " typing_extensions>=3.10" ,
10
+ " mypy_extensions>=0.4.3" ,
11
+ " typed_ast>=1.4.0,<2; python_version<'3.8'" ,
12
+ " tomli>=1.1.0; python_version<'3.11'" ,
13
+ # the following is from build-requirements.txt
14
+ " types-psutil" ,
15
+ " types-setuptools" ,
16
+ " types-typed-ast>=1.5.8,<1.6.0" ,
5
17
]
6
18
build-backend = " setuptools.build_meta"
7
19
Original file line number Diff line number Diff line change @@ -79,8 +79,8 @@ def run(self):
79
79
80
80
USE_MYPYC = False
81
81
# To compile with mypyc, a mypyc checkout must be present on the PYTHONPATH
82
- if len (sys .argv ) > 1 and sys . argv [ 1 ] == "--use-mypyc" :
83
- sys .argv .pop ( 1 )
82
+ if len (sys .argv ) > 1 and "--use-mypyc" in sys . argv :
83
+ sys .argv .remove ( "--use-mypyc" )
84
84
USE_MYPYC = True
85
85
if os .getenv ("MYPY_USE_MYPYC" , None ) == "1" :
86
86
USE_MYPYC = True
You can’t perform that action at this time.
0 commit comments