Skip to content

Commit

Permalink
Have aibs-informatics-cdk-lib pkg indicate that it is typed
Browse files Browse the repository at this point in the history
Currently, due to a missing `py.typed` file, this package will
will raise mypy typing errors when used as a dependency in
some other package.

This commit fixes this issue by adding the missing file and
updating the `pyproject.toml` to include the `py.typed` file
as part of `package_data`.

For details see:
https://mypy.readthedocs.io/en/stable/installed_packages.html#creating-pep-561-compatible-packages
  • Loading branch information
njmei committed May 16, 2024
1 parent 7c137e7 commit 0954e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ dev = [
[tool.setuptools.dynamic]
version = {attr = "aibs_informatics_cdk_lib._version.__version__"}

[tool.setuptools.package-data]
"*" = ['py.typed']

[tool.setuptools.packages.find]
where = ["src"]

Expand Down
Empty file.

0 comments on commit 0954e77

Please sign in to comment.