Skip to content

Commit

Permalink
Make local testing use django 3.
Browse files Browse the repository at this point in the history
Local testing uses a different package install process then the CI. To
prevent us running postgres 12 default while local testing bu use 11
instead we must also use django 3.

To enable this we in the setup.py which is used for local testing
require a django 3 version instead of a django 3 or 4 version.
Since django 4 is only postgres 12+ compatible.
  • Loading branch information
Bob Booij-Liewes committed Jun 25, 2024
1 parent eb46c18 commit 8407181
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
version: '3'

services:
db:
image: postgres:12
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
image: postgres:11.5
binder:
build: .
command: tail -f /dev/null
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
install_requires=[
'Django >= 3.0, < 5.0',
'Django >= 3.0, < 4.0',
'Pillow >= 3.2.0',
'django-request-id >= 1.0.0',
'requests >= 2.13.0',
Expand Down

0 comments on commit 8407181

Please sign in to comment.