Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade starlette and FastAPI #186

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2024.1]

### Changed

- Upgrade starlette and FastAPI to 0.36.3 and 0.109.2 respectively in [#186](https://github.com/microsoft/planetary-computer-apis/pull/186)

## [2023.2]

### Changed
Expand Down
2 changes: 2 additions & 0 deletions pccommon/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# Runtime requirements.
inst_reqs = [
"fastapi==0.90.1",
# Version override by pip install in Dockerfiles to address CVE.
# Cannot do it here due to unnecessary pip version constraints in FastAPI.
"starlette>=0.22.0,<0.23.0",
"opencensus-ext-azure==1.0.8",
"opencensus-ext-logging==0.1.0",
Expand Down
3 changes: 3 additions & 0 deletions pcstac/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ COPY pcstac /opt/src/pcstac
COPY pccommon /opt/src/pccommon
RUN pip install -r ./pcstac/requirements.txt -e ./pccommon -e ./pcstac[server]

# Override starlette version
RUN /bin/sh -c "python -m pip install --upgrade --force-reinstall starlette==0.27.0"

ENV APP_HOST=0.0.0.0
ENV APP_PORT=81

Expand Down
1 change: 1 addition & 0 deletions pcstac/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ COPY requirements-dev.txt requirements-dev.txt
RUN pip install -r requirements-dev.txt

RUN pip install -e ./pccommon[dev] -e ./pcstac
RUN /bin/sh -c "python -m pip install --upgrade --force-reinstall starlette==0.27.0"
2 changes: 1 addition & 1 deletion pcstac/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ termcolor==2.3.0
# via fire
types-cachetools==4.2.9
# via pccommon (pccommon/setup.py)
typing-extensions==4.6.3
typing-extensions==4.9.0
# via
# asgiref
# azure-core
Expand Down
3 changes: 3 additions & 0 deletions pctiler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ COPY pctiler /opt/src/pctiler
# Install the local modules in the new environment
RUN /bin/sh -c "python -m pip install --no-cache-dir -e ./pccommon -e ./pctiler[server]"

# Override starlette version
RUN /bin/sh -c "python -m pip install --upgrade --force-reinstall starlette==0.27.0"

# GDAL config
ENV GDAL_CACHEMAX 200
ENV GDAL_INGESTED_BYTES_AT_OPEN 32768
Expand Down
1 change: 1 addition & 0 deletions pctiler/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ COPY requirements-dev.txt requirements-dev.txt

RUN python3 -m pip install -r requirements-dev.txt
RUN python3 -m pip install -e ./pccommon -e ./pctiler[dev]
RUN /bin/sh -c "python -m pip install --upgrade --force-reinstall starlette==0.27.0"
Loading