1 |
idella4 13/06/03 07:08:29 |
2 |
|
3 |
Modified: django-tastypie-0.9.15.ebuild |
4 |
Log: |
5 |
Added needed deps, tarball from pypi substituted with 'proper' one from home site, patch for running testsuite to die on fail (shifts code from ebuild back to run script), test phase reduced to run on 1 line |
6 |
|
7 |
(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 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.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild?rev=1.3&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.2&r2=1.3 |
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.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- django-tastypie-0.9.15.ebuild 30 May 2013 21:16:59 -0000 1.2 |
23 |
+++ django-tastypie-0.9.15.ebuild 3 Jun 2013 07:08:29 -0000 1.3 |
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.2 2013/05/30 21:16:59 floppym Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v 1.3 2013/06/03 07:08:29 idella4 Exp $ |
29 |
|
30 |
EAPI=5 |
31 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
32 |
@@ -9,7 +9,8 @@ |
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="https://github.com/toastdriven/django-tastypie/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+SRC_URI="https://github.com/toastdriven/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+ |
39 |
KEYWORDS="~amd64 ~x86" |
40 |
IUSE="bip doc digest lxml oauth test yaml" |
41 |
|
42 |
@@ -17,12 +18,14 @@ |
43 |
SLOT="0" |
44 |
|
45 |
RDEPEND=">=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}] |
46 |
- >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}] |
47 |
- !=dev-python/python-dateutil-2.0 |
48 |
- dev-python/django[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/django-1.3[${PYTHON_USEDEP}] |
51 |
+ dev-python/pyxml[${PYTHON_USEDEP}] |
52 |
+ dev-python/defusedxml[${PYTHON_USEDEP}] |
53 |
bip? ( dev-python/biplist[${PYTHON_USEDEP}] ) |
54 |
digest? ( dev-python/python-digest[${PYTHON_USEDEP}] ) |
55 |
- oauth? ( dev-python/oauth2[${PYTHON_USEDEP}] dev-python/django-oauth-plus[${PYTHON_USEDEP}] ) |
56 |
+ oauth? ( dev-python/oauth2[${PYTHON_USEDEP}] |
57 |
+ dev-python/django-oauth-plus[${PYTHON_USEDEP}] ) |
58 |
lxml? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
59 |
yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )" |
60 |
DEPEND="${RDEPEND} |
61 |
@@ -37,10 +40,13 @@ |
62 |
>=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}] |
63 |
>=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] |
64 |
dev-python/mock[${PYTHON_USEDEP}] |
65 |
- ) |
66 |
-" |
67 |
+ )" |
68 |
|
69 |
-RESTRICT="test" |
70 |
+python_prepare_all() { |
71 |
+ # skip run tests script |
72 |
+ use test && epatch "${FILESDIR}"/runtests.patch |
73 |
+ distutils-r1_python_prepare_all |
74 |
+} |
75 |
|
76 |
python_compile_all() { |
77 |
use doc && emake -C docs html |
78 |
@@ -51,20 +57,7 @@ |
79 |
} |
80 |
|
81 |
python_test() { |
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 |
+ PYTHONPATH=.:tests ./tests/run_all_tests.sh |
97 |
} |
98 |
|
99 |
python_install_all() { |