diff --git a/deltachat-rpc-client/pyproject.toml b/deltachat-rpc-client/pyproject.toml index acdbeb404..4b3bd3520 100644 --- a/deltachat-rpc-client/pyproject.toml +++ b/deltachat-rpc-client/pyproject.toml @@ -12,5 +12,18 @@ dependencies = [ dynamic = [ "version" ] + +[tool.setuptools] +# We declare the package not-zip-safe so that our type hints are also available +# when checking client code that uses our (installed) package. +# Ref: +# https://mypy.readthedocs.io/en/stable/installed_packages.html?highlight=zip#using-installed-packages-with-mypy-pep-561 +zip-safe = false + +[tool.setuptools.package-data] +deltachat_rpc_client = [ + "py.typed" +] + [project.entry-points.pytest11] "deltachat_rpc_client.pytestplugin" = "deltachat_rpc_client.pytestplugin" diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/py.typed b/deltachat-rpc-client/src/deltachat_rpc_client/py.typed new file mode 100644 index 000000000..6b0a9e898 --- /dev/null +++ b/deltachat-rpc-client/src/deltachat_rpc_client/py.typed @@ -0,0 +1 @@ +# PEP 561 marker file. See https://peps.python.org/pep-0561/ \ No newline at end of file