Skip to content

Commit

Permalink
Upgrade Python to 3.12 and dependent libraries (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisJordan authored Jun 4, 2024
1 parent b651011 commit ce41dd1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
12 changes: 7 additions & 5 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --yes \
apt-transport-https \
build-essential \
ca-certificates \
curl \
debian-keyring \
Expand Down Expand Up @@ -44,17 +45,17 @@ RUN mkdir -p /etc/apt/keyrings \
# Install Angular CLI Globally
RUN npm install -g @angular/cli

# Install Python 3.11
# Install Python 3.12
RUN add-apt-repository ppa:deadsnakes/ppa \
&& apt update \
&& apt install --yes \
python3.11 \
python3-pip \
python3.12 \
libpq-dev \
python3.11-dev \
python3.12-venv \
python3.12-dev \
&& rm -rf /var/lib/apt/lists* \
&& unlink /usr/bin/python3 \
&& ln -s /usr/bin/python3.11 /usr/bin/python3
&& ln -s /usr/bin/python3.12 /usr/bin/python3

# Use a non-root user per https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user
ARG USERNAME=vscode
Expand Down Expand Up @@ -104,6 +105,7 @@ RUN arch="$(arch)"; \
# Install Database Dependencies
COPY backend/requirements.txt /workspace/backend/requirements.txt
WORKDIR /workspace/backend
RUN python3 -m ensurepip
RUN python3 -m pip install -r requirements.txt


Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY ./frontend/*.json /workspace/frontend
RUN ng build --optimization --output-path ../static

# Back-end Build Steps
FROM python:3.11
FROM python:3.12
RUN python3 -m pip install --upgrade pip
COPY ./backend/requirements.txt /workspace/backend/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /workspace/backend/requirements.txt
Expand Down
23 changes: 12 additions & 11 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
fastapi[all] >=0.110.0, <0.111.0
fastapi[all] >=0.111.0, <0.112.0
honcho >=1.1.0, <1.2.0
psycopg2 >=2.9.5, <2.10.0
pyjwt >=2.6.0, <2.7.0
pytest >=7.2.1, <7.3.0
pytest-cov >=4.1.0, <4.2.0
python-dotenv >=1.0.0, <1.1.0
requests >=2.31.0, <2.32.0
sqlalchemy >=2.0.4, <2.1.0
alembic >=1.10.2, <1.11.0
pygithub >=1.58.0, <1.59.0
black >=23.10.1, <23.11.0
psycopg2 >=2.9.9, <2.10.0
pyjwt >=2.8.0, <2.9.0
pytest >=8.2.2, <8.3.0
pytest-cov >=5.0.0, <5.1.0
python-dotenv >=1.0.1, <1.1.0
requests >=2.32.0, <2.33.0
sqlalchemy >=2.0.30, <2.1.0
alembic >=1.13.1, <1.14.0
pygithub >=2.3.0, <2.4.0
black >=24.4.2, <24.5.0
setuptools >=70.0.0, <70.1.0

0 comments on commit ce41dd1

Please sign in to comment.