From: "Mike Gilbert (floppym)" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
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:00 +0000 (UTC) [thread overview]
Message-ID: <20130530211700.170032171D@flycatcher.gentoo.org> (raw)
floppym 13/05/30 21:17:00
Modified: django-tastypie-0.9.15.ebuild ChangeLog
Log:
Replace python_test with something that actually runs tests. Restrict them until someone gets them working fully.
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Revision Changes Path
1.2 dev-python/django-tastypie/django-tastypie-0.9.15.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild?rev=1.2&view=markup
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
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
Index: django-tastypie-0.9.15.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- django-tastypie-0.9.15.ebuild 29 May 2013 07:56:40 -0000 1.1
+++ django-tastypie-0.9.15.ebuild 30 May 2013 21:16:59 -0000 1.2
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $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 $
+# $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 $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
@@ -9,7 +9,7 @@
DESCRIPTION="A flexible and capable API layer for django utilising serialisers"
HOMEPAGE="http://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/toastdriven/django-tastypie/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
IUSE="bip doc digest lxml oauth test yaml"
@@ -25,24 +25,46 @@
oauth? ( dev-python/oauth2[${PYTHON_USEDEP}] dev-python/django-oauth-plus[${PYTHON_USEDEP}] )
lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
-DEPEND="${RDEPEND} >=dev-python/django-1.2.5[${PYTHON_USEDEP}]
+DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
- test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+ test? (
+ dev-python/django-oauth-plus[${PYTHON_USEDEP}]
+ dev-python/oauth2[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/python-digest[${PYTHON_USEDEP}]
+ dev-python/biplist[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+RESTRICT="test"
python_compile_all() {
use doc && emake -C docs html
}
+src_test() {
+ DISTUTILS_NO_PARALLEL_BUILD=1 distutils-r1_src_test
+}
+
python_test() {
- export DJANGO_SETTINGS_MODULE="django.conf"
- export SECRET_KEY='green'
- if ! "${PYTHON}" -c \
- "from django.conf import global_settings;global_settings.SECRET_KEY='$SECRET_KEY'" \
- -m tastypie.test; then
- die "test ${test} failed under ${EPYTHON}"
- else
- einfo "test ${test} passed under ${EPYTHON}"
- fi
+ # See tests/run_all_tests.sh
+ local types=( core basic alphanumeric slashless namespaced related
+ validation gis content_gfk authorization )
+ local failed type
+
+ pushd tests > /dev/null || die
+ for type in "${types[@]}"; do
+ set -- django-admin.py test ${type} --settings=settings_${type}
+ echo "$@"
+ "$@" || failed=1
+ done
+ popd > /dev/null || die
+
+ [[ -z ${failed} ]] || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
1.5 dev-python/django-tastypie/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/django-tastypie/ChangeLog?r1=1.4&r2=1.5
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ChangeLog 29 May 2013 07:56:40 -0000 1.4
+++ ChangeLog 30 May 2013 21:16:59 -0000 1.5
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/django-tastypie
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v 1.4 2013/05/29 07:56:40 idella4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/django-tastypie/ChangeLog,v 1.5 2013/05/30 21:16:59 floppym Exp $
+
+ 30 May 2013; Mike Gilbert <floppym@gentoo.org> django-tastypie-0.9.15.ebuild:
+ Replace python_test with something that actually runs tests. Restrict them
+ until someone gets them working fully.
*django-tastypie-0.9.15 (29 May 2013)
next reply other threads:[~2013-05-30 21:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 21:17 Mike Gilbert (floppym) [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-06-06 9:32 [gentoo-commits] gentoo-x86 commit in dev-python/django-tastypie: django-tastypie-0.9.15.ebuild ChangeLog Ian Delaney (idella4)
2015-03-06 22:16 Pacho Ramos (pacho)
2015-03-08 23:45 Pacho Ramos (pacho)
2015-04-08 8:04 Michal Gorny (mgorny)
2015-07-28 6:04 Patrick Lauer (patrick)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130530211700.170032171D@flycatcher.gentoo.org \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox