Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/django-tastypie: django-tastypie-0.9.15.ebuild ChangeLog
Date: Thu, 30 May 2013 21:17:07
Message-Id: 20130530211700.170032171D@flycatcher.gentoo.org
1 floppym 13/05/30 21:17:00
2
3 Modified: django-tastypie-0.9.15.ebuild ChangeLog
4 Log:
5 Replace python_test with something that actually runs tests. Restrict them until someone gets them working fully.
6
7 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
8
9 Revision Changes Path
10 1.2 dev-python/django-tastypie/django-tastypie-0.9.15.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild?r1=1.1&r2=1.2
15
16 Index: django-tastypie-0.9.15.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- django-tastypie-0.9.15.ebuild 29 May 2013 07:56:40 -0000 1.1
23 +++ django-tastypie-0.9.15.ebuild 30 May 2013 21:16:59 -0000 1.2
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2013 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v 1.1 2013/05/29 07:56:40 idella4 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v 1.2 2013/05/30 21:16:59 floppym Exp $
29
30 EAPI=5
31 PYTHON_COMPAT=( python{2_6,2_7} )
32 @@ -9,7 +9,7 @@
33
34 DESCRIPTION="A flexible and capable API layer for django utilising serialisers"
35 HOMEPAGE="http://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
36 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +SRC_URI="https://github.com/toastdriven/django-tastypie/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 KEYWORDS="~amd64 ~x86"
39 IUSE="bip doc digest lxml oauth test yaml"
40
41 @@ -25,24 +25,46 @@
42 oauth? ( dev-python/oauth2[${PYTHON_USEDEP}] dev-python/django-oauth-plus[${PYTHON_USEDEP}] )
43 lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
44 yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
45 -DEPEND="${RDEPEND} >=dev-python/django-1.2.5[${PYTHON_USEDEP}]
46 +DEPEND="${RDEPEND}
47 dev-python/setuptools[${PYTHON_USEDEP}]
48 - test? ( dev-python/mock[${PYTHON_USEDEP}] )"
49 + test? (
50 + dev-python/django-oauth-plus[${PYTHON_USEDEP}]
51 + dev-python/oauth2[${PYTHON_USEDEP}]
52 + dev-python/lxml[${PYTHON_USEDEP}]
53 + dev-python/python-digest[${PYTHON_USEDEP}]
54 + dev-python/biplist[${PYTHON_USEDEP}]
55 + dev-python/pyyaml[${PYTHON_USEDEP}]
56 + >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
57 + >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
58 + dev-python/mock[${PYTHON_USEDEP}]
59 + )
60 +"
61 +
62 +RESTRICT="test"
63
64 python_compile_all() {
65 use doc && emake -C docs html
66 }
67
68 +src_test() {
69 + DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
70 +}
71 +
72 python_test() {
73 - export DJANGO_SETTINGS_MODULE="django.conf"
74 - export SECRET_KEY='green'
75 - if ! "${PYTHON}" -c \
76 - "from django.conf import global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" \
77 - -m tastypie.test; then
78 - die "test ${test} failed under ${EPYTHON}"
79 - else
80 - einfo "test ${test} passed under ${EPYTHON}"
81 - fi
82 + # See tests/run_all_tests.sh
83 + local types=( core basic alphanumeric slashless namespaced related
84 + validation gis content_gfk authorization )
85 + local failed type
86 +
87 + pushd tests > /dev/null || die
88 + for type in "${types[@]}"; do
89 + set -- django-admin.py test ${type} --settings=settings_${type}
90 + echo "$@"
91 + "$@" || failed=1
92 + done
93 + popd > /dev/null || die
94 +
95 + [[ -z ${failed} ]] || die "Testing failed with ${EPYTHON}"
96 }
97
98 python_install_all() {
99
100
101
102 1.5 dev-python/django-tastypie/ChangeLog
103
104 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?rev=1.5&view=markup
105 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?rev=1.5&content-type=text/plain
106 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?r1=1.4&r2=1.5
107
108 Index: ChangeLog
109 ===================================================================
110 RCS file: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v
111 retrieving revision 1.4
112 retrieving revision 1.5
113 diff -u -r1.4 -r1.5
114 --- ChangeLog 29 May 2013 07:56:40 -0000 1.4
115 +++ ChangeLog 30 May 2013 21:16:59 -0000 1.5
116 @@ -1,6 +1,10 @@
117 # ChangeLog for dev-python/django-tastypie
118 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
119 -# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v 1.4 2013/05/29 07:56:40 idella4 Exp $
120 +# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v 1.5 2013/05/30 21:16:59 floppym Exp $
121 +
122 + 30 May 2013; Mike Gilbert <floppym@g.o> django-tastypie-0.9.15.ebuild:
123 + Replace python_test with something that actually runs tests. Restrict them
124 + until someone gets them working fully.
125
126 *django-tastypie-0.9.15 (29 May 2013)