From 2a9fb057c15ac7b4a4a0ba9fed152a221328d01b Mon Sep 17 00:00:00 2001 From: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com> Date: Tue, 8 Aug 2023 22:49:30 -0700 Subject: [PATCH] fix: unstructured-ingest entrypoint (#1068) --- CHANGELOG.md | 3 ++- unstructured/__version__.py | 2 +- unstructured/ingest/main.py | 7 ++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a1c3aa23..38c63d0ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.9.1-dev11 +## 0.9.1 ### Enhancements @@ -27,6 +27,7 @@ * Simplifies `min_partition` logic; makes partitions falling below the `min_partition` less likely. * Fix bug where ingest test check for number of files fails in smoke test +* Fix unstructured-ingest entrypoint failure ## 0.9.0 diff --git a/unstructured/__version__.py b/unstructured/__version__.py index c7988155e..b47e3bdc7 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.9.1-dev11" # pragma: no cover +__version__ = "0.9.1" # pragma: no cover diff --git a/unstructured/ingest/main.py b/unstructured/ingest/main.py index e560b6395..ead616f40 100755 --- a/unstructured/ingest/main.py +++ b/unstructured/ingest/main.py @@ -1,6 +1,11 @@ #!/usr/bin/env python3 from unstructured.ingest.cli.cli import get_cmd -if __name__ == "__main__": + +def main(): ingest_cmd = get_cmd() ingest_cmd() + + +if __name__ == "__main__": + main()