Skip to content

Commit 95d797f

Browse files
authored
build(deps): pin opencv-python for linux compatibility (#18)
1 parent a21325f commit 95d797f

File tree

8 files changed

+46
-23
lines changed

8 files changed

+46
-23
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.3
2+
3+
* Pins the version of `opencv-python` for linux compatibility
4+
15
## 0.2.2
26

37
* Add capability to process image files

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ install-dev:
4242
## pip-compile: compiles all base/dev/test requirements
4343
.PHONY: pip-compile
4444
pip-compile:
45-
pip-compile requirements/base.in
45+
pip-compile -o requirements/base.txt
4646
# NOTE(robinson) - We want the dependencies for detectron2 in the requirements.txt, but not
4747
# the detectron2 repo itself. If detectron2 is in the requirements.txt file, an order of
4848
# operations issue related to the torch library causes the install to fail

requirements/base.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

requirements/base.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.8
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
44
#
5-
# pip-compile requirements/base.in
5+
# pip-compile --output-file=requirements/base.txt
66
#
77
antlr4-python3-runtime==4.9.3
88
# via omegaconf
@@ -27,7 +27,7 @@ cycler==0.11.0
2727
effdet==0.3.0
2828
# via layoutparser
2929
fastapi==0.85.1
30-
# via -r requirements/base.in
30+
# via unstructured-inference (setup.py)
3131
filelock==3.8.0
3232
# via huggingface-hub
3333
fonttools==4.37.4
@@ -36,8 +36,8 @@ h11==0.14.0
3636
# via uvicorn
3737
huggingface-hub==0.10.1
3838
# via
39-
# -r requirements/base.in
4039
# timm
40+
# unstructured-inference (setup.py)
4141
idna==3.4
4242
# via
4343
# anyio
@@ -47,7 +47,7 @@ iopath==0.1.10
4747
kiwisolver==1.4.4
4848
# via matplotlib
4949
layoutparser[layoutmodels,tesseract]==0.3.4
50-
# via -r requirements/base.in
50+
# via unstructured-inference (setup.py)
5151
matplotlib==3.6.1
5252
# via pycocotools
5353
numpy==1.23.4
@@ -63,7 +63,9 @@ numpy==1.23.4
6363
omegaconf==2.2.3
6464
# via effdet
6565
opencv-python==4.6.0.66
66-
# via layoutparser
66+
# via
67+
# layoutparser
68+
# unstructured-inference (setup.py)
6769
packaging==21.3
6870
# via
6971
# huggingface-hub
@@ -104,7 +106,7 @@ python-dateutil==2.8.2
104106
# matplotlib
105107
# pandas
106108
python-multipart==0.0.5
107-
# via -r requirements/base.in
109+
# via unstructured-inference (setup.py)
108110
pytz==2022.5
109111
# via pandas
110112
pyyaml==6.0
@@ -155,6 +157,6 @@ typing-extensions==4.4.0
155157
urllib3==1.26.12
156158
# via requests
157159
uvicorn==0.19.0
158-
# via -r requirements/base.in
160+
# via unstructured-inference (setup.py)
159161
wand==0.6.10
160162
# via pdfplumber

requirements/dev.txt

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.8
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
44
#
55
# pip-compile requirements/dev.in
66
#
77
anyio==3.6.1
88
# via jupyter-server
9+
appnope==0.1.3
10+
# via
11+
# ipykernel
12+
# ipython
913
argon2-cffi==21.3.0
1014
# via
1115
# jupyter-server
@@ -43,6 +47,10 @@ fastjsonschema==2.16.2
4347
# via nbformat
4448
idna==3.4
4549
# via anyio
50+
importlib-metadata==6.0.0
51+
# via nbconvert
52+
importlib-resources==5.10.2
53+
# via jsonschema
4654
ipykernel==6.16.0
4755
# via
4856
# ipywidgets
@@ -53,7 +61,7 @@ ipykernel==6.16.0
5361
# qtconsole
5462
ipython==8.8.0
5563
# via
56-
# -r dev.in
64+
# -r requirements/dev.in
5765
# ipykernel
5866
# ipywidgets
5967
# jupyter-console
@@ -75,7 +83,7 @@ jinja2==3.1.2
7583
jsonschema==4.16.0
7684
# via nbformat
7785
jupyter==1.0.0
78-
# via -r dev.in
86+
# via -r requirements/dev.in
7987
jupyter-client==7.4.2
8088
# via
8189
# ipykernel
@@ -160,7 +168,9 @@ pexpect==4.8.0
160168
pickleshare==0.7.5
161169
# via ipython
162170
pip-tools==6.12.1
163-
# via -r dev.in
171+
# via -r requirements/dev.in
172+
pkgutil-resolve-name==1.3.10
173+
# via jsonschema
164174
prometheus-client==0.15.0
165175
# via
166176
# jupyter-server
@@ -227,6 +237,10 @@ terminado==0.16.0
227237
# notebook
228238
tinycss2==1.2.1
229239
# via nbconvert
240+
tomli==2.0.1
241+
# via
242+
# build
243+
# pep517
230244
tornado==6.2
231245
# via
232246
# ipykernel
@@ -262,6 +276,10 @@ wheel==0.37.1
262276
# via pip-tools
263277
widgetsnbextension==4.0.3
264278
# via ipywidgets
279+
zipp==3.11.0
280+
# via
281+
# importlib-metadata
282+
# importlib-resources
265283

266284
# The following packages are considered to be unsafe in a requirements file:
267285
# pip

requirements/test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.8
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.8
3+
# by the following command:
44
#
55
# pip-compile requirements/test.in
66
#

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
"python-multipart",
5454
"uvicorn",
5555
"huggingface-hub",
56+
# NOTE(robinson) - later versions of opencv-python cause installation issues
57+
# on RHEL7. We can remove this pin once the following issue from 12/2022 is resolved
58+
# ref: https://github.com/opencv/opencv-python/issues/772
59+
"opencv-python==4.6.0.66",
5660
],
5761
extras_require={},
5862
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.2" # pragma: no cover
1+
__version__ = "0.2.3" # pragma: no cover

0 commit comments

Comments
 (0)