Skip to content

Commit a8f14ba

Browse files
authored
fix: update depdencies (#4247)
- resolve lock issue with windows and python 3.13 (lack of library support): a few dependencies are only required for either non-windows system or windows but with python version < 3.13 - downgrade `wrapt` so it is compatible with `opentelemetry-instrumentation-httpx` library
1 parent c6c7462 commit a8f14ba

4 files changed

Lines changed: 1272 additions & 1221 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.20.8
2+
3+
### Fixes
4+
- downgrade `wrapt` so it is compatible with `opentelemetry-instrumentation-httpx`
5+
- resolve lock issue with windows and python 3.13
6+
17
## 0.20.7
28

39
### Fixes

pyproject.toml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040
"tqdm>=4.67.3, <5.0.0",
4141
"typing-extensions>=4.15.0, <5.0.0",
4242
"unstructured-client>=0.25.9, <1.0.0",
43-
"wrapt>=2.1.1, <3.0.0",
43+
"wrapt>=1.0.0, <2.0.0",
4444
]
4545

4646
[project.optional-dependencies]
@@ -55,7 +55,8 @@ docx = [
5555
"python-docx>=1.2.0, <2.0.0",
5656
]
5757
epub = [
58-
"pypandoc-binary>=1.16.2, <2.0.0",
58+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system != 'Windows'",
59+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
5960
]
6061
image = [
6162
"google-cloud-vision>=3.12.1, <4.0.0",
@@ -64,18 +65,21 @@ image = [
6465
"pi-heif>=1.2.0, <2.0.0",
6566
"pikepdf>=10.3.0, <11.0.0",
6667
"pypdf>=6.6.2, <7.0.0",
67-
"unstructured-inference>=1.2.0, <2.0.0",
68+
"unstructured-inference>=1.2.0, <2.0.0; platform_system != 'Windows'",
69+
"unstructured-inference>=1.2.0, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
6870
"unstructured-pytesseract>=0.3.15, <1.0.0",
6971
]
7072
md = [
7173
"markdown>=3.10.1, <4.0.0",
7274
]
7375
odt = [
74-
"pypandoc-binary>=1.16.2, <2.0.0",
76+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system != 'Windows'",
77+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
7578
"python-docx>=1.2.0, <2.0.0",
7679
]
7780
org = [
78-
"pypandoc-binary>=1.16.2, <2.0.0",
81+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system != 'Windows'",
82+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
7983
]
8084
pdf = [
8185
"unstructured[image]",
@@ -87,10 +91,12 @@ pptx = [
8791
"python-pptx>=1.0.2, <2.0.0",
8892
]
8993
rtf = [
90-
"pypandoc-binary>=1.16.2, <2.0.0",
94+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system != 'Windows'",
95+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
9196
]
9297
rst = [
93-
"pypandoc-binary>=1.16.2, <2.0.0",
98+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system != 'Windows'",
99+
"pypandoc-binary>=1.16.2, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
94100
]
95101
tsv = [
96102
"unstructured[csv]",
@@ -111,18 +117,21 @@ chunking-tokens = [
111117
]
112118
huggingface = [
113119
"sentencepiece>=0.2.0, <1.0.0",
114-
"torch>=2.10.0, <3.0.0",
120+
"torch>=2.10.0, <3.0.0; platform_system != 'Windows'",
121+
"torch>=2.10.0, <3.0.0; platform_system == 'Windows' and python_version < '3.13'",
115122
"transformers>=4.55.4, <5.0.0",
116123
]
117124
local-inference = [
118125
"unstructured[all-docs]",
119126
]
120127
paddleocr = [
121-
"paddlepaddle>=3.3.0, <4.0.0; platform_machine != 'aarch64'",
128+
"paddlepaddle>=3.3.0, <4.0.0; platform_machine != 'aarch64' and platform_system != 'Windows'",
129+
"paddlepaddle>=3.3.0, <4.0.0; platform_system == 'Windows' and python_version < '3.13'",
122130
"unstructured-paddleocr==2.10.0",
123131
]
124132
ingest = [
125-
"unstructured-ingest[airtable,astradb,azure,azure-ai-search,bedrock,biomed,box,chroma,confluence,couchbase,databricks-volumes,delta-table,discord,dropbox,elasticsearch,gcs,github,gitlab,google-drive,hubspot,huggingface,jira,kafka,kdbai,milvus,mongodb,notion,octoai,onedrive,openai,opensearch,outlook,pinecone,postgres,qdrant,reddit,remote,s3,salesforce,sftp,sharepoint,singlestore,slack,vectara,vertexai,voyageai,weaviate,wikipedia]>=1.4.0, <2.0.0",
133+
"unstructured-ingest[airtable,astradb,azure,azure-ai-search,bedrock,biomed,box,chroma,confluence,couchbase,databricks-volumes,delta-table,discord,dropbox,elasticsearch,gcs,github,gitlab,google-drive,hubspot,huggingface,jira,kafka,kdbai,milvus,mongodb,notion,octoai,onedrive,openai,opensearch,outlook,pinecone,postgres,qdrant,reddit,remote,s3,salesforce,sftp,sharepoint,singlestore,slack,vectara,vertexai,voyageai,weaviate,wikipedia]>=1.4.0, <2.0.0; platform_system != 'Windows'",
134+
"unstructured-ingest[airtable,astradb,azure,azure-ai-search,bedrock,biomed,box,chroma,confluence,couchbase,databricks-volumes,delta-table,discord,dropbox,elasticsearch,gcs,github,gitlab,google-drive,hubspot,huggingface,jira,kafka,kdbai,milvus,mongodb,notion,octoai,onedrive,openai,opensearch,outlook,pinecone,postgres,qdrant,reddit,remote,s3,salesforce,sftp,sharepoint,singlestore,slack,vectara,vertexai,voyageai,weaviate,wikipedia]>=1.4.0, <2.0.0; platform_system == 'Windows' and python_version < '3.13'",
126135
]
127136

128137
[project.urls]
@@ -175,7 +184,7 @@ required-environments = [
175184
"sys_platform == 'linux' and platform_machine == 'x86_64'",
176185
"sys_platform == 'linux' and platform_machine == 'aarch64'",
177186
"sys_platform == 'darwin' and platform_machine == 'arm64'",
178-
"sys_platform == 'win32' and platform_machine == 'AMD64'",
187+
"sys_platform == 'win32'",
179188
]
180189
constraint-dependencies = [
181190
# deltalake 1.3.0 is missing Linux ARM64 wheels, causing Docker ARM64 builds to fail

unstructured/__version__.py

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

0 commit comments

Comments
 (0)