diff options
-rw-r--r-- | dev-python/testify/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/testify/Manifest | 25 | ||||
-rw-r--r-- | dev-python/testify/files/testify-0.2.6-tests.patch | 36 | ||||
-rw-r--r-- | dev-python/testify/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/testify/testify-0.2.6.ebuild | 41 |
5 files changed, 117 insertions, 0 deletions
diff --git a/dev-python/testify/ChangeLog b/dev-python/testify/ChangeLog new file mode 100644 index 000000000000..c3d61f4d770f --- /dev/null +++ b/dev-python/testify/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/testify +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testify/ChangeLog,v 1.1 2012/05/18 13:37:40 xarthisius Exp $ + +*testify-0.2.6 (18 May 2012) + + 18 May 2012; Kacper Kowalik <xarthisius@gentoo.org> + +files/testify-0.2.6-tests.patch, +metadata.xml, +testify-0.2.6.ebuild: + Initial import, ebuild written by me + diff --git a/dev-python/testify/Manifest b/dev-python/testify/Manifest new file mode 100644 index 000000000000..979cb264289e --- /dev/null +++ b/dev-python/testify/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX testify-0.2.6-tests.patch 1146 RMD160 bdeb940f469a3dcb75673667e89c5254ea37406a SHA1 468f126efb997b98d506884616ca1db963862bfb SHA256 7746d5866ab1d7f81622e4113362d24663605a58296b46eba3f535d751cada6a +DIST testify-0.2.6.tar.gz 47408 RMD160 7f569502a355485b248aa30c3b8e48f1aa4b3532 SHA1 32e2b0d9e88724a57450e76de3ac3e72bc495873 SHA256 2022434f032e1c354bc3e224fd20781a48df1bfb0004d6b87aeea9b387c3bc5d +EBUILD testify-0.2.6.ebuild 1044 RMD160 e3de37e0c19392f28ba32e876e6a1f38e2ffd973 SHA1 439b0cc09d170923dfec619eedc97a1cddd76ef4 SHA256 5b7aa7e48363bdb71413f52058e5adf58e9cc465d195efa485cfe9d5fc2a69ea +MISC ChangeLog 411 RMD160 dc9d44fd7d4478a9297a29549c2b0764ca2ae011 SHA1 967f4e564aae0e367697bd2de5d9bfe24e8e553e SHA256 10e154d648a41ded4d445aa613c20a031462affbdd375eebf502dbd238192bce +MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBCAAGBQJPtlC4AAoJEF0huFKJUZL5Qw0P+wQKrUmaV/DgIgQlGKgi5MYn +ZT33p/JTkWK2DPdNCorg7AdTUncb7UKRvMzZoABCvhQGTTzHyZRzj2UdiP05An7j +t6pS/suu4vq0UyE2235/KacqvPJ37Fe3ndairoXmDW5Wbu3/e4+tubWJyropqQn9 +PD4UcTRrlV8yKDLvpgV15iBVrfLUwTQLF/nL+Vil94JcOKzA6BqyPHEpbKWb44i/ +nDFZdg+UY5650ItIi2EvaC4+qW/d73QE+Xb4Wn4YJeI7qasfMWlT3Cv+5N8oOd7F +GgqvSJXq6e0uSc/0/sQeqBnm/GzXAa1eSxt+/cVJTFypJZx1MOIVmXTkKYhh5TyY +rBWJHi2VycP6ojI/96H4MLaHhPX1gyBTH+6RySkZtDl7wu1RaBypKn/n6icGz2np +X7XkNLgjWizfuTXeQrvJUQfFESWG0tUQt8WrG3ZT9R/MCOsVQa8xexC5NaBsSaxa +vHG0q7C6B2mO3/Hd/4c5f7tgwY3BtzVQsMPIkXPLK6S4NMDjNkWkMcuW3tZBX4Lz +b++lHGDgKg06c0zUqPysD50E9fg5GLVS92TAQsegnTPfkleTiaLLgvs+Xq6QBAjj +cecv6RT74raKH6Vp0PLN6KF57NuKGNa7N1+n/BDn6WDxg/NHH1E1+lcBpeT/qT4E +ZLe59YnnAP3LBpoC2e3f +=LbfW +-----END PGP SIGNATURE----- diff --git a/dev-python/testify/files/testify-0.2.6-tests.patch b/dev-python/testify/files/testify-0.2.6-tests.patch new file mode 100644 index 000000000000..68a6fafdf029 --- /dev/null +++ b/dev-python/testify/files/testify-0.2.6-tests.patch @@ -0,0 +1,36 @@ +https://github.com/blampe/Testify/commit/c1e159fe0e668a1ee56b0b1b2858c0a0becf20a0 +https://github.com/Yelp/Testify/issues/65 + +--- a/test/plugins/http_reporter_test.py ++++ b/test/plugins/http_reporter_test.py +@@ -39,7 +39,7 @@ + app = tornado.web.Application([(r"/results", ResultsHandler)]) + srv = tornado.httpserver.HTTPServer(app) + srv.listen(0) +- portnum = srv._socket.getsockname()[1] ++ portnum = self.get_port_number(srv) + + iol = tornado.ioloop.IOLoop.instance() + thread = threading.Thread(target=iol.start) +@@ -53,6 +53,14 @@ + iol.stop() + thread.join() + ++ def get_port_number(self, server): ++ ++ if hasattr(server, "_sockets"): # tornado > 2.0 ++ _socket = server._sockets.values()[0] ++ else: # tornado 1.2 or earlier ++ _socket = server._socket ++ return _socket.getsockname()[1] ++ + def test_http_reporter_reports(self): + """A simple test to make sure the HTTPReporter actually reports things.""" + +@@ -74,4 +82,4 @@ + (first, second) = self.results_reported + + assert_equal(first['runner_id'], 'tries_twice') +- assert_equal(first, second) +\ Brak znaku nowej linii na końcu pliku ++ assert_equal(first, second) diff --git a/dev-python/testify/metadata.xml b/dev-python/testify/metadata.xml new file mode 100644 index 000000000000..301d2207cc29 --- /dev/null +++ b/dev-python/testify/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> +</pkgmetadata> diff --git a/dev-python/testify/testify-0.2.6.ebuild b/dev-python/testify/testify-0.2.6.ebuild new file mode 100644 index 000000000000..150fc75e185c --- /dev/null +++ b/dev-python/testify/testify-0.2.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/testify/testify-0.2.6.ebuild,v 1.1 2012/05/18 13:37:40 xarthisius Exp $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS=1 +# TODO: verify 2.5 +RESTRICT_PYTHON_ABIS="2.5 3.* 2.7-pypy-*" + +inherit eutils distutils vcs-snapshot + +DESCRIPTION="An sqlite-backed dictionary" +HOMEPAGE="https://github.com/Yelp/testify http://pypi.python.org/pypi/testify/" +SRC_URI="https://github.com/Yelp/${PN}/tarball/${PV} -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="dev-python/pyyaml + dev-python/sqlalchemy + www-servers/tornado + || ( dev-lang/python:2.7 dev-lang/python:2.6 dev-python/simplejson )" +DEPEND="dev-python/setuptools + test? ( ${RDEPEND} )" + +#DOCS="README.txt" + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}"/${P}-tests.patch +} + +src_test() { + testing() { + PYTHONPATH="build-${PYTHON_ABI}/lib/" "$(PYTHON)" bin/${PN} test + } + python_execute_function testing +} |