diff --git a/python-spec/pyproject.toml b/python-spec/pyproject.toml index 88c9f3c6..98f25e2b 100644 --- a/python-spec/pyproject.toml +++ b/python-spec/pyproject.toml @@ -13,8 +13,11 @@ requires-python = "~=3.7" [project.optional-dependencies] dev = ["black", "isort", "setuptools-scm"] -[tool.setuptools.dynamic] -version = { attr = "somacore._version.version" } +[tool.setuptools] +packages.find.where = ["src"] +package-data.somacore = ["py.typed"] +dynamic.version.attr = "somacore._version.version" + [tool.isort] profile = "black" diff --git a/python-spec/src/somacore/py.typed b/python-spec/src/somacore/py.typed new file mode 100644 index 00000000..288a150d --- /dev/null +++ b/python-spec/src/somacore/py.typed @@ -0,0 +1,2 @@ +# Marker file to indicate that this package contains Python typing information, +# and that mypy can use it to typecheck client code.