summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-12 20:06:49 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-12-12 20:06:49 +0000
commitbc821e47fdef402c3ad9bdd605b524f63a656a1c (patch)
tree347ac8b09d73bca416ac535d1d5e6b3ef87b2f0a /dev-python/jsonpickle
parentDrop dependency on sec-policy/selinux-base-policy as requested by Chris PeBen... (diff)
downloadgentoo-2-bc821e47fdef402c3ad9bdd605b524f63a656a1c.tar.gz
gentoo-2-bc821e47fdef402c3ad9bdd605b524f63a656a1c.tar.bz2
gentoo-2-bc821e47fdef402c3ad9bdd605b524f63a656a1c.zip
Version bump.
(Portage version: 15055-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/jsonpickle')
-rw-r--r--dev-python/jsonpickle/ChangeLog8
-rw-r--r--dev-python/jsonpickle/jsonpickle-0.3.1.ebuild40
2 files changed, 47 insertions, 1 deletions
diff --git a/dev-python/jsonpickle/ChangeLog b/dev-python/jsonpickle/ChangeLog
index 175cb89a08ce..ec1ea2b76b00 100644
--- a/dev-python/jsonpickle/ChangeLog
+++ b/dev-python/jsonpickle/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/jsonpickle
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpickle/ChangeLog,v 1.3 2009/12/12 06:36:49 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpickle/ChangeLog,v 1.4 2009/12/12 20:06:49 arfrever Exp $
+
+*jsonpickle-0.3.1 (12 Dec 2009)
+
+ 12 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +jsonpickle-0.3.1.ebuild:
+ Version bump.
*jsonpickle-0.3.0 (12 Dec 2009)
diff --git a/dev-python/jsonpickle/jsonpickle-0.3.1.ebuild b/dev-python/jsonpickle/jsonpickle-0.3.1.ebuild
new file mode 100644
index 000000000000..7cb6f01295d5
--- /dev/null
+++ b/dev-python/jsonpickle/jsonpickle-0.3.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/jsonpickle/jsonpickle-0.3.1.ebuild,v 1.1 2009/12/12 20:06:49 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+DESCRIPTION="Python library for serializing any arbitrary object graph into JSON."
+HOMEPAGE="http://jsonpickle.github.com/ http://pypi.python.org/pypi/jsonpickle"
+SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="|| ( >=dev-lang/python-2.6
+ ( dev-lang/python:2.5 dev-python/simplejson ) )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools"
+RESTRICT_PYTHON_ABIS="3.*"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Fix exit status of runtests.py.
+ sed -e "s/unittest.TextTestRunner/return &/" -e "s/main()$/sys.exit(not main().wasSuccessful())/" -i tests/runtests.py || die "sed failed"
+
+ # thirdparty_tests.py requires dev-python/feedparser.
+ sed -e "/thirdparty_tests/d" -i tests/runtests.py || die "sed failed"
+}
+
+src_test() {
+ testing() {
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" tests/runtests.py
+ }
+ python_execute_function testing
+}