~ubuntu-branches/ubuntu/quantal/python-django/quantal-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-10-12 11:34:35 UTC
  • mfrom: (4.4.9 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: james.westby@ubuntu.com-20101012113435-5rk3p18nyanuhj6g
* SECURITY UPDATE: XSS in CSRF protections. New upstream release
  - CVE-2010-3082
* debian/patches/01_disable_url_verify_regression_tests.diff:
  - updated to disable another test that fails without internet connection
  - patch based on work by Kai Kasurinen and Krzysztof Klimonda
* debian/control: don't Build-Depends on locales-all, which doesn't exist
  in maverick

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
PREFIX = debian/python-django
6
6
DJANGO_DIR = $(PREFIX)/$(call py_libdir_sh,`pyversions -d`)/django
7
7
 
 
8
# FIXME: if the build is run while non-default python version are
 
9
# available, the build process will install files in
 
10
# /usr/lib/pyshared/pythonX.Y while we don't need them
 
11
 
8
12
%:
9
 
        dh --with quilt $@
 
13
        dh $@
10
14
 
11
15
override_dh_auto_clean:
12
 
        rm -rf docs.debian testproject
 
16
        rm -rf docs.debian tests/__init__.py
13
17
        find -name "*.DS_Store" -delete
14
18
        dh_auto_clean
15
19
 
24
28
        make -C docs.debian html
25
29
        rm -rf docs.debian/_build/html/_sources/
26
30
 
27
 
override_dh_auto_test_DISABLED:
28
 
        PYTHONPATH=. django/bin/django-admin.py startproject testproject
29
 
        cat debian/test_settings.py >> testproject/settings.py
30
 
        PYTHONPATH=. tests/runtests.py --settings=testproject.settings --verbosity=2
 
31
override_dh_auto_test:
 
32
        touch tests/__init__.py
 
33
        LC_ALL=en_US.utf8 PYTHONPATH=. tests/runtests.py --settings=tests.test_sqlite --verbosity=2
31
34
 
32
35
override_dh_install:
33
36
        dh_install