Skip to content

Commit b5b1307

Browse files
authored
chore: utils update (#3889)
1 parent a447b81 commit b5b1307

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.16.17-dev1
2+
3+
### Enhancements
4+
5+
### Features
6+
7+
### Fixes
8+
19
## 0.16.16
210

311
### Enhancements
@@ -8,8 +16,7 @@
816
### Fixes
917
- **Add auto-download for NLTK for Python Enviroment** When user import tokenize, It will automatic download nltk data from `tokenize.py` file. Added `AUTO_DOWNLOAD_NLTK` flag in `tokenize.py` to download `NLTK_DATA`.
1018
- **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.
11-
12-
* **Drop usage of ndjson dependency**
19+
- **Drop usage of ndjson dependency**
1320

1421
## 0.16.15
1522
### Enhancements

unstructured/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.16.16" # pragma: no cover
1+
__version__ = "0.16.17-dev1" # pragma: no cover

unstructured/utils.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ def scarf_analytics():
293293
+ str(gpu_present)
294294
+ "&dev=true",
295295
)
296+
requests.get(
297+
"https://packages2.unstructured.io/python-telemetry?version="
298+
+ __version__
299+
+ "&platform="
300+
+ platform.system()
301+
+ "&python"
302+
+ python_version
303+
+ "&arch="
304+
+ platform.machine()
305+
+ "&gpu="
306+
+ str(gpu_present)
307+
+ "&dev=true",
308+
)
296309
else:
297310
requests.get(
298311
"https://packages.unstructured.io/python-telemetry?version="
@@ -307,6 +320,19 @@ def scarf_analytics():
307320
+ str(gpu_present)
308321
+ "&dev=false",
309322
)
323+
requests.get(
324+
"https://packages2.unstructured.io/python-telemetry?version="
325+
+ __version__
326+
+ "&platform="
327+
+ platform.system()
328+
+ "&python"
329+
+ python_version
330+
+ "&arch="
331+
+ platform.machine()
332+
+ "&gpu="
333+
+ str(gpu_present)
334+
+ "&dev=false",
335+
)
310336
except Exception:
311337
pass
312338

0 commit comments

Comments
 (0)