Skip to content

Commit

Permalink
build: Add py.typed marker to "export" type definitions
Browse files Browse the repository at this point in the history
Without this file type out definitions are not visible to projects
using rocm_docs_core. This is not really a problem since our users
are sphinx cofiguration files `conf.py` where type-checking doesn't
provide much benefit, but its still nice to export our type annotations
given that we have them.
  • Loading branch information
Gergely Meszaros authored and Maetveis committed Oct 13, 2023
1 parent e3e4f57 commit fc175e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rocm_docs_theme = "rocm_docs.theme"
where=["src"]

[tool.setuptools.package-data]
rocm_docs = ["data/**/*", "rocm_docs_theme/**/*"]
rocm_docs = ["data/**/*", "rocm_docs_theme/**/*", "py.typed"]

[tool.black]
target-version = ["py38"]
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ tqdm==4.66.1
typing-extensions==4.8.0
# via
# black
# filelock
# mypy
# pydata-sphinx-theme
urllib3==2.0.6
Expand Down
1 change: 1 addition & 0 deletions src/rocm_docs/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Marker file for PEP 561. This package uses inline types.

0 comments on commit fc175e0

Please sign in to comment.