Skip to content

Commit 8194d79

Browse files
committed
Split the dependencies that mypy has to run into mypy-requirements
This lets us install just those packages before building with mypyc instead of all of test-requirements
1 parent b45c990 commit 8194d79

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ install:
8686
# means that tox picks up the mypy from the source directories instead of
8787
# the version it installed into a venv. This is also *why* we need to do this,
8888
# since if we arranged for tox to build with mypyc, pytest wouldn't use it.
89-
- if [[ $TEST_MYPYC == 1 ]]; then pip install -r test-requirements.txt; CC=clang MYPYC_OPT_LEVEL=0 python3 setup.py --use-mypyc build_ext --inplace; fi
89+
- if [[ $TEST_MYPYC == 1 ]]; then pip install -r mypy-requirements.txt; CC=clang MYPYC_OPT_LEVEL=0 python3 setup.py --use-mypyc build_ext --inplace; fi
9090

9191
script:
9292
- tox -- $EXTRA_ARGS

mypy-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
typing_extensions>=3.7.4
2+
mypy_extensions>=0.4.0,<0.5.0
3+
typed_ast>=1.4.0,<1.5.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def run(self):
185185
]},
186186
classifiers=classifiers,
187187
cmdclass=cmdclass,
188-
# When changing this, also update test-requirements.txt.
188+
# When changing this, also update mypy-requirements.txt.
189189
install_requires=['typed_ast >= 1.4.0, < 1.5.0',
190190
'typing_extensions>=3.7.4',
191191
'mypy_extensions >= 0.4.0, < 0.5.0',

test-requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1+
-r mypy-requirements.txt
12
attrs>=18.0
23
flake8>=3.7
34
flake8-bugbear; python_version >= '3.5'
45
flake8-pyi; python_version >= '3.6'
56
lxml>=4.4.0
6-
typing_extensions>=3.7.4
7-
mypy_extensions>=0.4.0,<0.5.0
87
psutil>=4.0
98
pytest>=5.1.1
109
pytest-xdist>=1.22
1110
pytest-cov>=2.4.0
12-
typed_ast>=1.4.0,<1.5.0
1311
typing>=3.5.2; python_version < '3.5'
1412
py>=1.5.2
1513
virtualenv

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy