aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <della5@iinet.com.au>2012-05-20 20:00:45 +0800
committerIan Delaney <della5@iinet.com.au>2012-05-20 20:00:45 +0800
commitdfbce7e558487a3078eff7ff4143c0fac438cb73 (patch)
treedd7b38e3d028805d800930afdc03446803dabdcf
parent[dev-python/django-ldapdb] fixed tests phase (diff)
downloadimprovise-dfbce7e558487a3078eff7ff4143c0fac438cb73.tar.gz
improvise-dfbce7e558487a3078eff7ff4143c0fac438cb73.tar.bz2
improvise-dfbce7e558487a3078eff7ff4143c0fac438cb73.zip
[dev-python/django-pipeline] rm doctrees from install docs, restrict jython (pypy is good)
-rw-r--r--dev-python/django-evolution/Manifest1
-rw-r--r--dev-python/django-evolution/django-evolution-0.6.7.ebuild49
-rw-r--r--dev-python/django-evolution/django-evolution-9999.ebuild50
-rw-r--r--dev-python/django-evolution/metadata.xml10
-rw-r--r--dev-python/django-ldapdb/Manifest1
-rw-r--r--dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild49
-rw-r--r--dev-python/django-ldapdb/metadata.xml14
-rw-r--r--dev-python/django-pipeline/django-pipeline-1.2.6.ebuild10
8 files changed, 4 insertions, 180 deletions
diff --git a/dev-python/django-evolution/Manifest b/dev-python/django-evolution/Manifest
deleted file mode 100644
index 84cf888..0000000
--- a/dev-python/django-evolution/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST django_evolution-0.6.7.tar.gz 64124 SHA256 fa3c60861d6b5ee0aaa85a5970b51bbe3ef5bb91e2e2d5f8f60d42b03a664df1 SHA512 575d74cc232b0d0f3bf3bfda929714ba0f57283a704b6045dfea4ebf5a184c0499f35c1253410dff5c8724ab0d841a843f8d27fc1ebe93a509d01da5c709b7e7 WHIRLPOOL a1fffd615c1598967e58a8069548e6e810bd515c707a9e010a31f930f87234c4a38bdba27ba563cbd92f1719c5c711c5eabb3a625abf1a6d9aa6c7ceeeaf0be6
diff --git a/dev-python/django-evolution/django-evolution-0.6.7.ebuild b/dev-python/django-evolution/django-evolution-0.6.7.ebuild
deleted file mode 100644
index e240cb2..0000000
--- a/dev-python/django-evolution/django-evolution-0.6.7.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.* *-jython"
-
-inherit distutils eutils
-
-MY_P=${PN/-/_}-${PV}
-
-#MY_PN="${MY_P}-${PV}"
-DESCRIPTION="A Django application that will run cron jobs for other django apps"
-HOMEPAGE="http://code.google.com/p/django-evolution/ http://pypi.python.org/pypi/django_evolution/"
-SRC_URI="mirror://pypi/${PN:0:1}/${MY_P}/${MY_P}.tar.gz"
-
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-LICENSE="BSD"
-SLOT="0"
-PYTHON_MODNAME="django_evolution"
-S="${WORKDIR}/${MY_P}"
-
-RDEPEND="dev-python/setuptools"
-DEPEND="${RDEPEND}
- dev-python/django"
-
-src_test() {
- # pypy registers 2 fails but does not return non zeros status and carries on!!!
- testing() {
- local exit_status=0
- "$(PYTHON)" tests/runtests.py || exit_status=1
- return $exit_status
- }
- python_execute_function testing
-}
-
-src_install() {
- local msg="Remove tests to avoid file collisions"
- distutils_src_install
-
- rmtests() {
- rm -rf ${ED}/$(python_get_sitedir)/tests/ || die
- }
- python_execute_function --action-message "$msg" rmtests
- dodoc docs/*
-}
diff --git a/dev-python/django-evolution/django-evolution-9999.ebuild b/dev-python/django-evolution/django-evolution-9999.ebuild
deleted file mode 100644
index d79a52e..0000000
--- a/dev-python/django-evolution/django-evolution-9999.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS=1
-RESTRICT_PYTHON_ABIS="3.*"
-
-inherit subversion distutils eutils
-
-DESCRIPTION="A Django application that will run cron jobs for other django apps"
-HOMEPAGE="http://code.google.com/p/django-evolution/ http://pypi.python.org/pypi/django_evolution/"
-ESVN_REPO_URI="http://django-evolution.googlecode.com/svn/trunk/"
-
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-LICENSE="BSD"
-SLOT="0"
-PYTHON_MODNAME="django_evolution"
-
-RDEPEND=""
-DEPEND="${RDEPEND} >=dev-python/django-1.1.4
- dev-python/setuptools"
-
-src_test() {
- testing() {
- PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib*)" "$(PYTHON)" tests/runtests.py
- }
- python_execute_function testing
-}
-
-src_install() {
- # Rename & remove files to avoid file collisions
- adjust() {
- seta=(run-pyflakes.py runtests.py settings.py)
- setb=(_run-pyflakes.py _runtests.py _settings.py)
- for (( i=0 ; i < 3 ; i++ ))
- do
- mv build-${PYTHON_ABI}/lib/tests/${seta[i]} \
- build-${PYTHON_ABI}/lib/tests/${setb[i]}
- einfo ${seta[x]} "moved" || die
- done
- rm build-${PYTHON_ABI}/lib/tests/__init__.py || die
- }
- python_execute_function adjust
- distutils_src_install
- dodoc docs/*
-}
diff --git a/dev-python/django-evolution/metadata.xml b/dev-python/django-evolution/metadata.xml
deleted file mode 100644
index 5f2cb6b..0000000
--- a/dev-python/django-evolution/metadata.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>python</herd>
- <maintainer><email>tampakrap@gentoo.org</email></maintainer>
- <maintainer>
- <email>johneed@hotmail.com,della5@iinet.com.au</email>
- <name>Ian Delaney aka idella4 proxy maintainer</name>
- </maintainer>
-</pkgmetadata>
diff --git a/dev-python/django-ldapdb/Manifest b/dev-python/django-ldapdb/Manifest
deleted file mode 100644
index d5aebf1..0000000
--- a/dev-python/django-ldapdb/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST django-ldapdb-0.1.0_p20120424.tar.bz2 12627 SHA256 ff98287da2b564cea7d02b8757b60b1f2366da09a7d5abf736098d249795047a SHA512 48b0319812e1731971d1d0ac0991e049b7e614a3c1d7e86fcbb47707b0c0317bd6a6f8ff414850d57175fb1c8c095521bfd20feaf4c5aa38b0af395471f3e92d WHIRLPOOL ddb31df8f5771e19e5e0a43ed8839eeafac7ac24f012ab7a92d9b30a89556d525ad2d79c2a428308a9ce616e4057dde15257acec32eba0ad20d4cb0ae5f49503
diff --git a/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild b/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
deleted file mode 100644
index 67127b0..0000000
--- a/dev-python/django-ldapdb/django-ldapdb-0.1.0_p20120424.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-PYTHON_DEPEND="2"
-SUPPORT_PYTHON_ABIS=1
-RESTRICT_PYTHON_ABIS="3.* *-pypy-* *-jython"
-inherit distutils
-
-DESCRIPTION="an LDAP database backend for Django"
-HOMEPAGE="http://opensource.bolloretelecom.eu/projects/django-ldapdb/"
-SRC_URI="http://dev.gentoo.org/~tampakrap/tarballs/${P}.tar.bz2"
-
-KEYWORDS="~amd64 ~x86"
-IUSE="examples test"
-LICENSE="MIT"
-SLOT="0"
-PYTHON_MODNAME="ldapdb"
-S="${WORKDIR}/${PN}"
-
-RDEPEND="dev-python/django"
-DEPEND="${RDEPEND}
- dev-python/setuptools
- test? ( dev-python/python-ldap )"
-
-src_test() {
- # Exclude examples from test phase
- mv examples/tests.py examples/tests
-
- testing() {
- "$(PYTHON)" manage.py test
- }
-
- python_execute_function testing
- mv examples/tests examples/tests.py
-}
-
-src_install() {
- distutils_src_install
- samples() {
- insinto $(python_get_libdir)/site-packages/${PYTHON_MODNAME}/
- doins -r examples/
- }
-
- if use examples; then
- python_execute_function samples
- fi
-}
diff --git a/dev-python/django-ldapdb/metadata.xml b/dev-python/django-ldapdb/metadata.xml
deleted file mode 100644
index 472ba46..0000000
--- a/dev-python/django-ldapdb/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer>
- <email>johneed@hotmail.com</email>
- <name>Ian Delaney</name>
- </maintainer>
- <maintainer>
- <email>tampakrap@gentoo.org</email>
- <name>Theo Chatzimichos</name>
- </maintainer>
- <herd>python</herd>
-</pkgmetadata>
-
diff --git a/dev-python/django-pipeline/django-pipeline-1.2.6.ebuild b/dev-python/django-pipeline/django-pipeline-1.2.6.ebuild
index 7d63045..74ecf7e 100644
--- a/dev-python/django-pipeline/django-pipeline-1.2.6.ebuild
+++ b/dev-python/django-pipeline/django-pipeline-1.2.6.ebuild
@@ -1,3 +1,4 @@
+
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -5,7 +6,7 @@
EAPI=4
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS=1
-RESTRICT_PYTHON_ABIS="3.*"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils
@@ -18,7 +19,7 @@ IUSE="doc"
LICENSE="MIT"
SLOT="0"
PYTHON_MODNAME="pipeline"
-
+DISTUTILS_SRC_TEST=nosetests
RDEPEND=">=dev-python/django-1.4"
DEPEND="${RDEPEND}
dev-python/setuptools"
@@ -37,7 +38,7 @@ src_test() {
pushd build-${PYTHON_ABI}/lib/tests/tests/ > /dev/null || die
for test in [a-z]*.py
do
- if ! PYTHONPATH=./../ "$(PYTHON)" ${test}; then
+ if ! "$(PYTHON)" ${test}; then
eerror "test "${test}" failed"
exit_status="1"
else
@@ -54,10 +55,7 @@ src_install() {
distutils_src_install
if use doc; then
- docompress -x usr/share/doc/${P}/doctrees
dohtml -r docs/_build/html/
- insinto usr/share/doc/${P}/doctrees
- doins docs/_build/doctrees/*
fi
# Remove un-needed tests to avoid file collisions