From 79e1d28b4d76011be3af945b7e6d870c3cb311e8 Mon Sep 17 00:00:00 2001 From: cragwolfe Date: Fri, 24 Jan 2025 15:02:24 -0800 Subject: [PATCH 1/4] chore: utils update --- unstructured/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unstructured/utils.py b/unstructured/utils.py index 523fcd4a01..b021ca7c8c 100644 --- a/unstructured/utils.py +++ b/unstructured/utils.py @@ -281,7 +281,7 @@ def scarf_analytics(): if os.getenv("SCARF_NO_ANALYTICS") != "true" and os.getenv("DO_NOT_TRACK") != "true": if "dev" in __version__: requests.get( - "https://packages.unstructured.io/python-telemetry?version=" + "https://packages2.unstructured.io/python-telemetry?version=" + __version__ + "&platform=" + platform.system() @@ -295,7 +295,7 @@ def scarf_analytics(): ) else: requests.get( - "https://packages.unstructured.io/python-telemetry?version=" + "https://packages2.unstructured.io/python-telemetry?version=" + __version__ + "&platform=" + platform.system() From 2806ba4d12776665b68362824951bb3abc08c72d Mon Sep 17 00:00:00 2001 From: cragwolfe Date: Fri, 24 Jan 2025 15:03:32 -0800 Subject: [PATCH 2/4] version --- CHANGELOG.md | 4 ++-- unstructured/__version__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 669b8d338c..294a68a5e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.16.16-dev2 +## 0.16.16-dev3 ### Enhancements @@ -8,7 +8,7 @@ ### Fixes - **Correctly patch pdfminer to avoid PDF repair**. The patch applied to pdfminer's parser caused it to occasionally split tokens in content streams, throwing `PDFSyntaxError`. Repairing these PDFs sometimes failed (since they were not actually invalid) resulting in unnecessary OCR fallback. -* **Drop usage of ndjson dependency** +- **Drop usage of ndjson dependency** ## 0.16.15 diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 42c42af907..d909336813 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.16.16-dev2" # pragma: no cover +__version__ = "0.16.16-dev3" # pragma: no cover From ee7c06debb5d2257db0b9548e1c6b81e13199fb3 Mon Sep 17 00:00:00 2001 From: cragwolfe Date: Fri, 24 Jan 2025 15:04:20 -0800 Subject: [PATCH 3/4] rm line --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 294a68a5e1..19219bfaa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,6 @@ ### Fixes - **Correctly patch pdfminer to avoid PDF repair**. The patch applied to pdfminer's parser caused it to occasionally split tokens in content streams, throwing `PDFSyntaxError`. Repairing these PDFs sometimes failed (since they were not actually invalid) resulting in unnecessary OCR fallback. - - **Drop usage of ndjson dependency** ## 0.16.15 From 4a6118f9be535c11a553812fe2155693b59578d8 Mon Sep 17 00:00:00 2001 From: cragwolfe Date: Mon, 27 Jan 2025 14:57:45 -0800 Subject: [PATCH 4/4] version --- CHANGELOG.md | 8 ++++++++ unstructured/__version__.py | 2 +- unstructured/utils.py | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a428329b5..3cd5088289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 0.16.17-dev1 + +### Enhancements + +### Features + +### Fixes + ## 0.16.16 ### Enhancements diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 319704334e..48ac8bc24b 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.16.16" # pragma: no cover +__version__ = "0.16.17-dev1" # pragma: no cover diff --git a/unstructured/utils.py b/unstructured/utils.py index b021ca7c8c..6b71e0ecc5 100644 --- a/unstructured/utils.py +++ b/unstructured/utils.py @@ -280,6 +280,19 @@ def scarf_analytics(): try: if os.getenv("SCARF_NO_ANALYTICS") != "true" and os.getenv("DO_NOT_TRACK") != "true": if "dev" in __version__: + requests.get( + "https://packages.unstructured.io/python-telemetry?version=" + + __version__ + + "&platform=" + + platform.system() + + "&python" + + python_version + + "&arch=" + + platform.machine() + + "&gpu=" + + str(gpu_present) + + "&dev=true", + ) requests.get( "https://packages2.unstructured.io/python-telemetry?version=" + __version__ @@ -294,6 +307,19 @@ def scarf_analytics(): + "&dev=true", ) else: + requests.get( + "https://packages.unstructured.io/python-telemetry?version=" + + __version__ + + "&platform=" + + platform.system() + + "&python" + + python_version + + "&arch=" + + platform.machine() + + "&gpu=" + + str(gpu_present) + + "&dev=false", + ) requests.get( "https://packages2.unstructured.io/python-telemetry?version=" + __version__