Skip to content

Commit

Permalink
thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Nov 27, 2024
1 parent 5ef5744 commit 2d20e2d
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 41 deletions.
3 changes: 1 addition & 2 deletions lambdas/thumbnail/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ RUN pip install --target /deps -r /requirements/thumbnail.txt
RUN curl --output /deps/unoconv \
https://raw.githubusercontent.com/unoconv/unoconv/be5301a757552f4ecac5d73187ce4d8e18341306/unoconv

COPY shared/ /src/shared/
COPY thumbnail/ /src/thumbnail/
RUN pip install --target /lambda --no-deps /src/shared/ /src/thumbnail/
RUN pip install --target /lambda --no-deps /src/thumbnail/

FROM base-image

Expand Down
3 changes: 2 additions & 1 deletion lambdas/thumbnail/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "t4_lambda_thumbnail"
version = "0.0.1"
requires-python = ">=3.7"
requires-python = ">=3.9"

dependencies = [
"aicsimageio>=3,<3.1",
Expand All @@ -11,4 +11,5 @@ dependencies = [
"Pillow>=9.0.1,<11",
"python-pptx>=0.6.21,<0.7",
"requests>=2.26.0,<3",
"t4_lambda_shared[lambda] @ https://github.com/quiltdata/quilt/archive/f45d8ab51f2d60e98efda7510322f94d822e4eb4.zip#subdirectory=lambdas/shared",
]
72 changes: 42 additions & 30 deletions lambdas/thumbnail/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,68 @@
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile --extra=lambda --output-file=requirements.txt ../shared/setup.py pyproject.toml
# pip-compile
#
aicsimageio==3.0.7
# via t4-lambda-thumbnail (pyproject.toml)
attrs==22.2.0
# via jsonschema
awslambdaric==2.0.4
# via t4-lambda-shared (../shared/setup.py)
certifi==2024.7.4
# via t4_lambda_thumbnail (pyproject.toml)
attrs==24.2.0
# via
# jsonschema
# referencing
awslambdaric==2.2.1
# via t4-lambda-shared
certifi==2024.8.30
# via requests
charset-normalizer==3.0.1
charset-normalizer==3.4.0
# via requests
idna==3.7
idna==3.10
# via requests
imageio==2.25.0
imageio==2.36.0
# via
# aicsimageio
# t4-lambda-thumbnail (pyproject.toml)
jsonschema==4.17.3
# via t4-lambda-shared (../shared/setup.py)
lxml==4.9.2
# t4_lambda_thumbnail (pyproject.toml)
jsonschema==4.23.0
# via t4-lambda-shared
jsonschema-specifications==2024.10.1
# via jsonschema
lxml==5.3.0
# via python-pptx
numpy==1.24.1
numpy==1.26.4
# via
# aicsimageio
# imageio
# scipy
# t4-lambda-thumbnail (pyproject.toml)
# t4_lambda_thumbnail (pyproject.toml)
# tifffile
pdf2image==1.16.2
# via t4-lambda-thumbnail (pyproject.toml)
pillow==10.3.0
pdf2image==1.17.0
# via t4_lambda_thumbnail (pyproject.toml)
pillow==10.4.0
# via
# imageio
# pdf2image
# python-pptx
# t4-lambda-thumbnail (pyproject.toml)
pyrsistent==0.19.3
# via jsonschema
python-pptx==0.6.21
# via t4-lambda-thumbnail (pyproject.toml)
requests==2.32.2
# via t4-lambda-thumbnail (pyproject.toml)
scipy==1.10.0
# t4_lambda_thumbnail (pyproject.toml)
python-pptx==0.6.23
# via t4_lambda_thumbnail (pyproject.toml)
referencing==0.35.1
# via
# jsonschema
# jsonschema-specifications
requests==2.32.3
# via t4_lambda_thumbnail (pyproject.toml)
rpds-py==0.21.0
# via
# jsonschema
# referencing
scipy==1.13.1
# via aicsimageio
simplejson==3.17.2
simplejson==3.19.3
# via awslambdaric
t4-lambda-shared[lambda] @ https://github.com/quiltdata/quilt/archive/f45d8ab51f2d60e98efda7510322f94d822e4eb4.zip#subdirectory=lambdas/shared
# via t4_lambda_thumbnail (pyproject.toml)
tifffile==0.15.1
# via aicsimageio
urllib3==1.26.19
urllib3==2.2.3
# via requests
xlsxwriter==3.0.7
xlsxwriter==3.2.0
# via python-pptx
3 changes: 3 additions & 0 deletions lambdas/thumbnail/test-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-c requirements.txt
pytest ~= 8.0
pytest-cov ~= 6.0
34 changes: 26 additions & 8 deletions lambdas/thumbnail/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
atomicwrites==1.3.0
more-itertools==6.0.0
pluggy==0.9.0
py==1.10.0
pytest==4.3.0
pytest-cov==2.6.1
pytest-raises==0.10
responses==0.12.0
#
# This file is autogenerated by pip-compile with Python 3.9
# by the following command:
#
# pip-compile test-requirements.in
#
coverage[toml]==7.6.8
# via pytest-cov
exceptiongroup==1.2.2
# via pytest
iniconfig==2.0.0
# via pytest
packaging==24.2
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.3
# via
# -r test-requirements.in
# pytest-cov
pytest-cov==6.0.0
# via -r test-requirements.in
tomli==2.1.0
# via
# coverage
# pytest

0 comments on commit 2d20e2d

Please sign in to comment.