Skip to content

Commit a9b71b5

Browse files
authored
relax smart-open, use uv for docker (#277)
1 parent 0c88741 commit a9b71b5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker/pypgstac/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN \
1212
postgresql-client \
1313
python3 python-is-python3 python3-pip python3-venv \
1414
build-essential clang clang-11 gcc git gnupg libssl-dev llvm-11 lsb-release make pkg-config \
15-
&& python3 -m pip install --upgrade pip toml-to-requirements wheel setuptools \
15+
&& python3 -m pip install --upgrade pip uv wheel setuptools \
1616
&& apt-get remove -y apt-transport-https \
1717
&& apt-get clean && apt-get -y autoremove \
1818
&& rm -rf /var/lib/apt/lists/*
@@ -21,10 +21,10 @@ FROM pyrustbase as pypgstac
2121
COPY ./src/pypgstac/pyproject.toml /tmp/pyproject.toml
2222
WORKDIR /tmp
2323
RUN \
24-
toml-to-req --optional-lists test,build,dev,psycopg,migrations \
25-
&& pip install -r /tmp/requirements.txt
24+
uv pip compile --all-extras /tmp/pyproject.toml >/tmp/requirements.txt \
25+
&& uv pip install --system -r /tmp/requirements.txt
2626
COPY docker/pypgstac/bin /opt/docker/pypgstac/bin
2727
COPY src/pypgstac /opt/src/pypgstac
2828
COPY src/pgstac/migrations /opt/src/pypgstac/pypgstac/migrations
2929
WORKDIR /opt/src/pypgstac
30-
RUN pip install -e . && rm -rf /usr/local/cargo/registry
30+
RUN uv pip install --system -e . && rm -rf /usr/local/cargo/registry

src/pypgstac/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pypgstac"
3-
version = "0.9.0"
3+
version = "0.8.6"
44
description = "Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL"
55
readme = "README.md"
66
requires-python = ">=3.8"
@@ -20,7 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: 3.11",
2121
]
2222
dependencies = [
23-
"smart-open==6.3.*",
23+
"smart-open>=4.2",
2424
"orjson>=3.5.2",
2525
"python-dateutil==2.8.*",
2626
"fire==0.4.*",

0 commit comments

Comments
 (0)