Skip to content

Commit

Permalink
Update package-data to include pyi files (onnx#5697)
Browse files Browse the repository at this point in the history
Update package-data to include pyi files. This change also cleans up the
MANIFEST.in file to remove duplicated entries and removes the
`examples/` folder because it is not used in the distribution.

Fixes onnx#5696

Signed-off-by: Justin Chu <[email protected]>
  • Loading branch information
justinchuby authored and isdanni committed Nov 2, 2023
1 parent 1660dec commit 93bb539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
recursive-include onnx *.h *.c *.cc *.proto
recursive-include third_party *
include LICENSE
recursive-include onnx/backend/test/data *
recursive-include onnx/examples *
recursive-include cmake *
recursive-include tools *
include VERSION_NUMBER
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@ include = ["onnx*"]

[tool.setuptools.package-data]
onnx = [
"py.typed",
"*.pyi",
"**/*.c",
"**/*.cc",
"**/*.h",
"**/*.proto",
"**/*.pyi",
"backend/test/data/**/*",
"py.typed",
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit 93bb539

Please sign in to comment.