summaryrefslogtreecommitdiff
path: root/dev-python/flask-themes
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-themes
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flask-themes')
-rw-r--r--dev-python/flask-themes/Manifest6
-rw-r--r--dev-python/flask-themes/files/fixtests.patch23
-rw-r--r--dev-python/flask-themes/flask-themes-0.1.3-r1.ebuild34
-rw-r--r--dev-python/flask-themes/metadata.xml11
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/flask-themes/Manifest b/dev-python/flask-themes/Manifest
new file mode 100644
index 000000000000..bb7db3a42067
--- /dev/null
+++ b/dev-python/flask-themes/Manifest
@@ -0,0 +1,6 @@
+AUX fixtests.patch 1036 SHA256 b63d6a26e0374403bd3014c82ba6a31bc0b178ee56f3199d9b6a2b6cff221bbd SHA512 a3ca31a2bde1539b0ae2a552952f8ef82f7979446eaf7874029d65362bb30151a396becef07f97c12bd5d3264696ee66f2213cd7b3a305bc7ff6faa628320575 WHIRLPOOL 97f47ac8a812a0ae3d07a9b100c2c9cd1af5ed183e535fe2448468cff83523a678cba657fe6b1a2417457f37b470954dd8d007a8cd7f5a809245619a02d38a45
+DIST Flask-Themes-0.1.3.tar.gz 9723 SHA256 0586fdd29a4ccfaa37effc92652a3fe50c6a37d929493d5ab7b4b747be08d9fc SHA512 baf609b8b08446dda5b5d6d39bc0a2e7406f9270d70924c795243384be8967c82f82adcebe5e060352a0c33b763d600eeb5600d3116c10bdbbb3ceddfadf764a WHIRLPOOL 7c77e4ce39d3c9e1ac9f4fb5d3fe9b3bea71a71a2619e11a0bcbd413bd9215606f1beb76ca27dcbebd2dfefcfe835c84eb2a0bfc337a17ee9aa021edad75aeab
+EBUILD flask-themes-0.1.3-r1.ebuild 909 SHA256 d0624f717e32f335cf73cdf6e303e4aba9f955629c2685b014a1fd02e7db27da SHA512 82c5c355d1ab2af8c6007c2c83133fcbe78a64ada1b0038e8fbdbcf7cb22968777e10369a8449e3f267b75d846181db96307e9a7dafd14b8fa4a8b87f767f6f1 WHIRLPOOL f1d787279fa9ed41ad22c7d3f3736f0daddafa1411cb2cea38650858a05134e4b95aad2b67fa12782c775a676a32a9b8db4e138e5fc334a71098c03a2e34627c
+MISC ChangeLog 2760 SHA256 6dadf370555203bc09d0641e65bb42893a6f69913cc1ae3eac28ef4fa35fa382 SHA512 5eba43ce604169d2ba0e3d6315f7ee6a03be511d83136b812ebb31f358550eaef7748de969e6a3303b101c2c693c19c56c85e69c8d1a4898e6aca2b3899e8463 WHIRLPOOL fe58756ff95f55a98a165183eaa0239655b7b09639f04e554cdfd0df157e05cf914f37d081b11df939542e16a60187829a2f1239ac4bf1ee40f963fb9dd17a48
+MISC ChangeLog-2015 1663 SHA256 2bffbf57b3850c50ded693abe6dfd49262f93d4dea81052707850b4a5c5850c6 SHA512 f06f81296b390afddcb9771eae8552f8ecd936e00c5101b764a6999e689c214fc4d03800593d2068c1c9bc35650322bd8a3327e300962d4a02662b101e426baf WHIRLPOOL e8d343c91be0913ab9499650fc47cab881d8b4237dcb5e81fd1fd1d8ece45290eb42a34d68d1ed8af1e85f025fc1af1a53ce18151344296c0537494d6667ff4c
+MISC metadata.xml 315 SHA256 5ac5979e1025700f10787bc245468fec74ed70c3e443e569ed1f5ce94339e7b4 SHA512 87b5e27ef6869c29956604c891a2f8fa0a945817de4642aae7bd735c798cd08c3f1d26196b03ae7db52a83060af468df311e51d95a9a460b2882b4604e05fcd1 WHIRLPOOL 3b2f2f7139e9ffd8dd3d4ac2ddf0a8f344b143172468705ac9d3d0c52e996899bc7fca56bc59be8edfc3b6f794056dea2da9b29334f6e622356abc404c7dc98d
diff --git a/dev-python/flask-themes/files/fixtests.patch b/dev-python/flask-themes/files/fixtests.patch
new file mode 100644
index 000000000000..014508e4ddd2
--- /dev/null
+++ b/dev-python/flask-themes/files/fixtests.patch
@@ -0,0 +1,23 @@
+diff -ur Flask-Themes-0.1.3.orig/tests/test-themes.py Flask-Themes-0.1.3/tests/test-themes.py
+--- tests/test-themes.py 2011-07-14 06:36:33.000000000 +0800
++++ tests/test-themes.py 2013-06-10 18:20:25.901480529 +0800
+@@ -129,8 +129,8 @@
+
+ with app.test_request_context('/'):
+ assert template_exists('hello.html')
+- assert template_exists('_themes/cool/hello.html')
+- assert not template_exists('_themes/plain/hello.html')
++ assert template_exists('cool/hello.html')
++ assert not template_exists('themes/plain/hello.html')
+
+ def test_loader(self):
+ app = Flask(__name__)
+@@ -140,7 +140,7 @@
+ with app.test_request_context('/'):
+ if USING_BLUEPRINTS:
+ src = themes_blueprint.jinja_loader.get_source(
+- app.jinja_env, '_themes/cool/hello.html'
++ app.jinja_env, 'cool/hello.html'
+ )
+ else:
+ src = themes_mod.jinja_loader.get_source(
diff --git a/dev-python/flask-themes/flask-themes-0.1.3-r1.ebuild b/dev-python/flask-themes/flask-themes-0.1.3-r1.ebuild
new file mode 100644
index 000000000000..c1d538f3f5ac
--- /dev/null
+++ b/dev-python/flask-themes/flask-themes-0.1.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+MY_PN="Flask-Themes"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Infrastructure for theming support in Flask applications"
+HOMEPAGE="http://packages.python.org/Flask-Themes/ https://pypi.python.org/pypi/Flask-Themes"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-python/flask-0.6[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/fixtests.patch )
+
+python_test() {
+ # suite fails miserably under py3. Cannot even find upstream repo to file. pypi.org does NOT help
+ if ! python_is_python3; then
+ PYTHONPATH=.:tests nosetests || die "Tests failed under ${EPYTHON}"
+ fi
+}
diff --git a/dev-python/flask-themes/metadata.xml b/dev-python/flask-themes/metadata.xml
new file mode 100644
index 000000000000..646bcdf7ccef
--- /dev/null
+++ b/dev-python/flask-themes/metadata.xml
@@ -0,0 +1,11 @@
+<?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-Themes</remote-id>
+ </upstream>
+</pkgmetadata>