diff --git a/pyproject.toml b/pyproject.toml index 3ffb423a..018d6c1a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ [tool.pyright] venvPath = "." venv = ".venv" +extraPaths = ["sdk/batch", "sdk/flow", "sdk/rt", "sdk/tts", "sdk/voice"] [tool.black] line-length = 120 diff --git a/sdk/batch/pyproject.toml b/sdk/batch/pyproject.toml index 89119b6f..8bfdcd16 100644 --- a/sdk/batch/pyproject.toml +++ b/sdk/batch/pyproject.toml @@ -48,6 +48,9 @@ issues = "https://github.com/speechmatics/speechmatics-python-sdk/issues" [tool.setuptools.dynamic] version = { attr = "speechmatics.batch.__version__" } +[tool.setuptools.package-data] +"speechmatics.batch" = ["py.typed"] + [tool.setuptools.packages.find] where = ["."] diff --git a/sdk/batch/speechmatics/__init__.py b/sdk/batch/speechmatics/__init__.py index e69de29b..8db66d3d 100644 --- a/sdk/batch/speechmatics/__init__.py +++ b/sdk/batch/speechmatics/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/sdk/batch/speechmatics/batch/py.typed b/sdk/batch/speechmatics/batch/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/sdk/rt/pyproject.toml b/sdk/rt/pyproject.toml index b2d84b12..62d2ca9d 100644 --- a/sdk/rt/pyproject.toml +++ b/sdk/rt/pyproject.toml @@ -54,6 +54,9 @@ issues = "https://github.com/speechmatics/speechmatics-python-sdk/issues" [tool.setuptools.dynamic] version = { attr = "speechmatics.rt.__version__" } +[tool.setuptools.package-data] +"speechmatics.rt" = ["py.typed"] + [tool.setuptools.packages.find] where = ["."] diff --git a/sdk/rt/speechmatics/rt/py.typed b/sdk/rt/speechmatics/rt/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/sdk/tts/pyproject.toml b/sdk/tts/pyproject.toml index 065ccecf..ef816d62 100644 --- a/sdk/tts/pyproject.toml +++ b/sdk/tts/pyproject.toml @@ -48,5 +48,8 @@ issues = "https://github.com/speechmatics/speechmatics-python-sdk/issues" [tool.setuptools.dynamic] version = { attr = "speechmatics.tts.__version__" } +[tool.setuptools.package-data] +"speechmatics.tts" = ["py.typed"] + [tool.setuptools.packages.find] where = ["."] diff --git a/sdk/tts/speechmatics/__init__.py b/sdk/tts/speechmatics/__init__.py new file mode 100644 index 00000000..8db66d3d --- /dev/null +++ b/sdk/tts/speechmatics/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/sdk/tts/speechmatics/tts/py.typed b/sdk/tts/speechmatics/tts/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/sdk/voice/speechmatics/voice/py.typed b/sdk/voice/speechmatics/voice/py.typed new file mode 100644 index 00000000..e69de29b