File tree Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Expand file tree Collapse file tree 5 files changed +10
-25
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ python:
14
14
# - "pypy3"
15
15
16
16
install :
17
+ - pip install -U pip setuptools wheel
17
18
- pip install -r test-requirements.txt
18
19
- python2 -m pip install --user typing
19
- - python setup.py install
20
+ - pip install .
20
21
21
22
script :
22
23
- python runtests.py -j16 -x lint
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ Or you can jump straight to the documentation:
129
129
Troubleshooting
130
130
---------------
131
131
132
- Depending on your configuration, you may have to run ` pip3 ` like
132
+ Depending on your configuration, you may have to run ` pip ` like
133
133
this:
134
134
135
135
$ python3 -m pip install -U mypy
@@ -140,8 +140,8 @@ can install it manually:
140
140
141
141
$ python3 -m pip install -U typed-ast
142
142
143
- If the ` mypy ` command isn't found after installation: After either
144
- ` pip3 install ` or ` setup.py install` , the ` mypy ` script and
143
+ If the ` mypy ` command isn't found after installation: After
144
+ ` python3 -m pip install` , the ` mypy ` script and
145
145
dependencies, including the ` typing ` module, will be installed to
146
146
system-dependent locations. Sometimes the script directory will not
147
147
be in ` PATH ` , and you have to add the target directory to ` PATH `
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ install:
14
14
- " %PYTHON%\\ python.exe -m pip install -r test-requirements.txt"
15
15
- " git submodule update --init typeshed"
16
16
- " cd typeshed && git config core.symlinks true && git reset --hard && cd .."
17
- - " %PYTHON%\\ python.exe setup.py -q install"
17
+ - " %PYTHON%\\ python.exe -m pip install . "
18
18
19
19
build : off
20
20
Original file line number Diff line number Diff line change @@ -49,12 +49,3 @@ parallel = true
49
49
50
50
[coverage:report]
51
51
show_missing = true
52
-
53
- [metadata]
54
- # This seems to be used only by bdist_wheel.
55
- # You need "pip3 install wheel".
56
- # Then run "python3 setup.py bdist_wheel" to build a wheel file
57
- # (and then upload that to PyPI).
58
- requires-dist =
59
- typed-ast >= 1.0.4, < 1.1.0
60
- typing >= 3.5.3; python_version < "3.5"
Original file line number Diff line number Diff line change @@ -94,16 +94,6 @@ def run(self):
94
94
95
95
package_dir = {'mypy' : 'mypy' }
96
96
97
-
98
- # These requirements are used when installing by other means than bdist_wheel.
99
- # E.g. "pip3 install ." or
100
- # "pip3 install git+git://github.com/python/mypy.git"
101
- # (as suggested by README.md).
102
- install_requires = []
103
- install_requires .append ('typed-ast >= 1.0.4, < 1.1.0' )
104
- if sys .version_info < (3 , 5 ):
105
- install_requires .append ('typing >= 3.5.3' )
106
-
107
97
setup (name = 'mypy' ,
108
98
version = version ,
109
99
description = description ,
@@ -121,5 +111,8 @@ def run(self):
121
111
data_files = data_files ,
122
112
classifiers = classifiers ,
123
113
cmdclass = {'build_py' : CustomPythonBuild },
124
- install_requires = install_requires ,
114
+ install_requires = ['typed-ast >= 1.0.4, < 1.1.0' ],
115
+ extras_require = {
116
+ ':python_version < "3.5"' : 'typing >= 3.5.3' ,
117
+ },
125
118
)
You can’t perform that action at this time.
0 commit comments