Skip to content

Commit a944faa

Browse files
committed
rename our local type stubs dir
As per python/mypy#13155 (comment)
1 parent 1c2cbfc commit a944faa

File tree

453 files changed

+10
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

453 files changed

+10
-12
lines changed

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ venv3/
2828
# pycharm
2929
.idea/
3030

31-
# typshed repo
32-
typeshed/2and3/schema_salad
33-
typeshed/2and3/ruamel/yaml
34-
31+
# local stubs
32+
mypy-stubs/ruamel/yaml
3533

3634
#mypy
3735
.mypy_cache/

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include MANIFEST.in
33
include LICENSE.txt
44
include *requirements.txt mypy.ini tox.ini
55
include gittaggers.py Makefile cwltool.py
6-
recursive-include typeshed *.pyi
6+
recursive-include mypy-stubs *.pyi
77
include tests/*
88
include tests/tmp1/tmp2/tmp3/.gitkeep
99
include tests/tmp4/alpha/*

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ diff_pydocstyle_report: pydocstyle_report.txt
110110

111111
## codespell : check for common mispellings
112112
codespell:
113-
codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v typeshed)
113+
codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v mypy-stubs)
114114

115115
## format : check/fix all code indentation and formatting (runs black)
116116
format:
@@ -177,14 +177,14 @@ mypy3: mypy
177177
mypy: $(filter-out setup.py gittagger.py,$(PYSOURCES))
178178
if ! test -f $(shell python -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))')/py.typed ; \
179179
then \
180-
rm -Rf typeshed/ruamel/yaml ; \
180+
rm -Rf mypy-stubs/ruamel/yaml ; \
181181
ln -s $(shell python -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))') \
182-
typeshed/ruamel/ ; \
182+
mypy-stubs/ruamel/ ; \
183183
fi # if minimally required ruamel.yaml version is 0.15.99 or greater, than the above can be removed
184-
MYPYPATH=$$MYPYPATH:typeshed mypy $^
184+
MYPYPATH=$$MYPYPATH:mypy-stubs mypy $^
185185

186186
mypyc: $(PYSOURCES)
187-
MYPYPATH=typeshed CWLTOOL_USE_MYPYC=1 pip install --verbose -e . \
187+
MYPYPATH=mypy-stubs CWLTOOL_USE_MYPYC=1 pip install --verbose -e . \
188188
&& pytest -rs -vv ${PYTEST_EXTRA}
189189

190190
shellcheck: FORCE

cwltool.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ RUN pip install toml -rmypy-requirements.txt "$(grep ruamel requirements.txt)" \
99
"$(grep schema.salad requirements.txt)"
1010
# schema-salad is needed to be installed (this time as pure Python) for
1111
# cwltool + mypyc
12-
RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad --wheel-dir=/wheels .[deps]
12+
RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=mypy-stubs pip wheel --no-binary schema-salad --wheel-dir=/wheels .[deps]
1313
RUN rm /wheels/schema_salad*
1414
RUN pip install black
15-
RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad \
15+
RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=mypy-stubs pip wheel --no-binary schema-salad \
1616
$(grep schema.salad requirements.txt) black --wheel-dir=/wheels
1717
RUN pip install --force-reinstall --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl
1818
# --force-reinstall to install our new mypyc compiled schema-salad package
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)