From 9f66ae6203ac98dc6b98c13b7d061ac45689f063 Mon Sep 17 00:00:00 2001 From: Patrick Taibel Date: Wed, 4 Sep 2024 11:21:57 +0200 Subject: [PATCH] PROTON-2848: [Python] Add py.typed marker to package for PEP 561 --- python/CMakeLists.txt | 1 + python/proton/py.typed | 0 python/pyproject.toml | 3 +++ 3 files changed, 4 insertions(+) create mode 100644 python/proton/py.typed diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 131f3af57f..d9a3e4568c 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -62,6 +62,7 @@ set(py_dist_files docs/index.rst docs/overview.rst docs/tutorial.rst + proton/py.typed ) # Sphinx documentation diff --git a/python/proton/py.typed b/python/proton/py.typed new file mode 100644 index 0000000000..e69de29bb2 diff --git a/python/pyproject.toml b/python/pyproject.toml index 88e2e3ea2d..92b02326f6 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -57,3 +57,6 @@ py-modules = ["cproton"] [tool.setuptools.dynamic] version = {file = "VERSION.txt"} + +[tool.setuptools.package-data] +"proton" = ["py.typed"]