|
18 | 18 | # This requires setuptools when building; setuptools is not needed |
19 | 19 | # when installing from a wheel file (though it is still needed for |
20 | 20 | # alternative forms of installing, as suggested by README.md). |
21 | | -from setuptools import Extension, find_packages, setup |
| 21 | +from setuptools import Extension, setup |
22 | 22 | from setuptools.command.build_py import build_py |
23 | 23 |
|
24 | 24 | from mypy.version import __version__ as version |
25 | 25 |
|
26 | 26 | if TYPE_CHECKING: |
27 | 27 | from typing_extensions import TypeGuard |
28 | 28 |
|
29 | | -description = "Optional static typing for Python" |
30 | 29 | long_description = """ |
31 | 30 | Mypy -- Optional Static Typing for Python |
32 | 31 | ========================================= |
@@ -78,13 +77,6 @@ def run(self): |
78 | 77 |
|
79 | 78 | cmdclass = {"build_py": CustomPythonBuild} |
80 | 79 |
|
81 | | -package_data = ["py.typed"] |
82 | | - |
83 | | -package_data += find_package_data(os.path.join("mypy", "typeshed"), ["*.py", "*.pyi"]) |
84 | | -package_data += [os.path.join("mypy", "typeshed", "stdlib", "VERSIONS")] |
85 | | - |
86 | | -package_data += find_package_data(os.path.join("mypy", "xml"), ["*.xsd", "*.xslt", "*.css"]) |
87 | | - |
88 | 80 | USE_MYPYC = False |
89 | 81 | # To compile with mypyc, a mypyc checkout must be present on the PYTHONPATH |
90 | 82 | if len(sys.argv) > 1 and "--use-mypyc" in sys.argv: |
@@ -179,67 +171,6 @@ def run(self): |
179 | 171 | ext_modules = [] |
180 | 172 |
|
181 | 173 |
|
182 | | -classifiers = [ |
183 | | - "Development Status :: 5 - Production/Stable", |
184 | | - "Environment :: Console", |
185 | | - "Intended Audience :: Developers", |
186 | | - "License :: OSI Approved :: MIT License", |
187 | | - "Programming Language :: Python :: 3", |
188 | | - "Programming Language :: Python :: 3.8", |
189 | | - "Programming Language :: Python :: 3.9", |
190 | | - "Programming Language :: Python :: 3.10", |
191 | | - "Programming Language :: Python :: 3.11", |
192 | | - "Programming Language :: Python :: 3.12", |
193 | | - "Programming Language :: Python :: 3.13", |
194 | | - "Topic :: Software Development", |
195 | | - "Typing :: Typed", |
196 | | -] |
197 | | - |
198 | 174 | setup( |
199 | | - name="mypy", |
200 | | - version=version, |
201 | | - description=description, |
202 | | - long_description=long_description, |
203 | | - author="Jukka Lehtosalo", |
204 | | - |
205 | | - url="https://www.mypy-lang.org/", |
206 | | - license="MIT", |
207 | | - py_modules=[], |
208 | | - ext_modules=ext_modules, |
209 | | - packages=find_packages(), |
210 | | - package_data={"mypy": package_data}, |
211 | | - entry_points={ |
212 | | - "console_scripts": [ |
213 | | - "mypy=mypy.__main__:console_entry", |
214 | | - "stubgen=mypy.stubgen:main", |
215 | | - "stubtest=mypy.stubtest:main", |
216 | | - "dmypy=mypy.dmypy.client:console_entry", |
217 | | - "mypyc=mypyc.__main__:main", |
218 | | - ] |
219 | | - }, |
220 | | - classifiers=classifiers, |
221 | | - cmdclass=cmdclass, |
222 | | - # When changing this, also update mypy-requirements.txt and pyproject.toml |
223 | | - install_requires=[ |
224 | | - "typing_extensions>=4.6.0", |
225 | | - "mypy_extensions >= 1.0.0", |
226 | | - "tomli>=1.1.0; python_version<'3.11'", |
227 | | - ], |
228 | | - # Same here. |
229 | | - extras_require={ |
230 | | - "dmypy": "psutil >= 4.0", |
231 | | - "mypyc": "setuptools >= 50", |
232 | | - "python2": "", |
233 | | - "reports": "lxml", |
234 | | - "install-types": "pip", |
235 | | - "faster-cache": "orjson", |
236 | | - }, |
237 | | - python_requires=">=3.8", |
238 | | - include_package_data=True, |
239 | | - project_urls={ |
240 | | - "Documentation": "https://mypy.readthedocs.io/en/stable/index.html", |
241 | | - "Repository": "https://github.com/python/mypy", |
242 | | - "Changelog": "https://github.com/python/mypy/blob/master/CHANGELOG.md", |
243 | | - "Issues": "https://github.com/python/mypy/issues", |
244 | | - }, |
| 175 | + version=version, long_description=long_description, ext_modules=ext_modules, cmdclass=cmdclass |
245 | 176 | ) |
0 commit comments