Package: src:django-tables Version: 2.6.0-1 Severity: grave Tags: patch
Dear Maintainer, Tests fail on Debian CI infrastructure [1] and on my local machine as well (full log attached). This failure prevents python-django (3:4.2.6-1) from entering in testing [2]. $> autopkgtest --no-built-binaries django-tables_2.6.0-1.dsc -- null ... ... ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3/dist-packages/django/conf/urls/__init__.py) autopkgtest [14:12:24]: test test-run-py3: -----------------------] autopkgtest [14:12:24]: test test-run-py3: - - - - - - - - - - results - - - - - - - - - - test-run-py3 FAIL non-zero exit status 1 autopkgtest [14:12:24]: @@@@@@@@@@@@@@@@@@@@ summary command1 PASS test-run-py3 FAIL non-zero exit status 1 The root cause is that url() function was deprecated since Django 3.1 [3] and removed in Django 4.x Attached patch addresses the failure. Kind Regards [1] https://ci.debian.net/data/autopkgtest/unstable/amd64/d/django-tables/39070283/log.gz [2] https://qa.debian.org/excuses.php?package=python-django [3] https://code.djangoproject.com/ticket/31534
--- django-tables-2.6.0/debian/tests/test-run-py3 2023-05-25 15:35:19.000000000 +0000 +++ django-tables-2.6.0/debian/tests/test-run-py3-new 2023-10-31 14:37:50.661433357 +0000 @@ -45,14 +45,14 @@ cat > testproject/urls.py << __EOF__ -from django.conf.urls import url +from django.urls import re_path from django.contrib import admin from tutorial.views import people urlpatterns = [ - url(r'^admin/', admin.site.urls), - url(r'^people/', people) + re_path(r'^admin/', admin.site.urls), + re_path(r'^people/', people) ] __EOF__
full_log.tar.gz
Description: application/gzip