Skip to content

Commit 8f45075

Browse files
authored
Update package-data to include pyi files (onnx#5697)
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]>
1 parent abb4457 commit 8f45075

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

MANIFEST.in

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
recursive-include onnx *.h *.c *.cc *.proto
21
recursive-include third_party *
32
include LICENSE
4-
recursive-include onnx/backend/test/data *
5-
recursive-include onnx/examples *
63
recursive-include cmake *
74
recursive-include tools *
85
include VERSION_NUMBER

pyproject.toml

+6-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ include = ["onnx*"]
3838

3939
[tool.setuptools.package-data]
4040
onnx = [
41-
"py.typed",
42-
"*.pyi",
41+
"**/*.c",
42+
"**/*.cc",
43+
"**/*.h",
44+
"**/*.proto",
45+
"**/*.pyi",
4346
"backend/test/data/**/*",
47+
"py.typed",
4448
]
4549

4650
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)