From d9f00e242b8cb297b56e941982adf231281c6bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Mon, 13 Feb 2023 23:53:54 -0800 Subject: [PATCH] add typing information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- MANIFEST.in | 1 + setup.py | 1 + src/west/py.typed | 0 3 files changed, 2 insertions(+) create mode 100644 src/west/py.typed diff --git a/MANIFEST.in b/MANIFEST.in index 2818531..9fee648 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,2 +1,3 @@ include src/west/west-commands-schema.yml include src/west/manifest-schema.yml +include src/west/py.typed diff --git a/setup.py b/setup.py index fdc8ec4..1d68190 100644 --- a/setup.py +++ b/setup.py @@ -49,4 +49,5 @@ setuptools.setup( ], python_requires='>=3.8', entry_points={'console_scripts': ('west = west.app.main:main',)}, + zip_safe=False ) diff --git a/src/west/py.typed b/src/west/py.typed new file mode 100644 index 0000000..e69de29