add typing information

The west package contains type annotations, but mypy doesn't know
about them because of a missing metadata file. This prevents us from
type-checking calls into the west APIs, which we should be able to do.

Add the necessary metadata to make this work.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2023-02-13 23:53:54 -08:00 committed by Marti Bolivar
parent 37a4b7d8ed
commit d9f00e242b
3 changed files with 2 additions and 0 deletions

View File

@ -1,2 +1,3 @@
include src/west/west-commands-schema.yml include src/west/west-commands-schema.yml
include src/west/manifest-schema.yml include src/west/manifest-schema.yml
include src/west/py.typed

View File

@ -49,4 +49,5 @@ setuptools.setup(
], ],
python_requires='>=3.8', python_requires='>=3.8',
entry_points={'console_scripts': ('west = west.app.main:main',)}, entry_points={'console_scripts': ('west = west.app.main:main',)},
zip_safe=False
) )

0
src/west/py.typed Normal file
View File