[Python-modules-commits] [python-django] 08/08: Drop the hack to run ./manage.py with a specific Python version

Raphaël Hertzog hertzog at moszumanska.debian.org
Wed Dec 30 18:05:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

hertzog pushed a commit to branch debian/master
in repository python-django.

commit 2968db16be48b3e54c7c40386ff0c8d7ee74b00b
Author: Raphaël Hertzog <hertzog at debian.org>
Date:   Wed Dec 30 18:54:13 2015 +0100

    Drop the hack to run ./manage.py with a specific Python version
    
    The file shipped in python-django has a python shebang and the file
    in python3-django has a python3 shebang.
    
    We want to know it when it's no longer the case... so instead of
    working around an issue that was present for some unknown reason
    in 1.9-1, we let it fail (it's tested to work with a clean build
    of 1.9-2).
---
 debian/tests/django-admin | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/debian/tests/django-admin b/debian/tests/django-admin
index 41c3246..d4b2dc6 100644
--- a/debian/tests/django-admin
+++ b/debian/tests/django-admin
@@ -18,15 +18,6 @@ run() {
     $@
 }
 
-case $0 in
-    *-py3)
-        python=python3
-        ;;
-    *)
-        python=python2
-        ;;
-esac
-
 # Test startproject
 cd $ADTTMP
 run django-admin startproject testproject
@@ -40,6 +31,4 @@ run django-admin startapp testapp
 ensure_files_exist testapp/models.py testapp/tests.py testapp/views.py
 
 # Test manage.py
-# ./manage.py hardcodes python3, so we have to call the correct/available
-# python interpreter explicitly
-run $python ./manage.py check
+./manage.py check

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django.git



More information about the Python-modules-commits mailing list