Skip to content

Commit

Permalink
Exclude test data
Browse files Browse the repository at this point in the history
Fixes #5925 in a minimally invasive way.

onnx/backend/test/data contains large test files which should not be
included in the PyPI package. This PR simply excludes them when
building the package. This reduces the size of the `onnx`
package (uncompressed) from 51MB to 12MB.

Signed-off-by: Christian Bourjau <christian.bourjau@quantco.com>
  • Loading branch information
cbourjau committed Feb 27, 2024
1 parent ff60ddc commit ea15494
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Expand Up @@ -47,6 +47,11 @@ onnx = [
"py.typed",
]

[tool.setuptools.exclude-package-data]
onnx = [
"backend/test/data/**/*",
]

[tool.pytest.ini_options]

addopts = "--nbval --nbval-current-env --tb=short --color=yes"
Expand Down

0 comments on commit ea15494

Please sign in to comment.