From 4644fd0ec4726f36f0aa98c93fe83bb5f5584258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sun, 22 Dec 2024 11:32:17 -0500 Subject: [PATCH] ENH: Add type annotation information Add type annotation information: add the `py.typed` file and distribute the type information with the package by adding the corresponding entry in the `pyproject.toml` file so that third-party tools can use the DIPY type annotation information. Documentation: https://typing.readthedocs.io/en/latest/spec/distributing.html#packaging-typed-libraries --- pyproject.toml | 3 +++ src/py.typed | 0 2 files changed, 3 insertions(+) create mode 100644 src/py.typed diff --git a/pyproject.toml b/pyproject.toml index 70ace46..08d0968 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,6 +122,9 @@ version-file = "src/nifreeze/_version.py" # Developer tool configurations # +[tool.setuptools.package-data] +"nifreeze" = ["py.typed"] + [tool.ruff] line-length = 99 target-version = "py310" diff --git a/src/py.typed b/src/py.typed new file mode 100644 index 0000000..e69de29