summaryrefslogtreecommitdiff
path: root/dev-python/flask-testing
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/flask-testing
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flask-testing')
-rw-r--r--dev-python/flask-testing/Manifest10
-rw-r--r--dev-python/flask-testing/files/0.4.2-test-fix.patch17
-rw-r--r--dev-python/flask-testing/flask-testing-0.4.2.ebuild35
-rw-r--r--dev-python/flask-testing/flask-testing-0.6.1.ebuild40
-rw-r--r--dev-python/flask-testing/flask-testing-0.6.2.ebuild40
-rw-r--r--dev-python/flask-testing/metadata.xml13
6 files changed, 155 insertions, 0 deletions
diff --git a/dev-python/flask-testing/Manifest b/dev-python/flask-testing/Manifest
new file mode 100644
index 000000000000..75c0949a26c9
--- /dev/null
+++ b/dev-python/flask-testing/Manifest
@@ -0,0 +1,10 @@
+AUX 0.4.2-test-fix.patch 652 SHA256 eee3b5cc4a27cbe5bd1a76c7dc49654faefb7f265025ba46271756a7dd07b939 SHA512 f6ae344e20cc707f4894fb5005f3aee4f903ddf9df604e8178b8b25ac6fada35d8d1150815ee573a84219349ded6762a92ba174b38a2e6479b4bc97a44299a19 WHIRLPOOL ebd44d789714198b5cbbdd6751abacecf0b8b5973029b4a3701db873fea4c972692c2d5b1021ad5d26ca224026858823b371954a9a37668aa0c3d5947420a96e
+DIST Flask-Testing-0.4.2.tar.gz 40994 SHA256 921c7c653e0d511ed87fbf70d984e27afea8dfa7e10b358689863d7a63e05321 SHA512 57f1a58f352637b6c1d4dc5aa8b3cac215eae334f355d40b6c777f9c5a769c745ce11f2a98818669ec2c29fc170fd86fe4670bb66bd4e4607174b21c5c2067e3 WHIRLPOOL a1fc0723660c25cb18ea5eb4c283c79eb379f2d8cee1bf8fda6ed8b10391cdf0080fa3e2e1ce6cdc50845548a5d9be3f4b20ef267c1350a14049adfbdcfa8e20
+DIST Flask-Testing-0.6.1.tar.gz 42541 SHA256 abf539332c013aee5301cbb720d2c6a78bb69fe9bcf854697b6f62f1e7f175b2 SHA512 f7a0a89885693f568e8e03a9ae689add3b9577517faa6b842bb6b990a2be447ecb9ccf693dd5279ca98dfcc8b18e2041fccf0cf36c28cea5fdc0dbdc9b64f065 WHIRLPOOL 456c7c834f3ed9806fd830f64873f43ac6707cdc195ac2e4c7ae9083987b967a8e2bc0250df1a5247f5512483b39272bf3a3bc53642180990b6269a619eb8b12
+DIST Flask-Testing-0.6.2.tar.gz 129078 SHA256 f25effd266fce9b16482f4ce3423d5a7d25534aab77bc83caace5d9637bf0df0 SHA512 1ce6a32f2c4e2d6d39c0bd2f01b8d20e2ee8faa5cb31d308bbcda2159f8307cc42f445e328a3752c3c3c66f4fffef75b400c70954b1aeb1aabab8a54c565b5ce WHIRLPOOL 3cdba18893defeac5728fdb6fed82555769cd93809fef873083876dceb75474133b2a58d3e8d0226b9ffaa13b939c9820a3b64a78768e8278e28ed9d940cf25d
+EBUILD flask-testing-0.4.2.ebuild 822 SHA256 0172c74f4cc0ef0a0559c54c328138c2fa0d90792f91bbfbadb30618a88695fe SHA512 3793afbd901b822d32ada763ecae3946f356824c4ff3472403e134fc370c69079689f456bf8c8d34edb2bf0a74888c720ae8123a64e3fd2403e0163687bbf536 WHIRLPOOL da3c4ecc2c26eb324bcfb8bb960685d975f62a1fd1e30f96123973ebe7b23733391dc42b766a448624d7c63e17513182b383a6c87d4e5d4af5fff0841b35d468
+EBUILD flask-testing-0.6.1.ebuild 1047 SHA256 e5e38f9c306ce2cdee974f3d9b98b9f25a629258b4f10118b2c497a4e75e6f24 SHA512 1e3c5d104a2254fb3f0bad15a70b2a69045403b7dc98f92593d85bda7eda154cbb242c42d1029c79390dcb7c711439e78d22ae9b2d5f7af7bb356dff6f592c71 WHIRLPOOL 3fb56062ca96ac2526951754f7bfa6e85cf397271c7b98866e1ac6a77cc767fc5b13f845974dfd3ef66cf143cf4c3affcfba4bd0bf7c7f0522c23c01fb83f033
+EBUILD flask-testing-0.6.2.ebuild 1047 SHA256 b5954dbdb69a01cbbb663522bd1010050213419dbcdd1225dc677a2f466fb9b3 SHA512 824b391798ce454d64e1ac737055d04444c21c282b6d11cfe162fe7c5c37f232d25ec8926fa16f415037aa46b1500d19a2498075aab428d354fd14e920a03eb0 WHIRLPOOL 5723199b046eb42a06eb8cb32fa95f63a0ba711b0d670dcdee0eac8275b19bf772a2ddebc9a4c73c3069889fecbac9dfa63cde74ecf9948ccc05c797acc3e1bd
+MISC ChangeLog 3217 SHA256 681c6ab89f94ce90e0d5bd76347da34ba289a4c80cdbf82f6db66d571fbf2f2d SHA512 fdb9f2ff8f1530ea654366292407963af2f6be68363a01f73313e33436307dd777c3e6f0e527a2b673b2170f119decbf818dc48535bd68b1798dd68340d9e03f WHIRLPOOL 4071c8c812504abf15ee09c5dea49686b4462c1159d6e1f61908cdb42c1f5e800fc0144e9e353ba3c6dd8a9af07f3fb8a132e39a9c447ff3d15c894360115167
+MISC ChangeLog-2015 1495 SHA256 a13dd2ad07473f46e4e45ec39fc79ca1f68313ecebb0e0d142c09f1115859ea8 SHA512 d8458d024b31cdb5e28dbcafa1d4a7d534877d35d8765abdddb990ed84af91050868d0edc2fb174fa117c180497dccb93a395327465c572fb4ac4a6e7d61d34c WHIRLPOOL 42ca6ecd951f45d2833bf8171a37731575cfda5fbded58c122dd845050b50620b2117303aceb62c91ee9b6cbded5ee1f8570efc5836e0fbe8a97cc5c7b4c6a18
+MISC metadata.xml 442 SHA256 157b429de4fcf14980441a396164049d7d43d984ef27d561f83df82024108657 SHA512 158bf4f1f2b1eae39a24a460f7d3343c2a8c044a125bb7052075ba6cf1a27310de9a20f647decccd5923c31f415dd957e99ab4c0f88a274d26ef7e07991d0ecc WHIRLPOOL 092b997e2a48801dbea03fbdf600597bf7793d1b3eef174743aadd993684f71ce4c01ccfb32e0af3e2060c7c61c1a07f02fb2e4082d8f62caa11589934ea773f
diff --git a/dev-python/flask-testing/files/0.4.2-test-fix.patch b/dev-python/flask-testing/files/0.4.2-test-fix.patch
new file mode 100644
index 000000000000..a0933e475afc
--- /dev/null
+++ b/dev-python/flask-testing/files/0.4.2-test-fix.patch
@@ -0,0 +1,17 @@
+https://github.com/jarus/flask-testing/commit/c969b41b31f60a5a8bacd44b3eb63d1642f2d8bf
+diff --git a/flask_testing/utils.py b/flask_testing/utils.py
+index add12ef..9b479df 100644
+--- a/flask_testing/utils.py
++++ b/flask_testing/utils.py
+@@ -143,8 +143,8 @@ def _post_teardown(self):
+
+ if _is_signals:
+ template_rendered.disconnect(self._add_template)
+- if hasattr(self, '_true_render'):
+- templating._render = self._true_render
++ if hasattr(self, '_original_template_render'):
++ templating._render = self._original_template_render
+
+ if self.run_gc_after_test:
+ gc.collect()
+
diff --git a/dev-python/flask-testing/flask-testing-0.4.2.ebuild b/dev-python/flask-testing/flask-testing-0.4.2.ebuild
new file mode 100644
index 000000000000..0e13068c0c20
--- /dev/null
+++ b/dev-python/flask-testing/flask-testing-0.4.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+MY_PN="Flask-Testing"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Unit testing for Flask"
+HOMEPAGE="http://pythonhosted.org/Flask-Testing/ https://pypi.python.org/pypi/Flask-Testing/"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/twill[${PYTHON_USEDEP}]' python2_7)"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/blinker[${PYTHON_USEDEP}]
+ )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${PV}-test-fix.patch )
+
+python_test() {
+ esetup.py test
+}
diff --git a/dev-python/flask-testing/flask-testing-0.6.1.ebuild b/dev-python/flask-testing/flask-testing-0.6.1.ebuild
new file mode 100644
index 000000000000..ef29e92c1d8a
--- /dev/null
+++ b/dev-python/flask-testing/flask-testing-0.6.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
+
+inherit distutils-r1
+
+MY_PN="Flask-Testing"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Unit testing for Flask"
+HOMEPAGE="http://pythonhosted.org/Flask-Testing/ https://pypi.python.org/pypi/Flask-Testing/"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/twill[${PYTHON_USEDEP}]' 'python2*')"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/blinker[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ local exclude
+ if $(python_is_python3); then
+ # Twill is not available on python-3
+ exclude="-e twill"
+ fi
+ # test phase appears to run only py2.7 but if it passes for py2.7 is passes for pypy
+ nosetests ${exclude} || die "Testing failed with ${EPYTHON}"
+}
diff --git a/dev-python/flask-testing/flask-testing-0.6.2.ebuild b/dev-python/flask-testing/flask-testing-0.6.2.ebuild
new file mode 100644
index 000000000000..29041a15206a
--- /dev/null
+++ b/dev-python/flask-testing/flask-testing-0.6.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
+
+inherit distutils-r1
+
+MY_PN="Flask-Testing"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Unit testing for Flask"
+HOMEPAGE="http://pythonhosted.org/Flask-Testing/ https://pypi.python.org/pypi/Flask-Testing/"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/twill[${PYTHON_USEDEP}]' 'python2*')"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/blinker[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ local exclude
+ if $(python_is_python3); then
+ # Twill is not available on python-3
+ exclude="-e twill"
+ fi
+ # test phase appears to run only py2.7 but if it passes for py2.7 is passes for pypy
+ nosetests ${exclude} || die "Testing failed with ${EPYTHON}"
+}
diff --git a/dev-python/flask-testing/metadata.xml b/dev-python/flask-testing/metadata.xml
new file mode 100644
index 000000000000..186145be8e10
--- /dev/null
+++ b/dev-python/flask-testing/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">Flask-Testing</remote-id>
+ <remote-id type="github">jarus/flask-testing</remote-id>
+ <bugs-to>https://github.com/jarus/flask-testing/issues</bugs-to>
+ </upstream>
+</pkgmetadata>