Skip to content

Commit a055549

Browse files
authored
Django 5 support (#18)
* Django 5 support * fix: python 3.9, 3.11 * fix: single quotes * chore: reformat with black * postgres:15 for tests
1 parent 2baf5d3 commit a055549

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
strategy:
2929
matrix:
30-
python-version: [3.7, 3.8, 3.9, 3.11]
30+
python-version: [3.9, 3.11]
3131
database: [sqlite, mysql, postgresql]
3232

3333
services:
@@ -40,7 +40,7 @@ jobs:
4040
# needed because the container does not provide a healthcheck
4141
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries=5
4242
postgres:
43-
image: postgres:12-alpine
43+
image: postgres:15-alpine
4444
env:
4545
POSTGRES_USER: postgres
4646
POSTGRES_PASSWORD: postgres

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ startpg:
4040
--health-interval 10s \
4141
--health-timeout 5s \
4242
--health-retries 5 \
43-
postgres:11-alpine
43+
postgres:15-alpine
4444
until [ "`docker inspect -f {{.State.Health.Status}} ${TEST_CONTAINER}-pg`" == "healthy" ]; do sleep 0.1; done;
4545

4646
testpg: startpg

dbcleanup/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.1.4'
1+
__version__ = '0.1.5'
22

33
# set default_app_config when using django earlier than 3.2
44
try:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ zip_safe = False
2626
include_package_data = True
2727
packages = find:
2828
install_requires =
29-
Django >= 3.0, < 5.0
29+
Django >= 3.0, < 6.0
3030
python_requires = >=3.7
3131

3232
[options.packages.find]

testapp/testapp/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from django.contrib import admin
1718
from django.urls import path
1819

1920
urlpatterns = [
20-
path('admin/', admin.site.urls),
21+
path("admin/", admin.site.urls),
2122
]

0 commit comments

Comments
 (0)