Gentoo Archives: gentoo-commits

From: "Ian Delaney (idella4)" <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django-registration: django-registration-0.8-r2.ebuild ChangeLog
Date: Sat, 01 Jun 2013 13:20:57
Message-Id: 20130601132052.AA51D2171D@flycatcher.gentoo.org
1 idella4 13/06/01 13:20:52
2
3 Modified: ChangeLog
4 Added: django-registration-0.8-r2.ebuild
5 Log:
6 revbump, test phase replaced, py3 dropped
7
8 (Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
9
10 Revision Changes Path
11 1.5 dev-python/django-registration/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-registration/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-registration/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-registration/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/django-registration/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 27 May 2013 14:27:49 -0000 1.4
24 +++ ChangeLog 1 Jun 2013 13:20:52 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/django-registration
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django-registration/ChangeLog,v 1.4 2013/05/27 14:27:49 idella4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-registration/ChangeLog,v 1.5 2013/06/01 13:20:52 idella4 Exp $
30 +
31 +*django-registration-0.8-r2 (01 Jun 2013)
32 +
33 + 01 Jun 2013; Ian Delaney <idella4@g.o>
34 + +django-registration-0.8-r2.ebuild, django-registration-0.8-r1.ebuild:
35 + revbump, test phase replaced, py3 dropped
36
37 *django-registration-0.8-r1 (27 May 2013)
38
39
40
41
42 1.1 dev-python/django-registration/django-registration-0.8-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-registration/django-registration-0.8-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-registration/django-registration-0.8-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: django-registration-0.8-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/django-registration/django-registration-0.8-r2.ebuild,v 1.1 2013/06/01 13:20:52 idella4 Exp $
52
53 EAPI=5
54
55 PYTHON_COMPAT=( python{2_6,2_7} )
56
57 inherit distutils-r1
58
59 DESCRIPTION="An extensible user-registration application for Django"
60 HOMEPAGE="http://www.bitbucket.org/ubernostrum/django-registration/wiki/ http://pypi.python.org/pypi/django-registration"
61 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz https://github.com/nathanborror/django-registration/archive/master.zip"
62
63 LICENSE="BSD"
64 SLOT="0"
65 KEYWORDS="~amd64"
66 IUSE="test"
67
68 DEPEND="dev-python/django[${PYTHON_USEDEP}]
69 app-arch/unzip
70 test? ( <=dev-python/django-1.4.5[$(python_gen_usedep python{2_6,2_7})] )"
71 RDEPEND="dev-python/django[${PYTHON_USEDEP}]"
72
73 python_prepare_all() {
74 if use test; then
75 DISTUTILS_IN_SOURCE_BUILD=1
76 mv "${WORKDIR}"/${PN}-master/${PN#django-}/templates/ "${S}"/${PN#django-}/ || die
77 # Disable invalid test
78 sed -e 's:test_get_version:_&:' -i ${PN#django-}/tests/__init__.py || die
79 fi
80 distutils-r1_python_prepare_all
81 }
82
83 python_compile_all() {
84 if use test; then
85 # Acquire a settings.py
86 django-admin.py-${EPYTHON} startproject regtest || die
87 sed -e "/^INSTALLED_APPS/a\ 'registration'," \
88 -e 's/\(django.db.backends.\)/\1sqlite3/' \
89 -e "s/\(NAME': '\)/\1test.db/" \
90 -i regtest/regtest/settings.py || die "sed failed"
91 echo "SKIP_REGISTRATION_TESTS=False" >> regtest/regtest/settings.py
92 cd regtest || die
93 ln -fs ../registration/urls.py . && cd .. || die
94 touch regtest/__init__.py || die
95 cp ${PN#django-}/templates/${PN#django-}/base_registration.html \
96 ${PN#django-}/templates/${PN#django-}/test_template_name.html || die
97 cp regtest/regtest/settings.py registration/ || die
98 fi
99 }
100
101 python_test() {
102 # NOTE: tests pass in py2.6 only if run alone
103 pushd "${BUILD_DIR}"/../ &> /dev/null
104 PYTHONPATH=. django-admin.py-"${EPYTHON}" test --setting=registration.settings registration || die "tests failed"
105 }