Skip to content

Commit

Permalink
build(deps): Remove pillow pin (#1274)
Browse files Browse the repository at this point in the history
Removed pin for `PIL` as `detectron2` repo has been updated, and so has
`unstructured-inference`.
  • Loading branch information
qued authored Sep 1, 2023
1 parent 30cdc19 commit fc9d251
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 23 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## 0.10.12-dev1
## 0.10.12-dev2

### Enhancements

* Removed PIL pin as issue has been resolved upstream

### Features

### Fixes
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,13 @@ install-pandoc:
## pip-compile: compiles all base/dev/test requirements
.PHONY: pip-compile
pip-compile:
@for file in $(shell ls requirements/*.in); \
do echo "running: pip-compile --upgrade $${file}" && \
@for file in $(shell ls requirements/*.in); do \
if [[ "$${file}" =~ "constraints" ]]; then \
continue; \
fi; \
echo "running: pip-compile --upgrade $${file}"; \
pip-compile --upgrade $${file}; \
done
done
cp requirements/build.txt docs/requirements.txt


Expand Down
3 changes: 0 additions & 3 deletions requirements/constraints.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ pyparsing<3.1.0
numpy<1.25.0
scipy<1.11.0
IPython<8.13
# NOTE(robinson) - See this issue here
# https://github.com/facebookresearch/detectron2/issues/5010
Pillow<10.0.0
# NOTE(alan) Pinned to avoid error that occurs with 2.4.3:
# AttributeError: 'ResourcePath' object has no attribute 'collection'
Office365-REST-Python-Client<2.4.3
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ pyzmq==25.1.1
# jupyter-console
# jupyter-server
# qtconsole
qtconsole==5.4.3
qtconsole==5.4.4
# via jupyter
qtpy==2.4.0
# via qtconsole
Expand Down
3 changes: 0 additions & 3 deletions requirements/extra-pdf-image.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@

pdf2image
pdfminer.six
# NOTE(robinson) - See this issue here
# https://github.com/facebookresearch/detectron2/issues/5010
Pillow<10
unstructured-inference
4 changes: 1 addition & 3 deletions requirements/extra-pdf-image.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ pdfminer-six==20221105
# pdfplumber
pdfplumber==0.10.2
# via layoutparser
pillow==9.5.0
pillow==10.0.0
# via
# -c requirements/constraints.in
# -r requirements/extra-pdf-image.in
# layoutparser
# matplotlib
# pdf2image
Expand Down
4 changes: 3 additions & 1 deletion requirements/extra-pptx.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
-c "constraints.in"

python-pptx
# NOTE(alan): Pinned due to python-pptx 0.6.22 pinning Pillow to <= 0.9.5, and it seems more
# important to use the new version of Pillow
python-pptx<=0.6.21
8 changes: 3 additions & 5 deletions requirements/extra-pptx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
#
lxml==4.9.3
# via python-pptx
pillow==9.5.0
# via
# -c requirements/constraints.in
# python-pptx
python-pptx==0.6.22
pillow==10.0.0
# via python-pptx
python-pptx==0.6.21
# via -r requirements/extra-pptx.in
xlsxwriter==3.1.2
# via python-pptx
1 change: 0 additions & 1 deletion requirements/ingest-gcs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ protobuf==4.23.4
# via
# -c requirements/constraints.in
# google-api-core
# googleapis-common-protos
pyasn1==0.5.0
# via
# pyasn1-modules
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ requests==2.31.0
# via
# -c requirements/base.txt
# label-studio-sdk
ruff==0.0.286
ruff==0.0.287
# via -r requirements/test.in
six==1.16.0
# via python-dateutil
Expand Down
2 changes: 1 addition & 1 deletion unstructured/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.10.12-dev1" # pragma: no cover
__version__ = "0.10.12-dev2" # pragma: no cover

0 comments on commit fc9d251

Please sign in to comment.