Source: django-restricted-resource
Version: 2016.8-2
Severity: serious
Tags: patch

Hi,

Please see attached quick and dirty patch to remove Python 2 support from
your module, which is needed since the upload of Django 2.2. in Sid.

Cheers,

Thomas Goirand (zigo)
diff --git a/debian/changelog b/debian/changelog
index 10909c0..ac7a04c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+django-restricted-resource (2016.8-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Removed Python 2 support.
+
+ -- Thomas Goirand <z...@debian.org>  Thu, 25 Jul 2019 14:49:40 +0200
+
 django-restricted-resource (2016.8-2) unstable; urgency=medium
 
   * Reduce build-depends to assist python3 transition.
diff --git a/debian/control b/debian/control
index 7358028..035b2bb 100644
--- a/debian/control
+++ b/debian/control
@@ -13,16 +13,6 @@ Homepage: http://www.linaro.org/engineering/validation
 Vcs-Browser: https://github.com/Linaro/pkg-django-restricted-resource
 Vcs-Git: https://github.com/Linaro/pkg-django-restricted-resource.git
 
-Package: python-django-restricted-resource
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}
-Provides: ${python:Provides}
-Description: Django Base model for ownership and access control (Python 2)
- Restricted resources can have owners, users or groups of users,
- organised within the django admin interface. Resources can be
- public or private to allow an app to provide access control
- over model objects.
-
 Package: python3-django-restricted-resource
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}
diff --git a/debian/rules b/debian/rules
index 45ed112..b16845e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,17 +1,15 @@
 #!/usr/bin/make -f
 
 %:
-       dh $@ --with python2,python3
+       dh $@ --with python3
 
 .PHONY: override_dh_auto_test
 override_dh_auto_test:
        # Run the bundled tests (in-memory database) when building the package
-       LC_ALL=C python ./django_restricted_resource/test_project/manage.py test
        LC_ALL=C python3 ./django_restricted_resource/test_project/manage.py 
test
 
 override_dh_auto_install:
        dh_auto_install
-       python setup.py install 
--root=$(CURDIR)/debian/python-django-restricted-resource/ --install-layout=deb
        python3 setup.py install 
--root=$(CURDIR)/debian/python3-django-restricted-resource/ --install-layout=deb
 
 override_dh_auto_clean:

Reply via email to