Skip to content

Commit

Permalink
Add typing metadata and include py.typed in sdist
Browse files Browse the repository at this point in the history
This commit marks the package as typed in the classifiers and ensures `py.typed` is included in the source distribution. This improves compatibility with type checkers and enforces better type safety for users.
  • Loading branch information
Hector Oliveros committed Jan 30, 2025
1 parent b1cfae3 commit 489c543
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Empty file added py.typed
Empty file.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[dependency-groups]
dev = [
Expand Down Expand Up @@ -72,7 +73,10 @@ Homepage = "http://freeopcua.github.io/"
Repository = "https://github.com/FreeOpcUa/opcua-asyncio"

[tool.hatch.build.targets.sdist]
include = ["/asyncua"]
include = [
"/asyncua",
"/asyncua/py.typed"
]

[tool.pytest.ini_options]
log_cli = false
Expand Down

0 comments on commit 489c543

Please sign in to comment.