Skip to content

Commit

Permalink
Upgrade to Python 3.12.6 (#2535)
Browse files Browse the repository at this point in the history
* upgrade to Python 3.12

* update deps

* fix syntax in tests
  • Loading branch information
ewdurbin authored Sep 13, 2024
1 parent d38d0f5 commit 1037cbb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
sudo dpkg -i pandoc-2.17.1.1-1-amd64.deb
- uses: actions/setup-python@v5
with:
python-version: 3.9.16
python-version: 3.12.6
- name: Cache Python dependencies
uses: actions/cache@v4
env:
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.16
3.12.6
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-bookworm
FROM python:3.12-bookworm
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.cabotage
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-bullseye
FROM python:3.12-bookworm
COPY --from=ewdurbin/nginx-static:1.25.x /usr/bin/nginx /usr/bin/nginx
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
Expand Down
8 changes: 4 additions & 4 deletions base-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ django-apptemplates==1.5
django-admin-interface==0.24.2
django-translation-aliases==0.1.0
Django==4.2.16
docutils==0.12
Markdown==3.3.4
docutils==0.21.2
Markdown==3.7
cmarkgfm==0.6.0
Pillow==9.4.0
psycopg2-binary==2.8.6
Pillow==10.4.0
psycopg2-binary==2.9.9
python3-openid==3.2.0
python-decouple==3.4
# lxml used by BeautifulSoup.
Expand Down
6 changes: 3 additions & 3 deletions downloads/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ def test_is_version_at_least(self):

release_38 = Release.objects.create(name='Python 3.8.0')
self.assertFalse(release_38.is_version_at_least_3_9)
self.assert_(release_38.is_version_at_least_3_5)
self.assertTrue(release_38.is_version_at_least_3_5)

release_310 = Release.objects.create(name='Python 3.10.0')
self.assert_(release_310.is_version_at_least_3_9)
self.assert_(release_310.is_version_at_least_3_5)
self.assertTrue(release_310.is_version_at_least_3_9)
self.assertTrue(release_310.is_version_at_least_3_5)

0 comments on commit 1037cbb

Please sign in to comment.