Skip to content

Commit

Permalink
avoid non-resource data and tests in the dist pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Oct 1, 2024
1 parent d0d6ef0 commit f0139d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# we need this to work around setuptools-scm#516
prune calamari_ocr/test
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ dependencies = {file = ["requirements.txt"]}
include-package-data = true

[tool.setuptools.package-data]
"*" = ["*.json"] # yml xml conf ?
"*" = ["*.json"]

[tool.setuptools.packages.find]
exclude = ["calamari_ocr/test"]
include = ["calamari_ocr"]
exclude = ["calamari_ocr/test*"]
namespaces = false

[tool.setuptools_scm]
write_to = "calamari_ocr/version.py"
Expand Down

0 comments on commit f0139d6

Please sign in to comment.