Skip to content

Commit

Permalink
update python to 3.12.1
Browse files Browse the repository at this point in the history
closes #237
  • Loading branch information
JasonLovesDoggo committed Jan 4, 2024
1 parent 8c9884e commit 20811b1
Show file tree
Hide file tree
Showing 5 changed files with 174 additions and 123 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Dependencies
run: |
python -m pip install poetry
poetry config virtualenvs.in-project true
poetry install
poetry add psycopg2-binary
poetry install --without deploy
- name: Make files
run: |
make metropolis/local_rsa_privkey.pem
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.10.10-slim@sha256:582078f93e627c71de2279d0d8e58233bc2d626db03659ade3c01d68d325ed61
FROM python:3.12.1-slim@sha256:c127a8c4aca8a5d3ac3a333cbab4c082c7ddbd0891441cc4e30d88dc351f1ce5

LABEL org.opencontainers.image.authors="Ken Shibata <[email protected]>, Kyunghan (Paul) Lee <[email protected]>"
LABEL org.opencontainers.image.authors="Ken Shibata <[email protected]>, Kyunghan (Paul) Lee <[email protected]>, Jason Cameron <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/wlmac/metropolis"

RUN adduser --system --home /app --gecos "Metropolis" app && \
Expand All @@ -18,8 +18,7 @@ RUN python -m pip install --no-cache-dir poetry

COPY poetry.lock pyproject.toml /app/
RUN python -m poetry config virtualenvs.in-project true && \
python -m poetry install --no-root && \
/app/.venv/bin/python3 -m pip install --no-cache-dir psycopg2
python -m poetry install --no-root --without dev
USER root
RUN apt-get purge -y build-essential python3-dev libpq-dev libffi-dev libssl-dev && \
rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion docs/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If you do not want to use Nix:
(Note: only tested on Unix-like platforms)
```
python -m pip install poetry
poetry install
poetry install --without deploy
make # can remove for windows
poetry run python ./manage.py migrate
poetry run python ./manage.py runserver
Expand Down
Loading

0 comments on commit 20811b1

Please sign in to comment.