File: 0001-Disable-Django-support.patch

package info (click to toggle)
python-passlib 1.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,172 kB
  • ctags: 3,873
  • sloc: python: 21,883; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Brian May <bam@debian.org>
Date: Sun, 3 Jan 2016 14:37:23 +1100
Subject: Disable Django support

It is currently broken with Django 1.9, see
https://bitbucket.org/ecollins/passlib/issues/68/tests-fail-with-django-19
---
 passlib/ext/django/utils.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py
index a83cb89..c828703 100644
--- a/passlib/ext/django/utils.py
+++ b/passlib/ext/django/utils.py
@@ -9,12 +9,9 @@ import sys
 import weakref
 from warnings import warn
 # site
-try:
-    from django import VERSION as DJANGO_VERSION
-    log.debug("found django %r installation", DJANGO_VERSION)
-except ImportError:
-    log.debug("django installation not found")
-    DJANGO_VERSION = ()
+log.debug("Django support disabled by Debian package")
+log.debug("See https://bitbucket.org/ecollins/passlib/issues/68/tests-fail-with-django-19")
+DJANGO_VERSION = ()
 # pkg
 from passlib import exc, registry
 from passlib.context import CryptContext