Let consumers know that we have type annotations

As well as the type stubs, this includes both the py.typed flag
file (for tools) and the classifier (for people).
This commit is contained in:
Peter Law
2020-07-21 22:24:32 +01:00
parent d42c0f1b3b
commit c19d7c4e6d
2 changed files with 2 additions and 1 deletions

0
parso/py.typed Normal file
View File

View File

@@ -25,7 +25,7 @@ setup(name='parso',
keywords='python parser parsing',
long_description=readme,
packages=find_packages(exclude=['test']),
package_data={'parso': ['python/grammar*.txt']},
package_data={'parso': ['python/grammar*.txt', 'py.typed', '*.pyi', '**/*.pyi']},
platforms=['any'],
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
classifiers=[
@@ -44,6 +44,7 @@ setup(name='parso',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Editors :: Integrated Development Environments (IDE)',
'Topic :: Utilities',
'Typing :: Typed',
],
extras_require={
'testing': [