diff --git a/libs/opsqueue_python/opsqueue_python.nix b/libs/opsqueue_python/opsqueue_python.nix index 079c3da..1a35f65 100644 --- a/libs/opsqueue_python/opsqueue_python.nix +++ b/libs/opsqueue_python/opsqueue_python.nix @@ -44,7 +44,7 @@ let }; # Full set of files to build the Python wheel on top - pythonFileFilter = path: _type: builtins.match "^.*\.(py|md)$" path != null; + pythonFileFilter = path: _type: builtins.match "^.*(py.typed|\.(py|md))$" path != null; wheelFileFilter = path: type: (pythonFileFilter path type) || (rustCrateFileFilter path type); wheelSrc = lib.cleanSourceWith { src = ../../.; diff --git a/libs/opsqueue_python/pyproject.toml b/libs/opsqueue_python/pyproject.toml index 90c5481..4130b02 100644 --- a/libs/opsqueue_python/pyproject.toml +++ b/libs/opsqueue_python/pyproject.toml @@ -35,6 +35,7 @@ Issues="https://github.com/channable/opsqueue/issues" features = ["pyo3/extension-module"] python-source = "python" module-name = "opsqueue.opsqueue_internal" +include = ["**/py.typed"] # We specify test-dependencies here (and have them loaded through `.setup_local_venv.sh`) # because otherwise `pytest` won't be able to see the locally build python package! diff --git a/libs/opsqueue_python/python/opsqueue/py.typed b/libs/opsqueue_python/python/opsqueue/py.typed new file mode 100644 index 0000000..e69de29