build: pin python-docx (#3110)

Since we incorporate a newer feature from `python-docx`
[here](https://github.com/Unstructured-IO/unstructured/blob/main/unstructured/partition/docx.py#L521),
we should make the version of `python-docx` that first supports that
method an explicit requirement.

I didn't pip recompile since our generated dependencies already have
`python-docx==1.1.2`, but I can do that if someone thinks it's
necessary.
This commit is contained in:
qued 2024-05-30 10:08:10 -05:00 committed by GitHub
parent 9acf26ec2e
commit 293901e144
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
## 0.14.4-dev1
## 0.14.4-dev2
### Enhancements
@ -6,6 +6,7 @@
### Fixes
* **Clarified dependence on particular version of `python-docx`** Pinned `python-docx` version to ensure a particular method `unstructured` uses is included.
* **Ingest preserves original file extension** Ingest V2 introduced a change that dropped the original extension for upgraded connectors. This reverts that change.
## 0.14.3

View File

@ -38,10 +38,6 @@ opencv-python==4.8.0.76
opencv-contrib-python==4.8.0.76
platformdirs==3.10.0
# Note(scanny): partition_docx() uses table features added in python-docx v1.1.2. Added here since
# multiple formats have a python-docx dependency (docx, odt)
python-docx>=1.1.2
# TODO: Constraint due to langchain, remove when that gets updated:
packaging<24.0

View File

@ -1,4 +1,5 @@
-c ./deps/constraints.txt
-c base.txt
python-docx
# Note(scanny): partition_docx() uses table features added in python-docx v1.1.2.
python-docx>=1.1.2

View File

@ -1,5 +1,6 @@
-c ./deps/constraints.txt
-c base.txt
python-docx
# Note(scanny): partition_docx() uses table features added in python-docx v1.1.2.
python-docx>=1.1.2
pypandoc

View File

@ -1 +1 @@
__version__ = "0.14.4-dev1" # pragma: no cover
__version__ = "0.14.4-dev2" # pragma: no cover