diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d92b6e3..0900344 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9, 3.11] + python-version: [3.9, 3.11] database: [sqlite, mysql, postgresql] services: @@ -40,7 +40,7 @@ jobs: # needed because the container does not provide a healthcheck options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries=5 postgres: - image: postgres:12-alpine + image: postgres:15-alpine env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres diff --git a/Makefile b/Makefile index 9fe513a..6843512 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ startpg: --health-interval 10s \ --health-timeout 5s \ --health-retries 5 \ - postgres:11-alpine + postgres:15-alpine until [ "`docker inspect -f {{.State.Health.Status}} ${TEST_CONTAINER}-pg`" == "healthy" ]; do sleep 0.1; done; testpg: startpg diff --git a/dbcleanup/__init__.py b/dbcleanup/__init__.py index a5134a8..ab14b34 100644 --- a/dbcleanup/__init__.py +++ b/dbcleanup/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.1.4' +__version__ = '0.1.5' # set default_app_config when using django earlier than 3.2 try: diff --git a/setup.cfg b/setup.cfg index ae0e9a0..5a7b6fa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -26,7 +26,7 @@ zip_safe = False include_package_data = True packages = find: install_requires = - Django >= 3.0, < 5.0 + Django >= 3.0, < 6.0 python_requires = >=3.7 [options.packages.find] diff --git a/testapp/testapp/urls.py b/testapp/testapp/urls.py index 8ab3632..ab2af97 100644 --- a/testapp/testapp/urls.py +++ b/testapp/testapp/urls.py @@ -13,9 +13,10 @@ 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ + from django.contrib import admin from django.urls import path urlpatterns = [ - path('admin/', admin.site.urls), + path("admin/", admin.site.urls), ]