Skip to content

Commit

Permalink
relax smart-open, use uv for docker (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitner authored Jun 3, 2024
1 parent 0c88741 commit a9b71b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docker/pypgstac/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN \
postgresql-client \
python3 python-is-python3 python3-pip python3-venv \
build-essential clang clang-11 gcc git gnupg libssl-dev llvm-11 lsb-release make pkg-config \
&& python3 -m pip install --upgrade pip toml-to-requirements wheel setuptools \
&& python3 -m pip install --upgrade pip uv wheel setuptools \
&& apt-get remove -y apt-transport-https \
&& apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*
Expand All @@ -21,10 +21,10 @@ FROM pyrustbase as pypgstac
COPY ./src/pypgstac/pyproject.toml /tmp/pyproject.toml
WORKDIR /tmp
RUN \
toml-to-req --optional-lists test,build,dev,psycopg,migrations \
&& pip install -r /tmp/requirements.txt
uv pip compile --all-extras /tmp/pyproject.toml >/tmp/requirements.txt \
&& uv pip install --system -r /tmp/requirements.txt
COPY docker/pypgstac/bin /opt/docker/pypgstac/bin
COPY src/pypgstac /opt/src/pypgstac
COPY src/pgstac/migrations /opt/src/pypgstac/pypgstac/migrations
WORKDIR /opt/src/pypgstac
RUN pip install -e . && rm -rf /usr/local/cargo/registry
RUN uv pip install --system -e . && rm -rf /usr/local/cargo/registry
4 changes: 2 additions & 2 deletions src/pypgstac/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pypgstac"
version = "0.9.0"
version = "0.8.6"
description = "Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -20,7 +20,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"smart-open==6.3.*",
"smart-open>=4.2",
"orjson>=3.5.2",
"python-dateutil==2.8.*",
"fire==0.4.*",
Expand Down

0 comments on commit a9b71b5

Please sign in to comment.