On 25/07/19 5:40 am, Thomas Goirand wrote: > Source: django-ranged-response > Version: 0.2.0-1 > Severity: serious > Tags: patch > > Hi, > > Attached is a patch to remove Python 2 support for this package, > needed since the upload of Django 2.2 in Sid. > > Please apply and upload.
Thank you for the patch. I have contacted Federico for the upload. The attached patches make some further changes. -- Sunil
>From bc757ed3b45e5259fb1c55237d6d31d7c72298a1 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Thu, 25 Jul 2019 16:38:00 -0700 Subject: [PATCH 3/3] Ensure that test database is not part of final .deb Signed-off-by: Sunil Mohan Adapa <su...@medhas.org> --- debian/patches/0001-complete-the-test-suite.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/patches/0001-complete-the-test-suite.patch b/debian/patches/0001-complete-the-test-suite.patch index 4c321e5..9763828 100644 --- a/debian/patches/0001-complete-the-test-suite.patch +++ b/debian/patches/0001-complete-the-test-suite.patch @@ -8,7 +8,7 @@ +settings.configure(DATABASES={ + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', -+ 'NAME': 'db.sqlite3', ++ 'NAME': 'test/db.sqlite3', + } +}) --- a/test/test_response.py -- 2.20.1
>From 06ab5066a5c71cb6d22240dbcd762981926585b5 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Thu, 25 Jul 2019 16:12:26 -0700 Subject: [PATCH 2/3] Update standards version to 4.4.0 No changes are needed. Signed-off-by: Sunil Mohan Adapa <su...@medhas.org> --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 02657ff..b8deccf 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Build-Depends: python3-all, python3-django, python3-setuptools -Standards-Version: 4.1.3 +Standards-Version: 4.4.0 Homepage: https://pypi.python.org/pypi/django-ranged-response/ Vcs-Browser: https://salsa.debian.org/freedombox-team/django-ranged-response Vcs-Git: https://salsa.debian.org/freedombox-team/django-ranged-response.git -- 2.20.1
>From 2c5f4e03d9d16a4e32ea53c3406e004bfd70b080 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Thu, 25 Jul 2019 15:37:22 -0700 Subject: [PATCH 1/3] Drop auto pkg tests for python2 Signed-off-by: Sunil Mohan Adapa <su...@medhas.org> --- debian/tests/control | 3 --- 1 file changed, 3 deletions(-) diff --git a/debian/tests/control b/debian/tests/control index 9bb1757..01e030b 100644 --- a/debian/tests/control +++ b/debian/tests/control @@ -1,5 +1,2 @@ -Test-Command: set -e ; for py in $(pyversions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import ranged_response; print ranged_response" ; done -Depends: python-all, python-django-ranged-response - Test-Command: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$ADTTMP" ; echo "Testing with $py:" ; $py -c "import ranged_response; print(ranged_response)" ; done Depends: python3-all, python3-django-ranged-response -- 2.20.1