Skip to content

Commit 12591c5

Browse files
authored
fix: stactools-item-generator issues
* fix: install git to allow using stactools packages from repositories * fix: pin numpy to <2.3.0 in uvx command
1 parent e72de9b commit 12591c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/stactools-item-generator/runtime/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ WORKDIR ${LAMBDA_TASK_ROOT}
1313
COPY stactools-item-generator/runtime/pyproject.toml pyproject.toml
1414
COPY stactools-item-generator/runtime/src/stactools_item_generator/ ${LAMBDA_TASK_ROOT}/stactools_item_generator/
1515

16-
RUN uv export --no-dev --no-editable -o requirements.txt && \
16+
RUN yum install -y git && yum clean all && rm -rf /var/cache/yum && \
17+
uv export --no-dev --no-editable -o requirements.txt && \
1718
uv pip install --target ${LAMBDA_TASK_ROOT} -r requirements.txt && \
1819
uv tool install --with "numpy<2.3.0",requests stactools;
1920

lib/stactools-item-generator/runtime/src/stactools_item_generator/item.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def create_stac_item(request: ItemRequest) -> Item:
4949
command = [
5050
"uvx",
5151
"--with",
52-
f"requests,{request.package_name}",
52+
f"requests,numpy<2.3.0,{request.package_name}",
5353
"--from",
5454
"stactools",
5555
"stac",

0 commit comments

Comments
 (0)