Skip to content

Commit 3085224

Browse files
BBooijLiewesBob Booij-Liewes
andcommitted
Make local testing use django 3. (#242)
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. Co-authored-by: Bob Booij-Liewes <[email protected]>
1 parent efa416b commit 3085224

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
version: '3'
2-
31
services:
42
db:
5-
image: postgres:12
6-
environment:
7-
- POSTGRES_HOST_AUTH_METHOD=trust
3+
image: postgres:11.5
84
binder:
95
build: .
106
command: tail -f /dev/null

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
3737
],
3838
install_requires=[
39-
'Django >= 3.0, < 5.0',
39+
'Django >= 3.0, < 4.0',
4040
'Pillow >= 3.2.0',
4141
'django-request-id >= 1.0.0',
4242
'requests >= 2.13.0',

0 commit comments

Comments
 (0)