support mypy using py.typed

This commit is contained in:
Jimmy Lai 2019-09-08 21:12:41 -07:00 committed by jimmylai
parent 0182902167
commit 23b7b5ade2
3 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
include README.rst LICENSE CODE_OF_CONDUCT.md CONTRIBUTING.md requirements.txt docs/source/*.rst
include README.rst LICENSE CODE_OF_CONDUCT.md CONTRIBUTING.md requirements.txt docs/source/*.rst libcst/py.typed

0
libcst/py.typed Normal file
View file

View file

@ -22,6 +22,7 @@ setuptools.setup(
url="https://github.com/Instagram/LibCST",
license="MIT",
packages=setuptools.find_packages(),
package_data={"libcst": ["py.typed"]},
test_suite="libcst",
python_requires=">=3.6",
install_requires=[
@ -51,4 +52,5 @@ setuptools.setup(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
zip_safe=False, # for mypy compatibility https://mypy.readthedocs.io/en/latest/installed_packages.html
)