chore: utils update (#3909)

This commit is contained in:
cragwolfe 2025-02-06 21:58:23 -08:00 committed by GitHub
parent b10379c14c
commit 7ff0ff890d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 31 deletions

View File

@ -1,3 +1,11 @@
## 0.16.21-dev1
### Enhancements
### Features
### Fixes
## 0.16.20 ## 0.16.20
### Enhancements ### Enhancements

View File

@ -257,5 +257,4 @@ Encountered a bug? Please create a new [GitHub issue](https://github.com/Unstruc
## :chart_with_upwards_trend: Analytics ## :chart_with_upwards_trend: Analytics
Weve partnered with Scarf (https://scarf.sh) to collect anonymized user statistics to understand which features our community is using and how to prioritize product decision-making in the future. To learn more about how we collect and use this data, please read our [Privacy Policy](https://unstructured.io/privacy-policy). This library includes a very lightweight analytics "ping" when the library is loaded, however you can opt out of this data collection by setting the environment variable `DO_NOT_TRACK=true` before executing any `unstructured` code. To learn more about how we collect and use this data, please read our [Privacy Policy](https://unstructured.io/privacy-policy).
To opt out of this data collection, you can set the environment variable `SCARF_NO_ANALYTICS=true` before running any `unstructured` commands.

View File

@ -1 +1 @@
__version__ = "0.16.20" # pragma: no cover __version__ = "0.16.21-dev1" # pragma: no cover

View File

@ -294,20 +294,6 @@ def scarf_analytics():
+ "&dev=true", + "&dev=true",
timeout=10, timeout=10,
) )
requests.get(
"https://packages2.unstructured.io/python-telemetry?version="
+ __version__
+ "&platform="
+ platform.system()
+ "&python"
+ python_version
+ "&arch="
+ platform.machine()
+ "&gpu="
+ str(gpu_present)
+ "&dev=true",
timeout=10,
)
else: else:
requests.get( requests.get(
"https://packages.unstructured.io/python-telemetry?version=" "https://packages.unstructured.io/python-telemetry?version="
@ -323,20 +309,6 @@ def scarf_analytics():
+ "&dev=false", + "&dev=false",
timeout=10, timeout=10,
) )
requests.get(
"https://packages2.unstructured.io/python-telemetry?version="
+ __version__
+ "&platform="
+ platform.system()
+ "&python"
+ python_version
+ "&arch="
+ platform.machine()
+ "&gpu="
+ str(gpu_present)
+ "&dev=false",
timeout=10,
)
except Exception: except Exception:
pass pass