Commit 6e59541c authored by iv's avatar iv

Add flask + dependencies.

Ebuilds are from: https://packages.gentoo.org/ (original)
Modifications change support for single Python version so that python-exec is not used.
parent 80250e58
Custom ebuild needed for NayuOS and added to the existing overlays. Custom ebuild needed for NayuOS and added to the existing overlays.
# Existing ebuilds original sources # re6st
## net-libs/miniupnpc ## Existing ebuilds original sources
### net-libs/miniupnpc
Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-libs/miniupnpc/miniupnpc-1.8.ebuild Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/net-libs/miniupnpc/miniupnpc-1.8.ebuild
## dev-python/miniupnpc ### dev-python/miniupnpc
Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/miniupnpc/miniupnpc-1.8.ebuild Source: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/miniupnpc/miniupnpc-1.8.ebuild
## net-misc/babeld-re6stnet ### net-misc/babeld-re6stnet
Original: http://data.gpo.zugaina.org/eigenlay/net-misc/babeld/babeld-9999.ebuild (modified) Original: http://data.gpo.zugaina.org/eigenlay/net-misc/babeld/babeld-9999.ebuild (modified)
# Home-made ebuilds ## Home-made ebuilds
## net-misc/re6stnet ### net-misc/re6stnet
# flask
## Existing ebuilds original sources
### blinker
Original: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/blinker/blinker-1.4.ebuild
### itsdangerous
Original: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/itsdangerous/itsdangerous-0.24.ebuild
### werkzeug
Original: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/werkzeug/werkzeug-0.10.1.ebuild
### flask
Original: https://gitweb.gentoo.org/repo/gentoo.git/plain/dev-python/flask/flask-0.10.1-r2.ebuild
\ No newline at end of file
DIST blinker-1.4.tar.gz 111476 SHA256 471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6 SHA512 2f5f71b05c7cc27f5761ba698b05c78c8a491f5285c120e532d24be0c8256daa14e075f3f30e15fb18e7c3f16579af9378a155d058f170e3af9ffdb89e49f56e WHIRLPOOL f9554c6476310c82d8e66cea7d57297478373543b894ba8993bd3b390078ccc0b997eaa4ddfc849acfdf7687be3e61ce89303161a4117dcd02f9363440c4cf6a
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="Fast, simple object-to-object and broadcast signaling"
HOMEPAGE="http://discorporate.us/projects/Blinker/ https://pypi.python.org/pypi/blinker"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm ppc ppc64 x86 amd64-linux x86-linux"
IUSE="doc test"
DEPEND="test? ( dev-python/nose[${PYTHON_USEDEP}] )"
python_test() {
nosetests || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
distutils-r1_python_install_all
if use doc; then
pushd docs/html > /dev/null
insinto /usr/share/doc/${PF}/html
doins -r [a-z]* _static
popd > /dev/null
fi
}
DIST Flask-0.10.1.tar.gz 544247 SHA256 4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373 SHA512 0008d62d03a46b071c7d0510513d011a9bfd2b77df7f677371a446ca9805d16b1ee5e17dd8dd7cde6443a629370234e44735e20381de20a7da385969797f053f WHIRLPOOL f30a306ed00fe6d4c8e47b781c556c576b99b3545f833ae06f6b778d91c3127dc0adcc34d48221a0f1db1bb1633f2329d6085b7a4550afc672530525fdff474f
https://github.com/mitsuhiko/flask/issues/487
diff -ur Flask-0.10.1.orig/flask/helpers.py Flask-0.10.1/flask/helpers.py
--- flask/helpers.py 2013-06-14 06:35:43.000000000 +0800
+++ flask/helpers.py 2013-08-16 16:18:36.194006290 +0800
@@ -679,7 +679,7 @@
filename = sys.modules[import_name].__file__
package_path = os.path.abspath(os.path.dirname(filename))
# package_path ends with __init__.py for a package
- if loader.is_package(root_mod_name):
+ if package_path.endswith('__init__.py'):
package_path = os.path.dirname(package_path)
site_parent, site_folder = os.path.split(package_path)
https://github.com/mitsuhiko/flask/commit/a2bc61b5ab19e899735f8945f68123b4cea570d5
diff --git a/flask/testsuite/helpers.py b/flask/testsuite/helpers.py
index 636f67f..7de70c0 100644
--- a/flask/testsuite/helpers.py
+++ b/flask/testsuite/helpers.py
@@ -173,7 +173,33 @@ def index():
c = app.test_client()
rv = c.get('/')
lines = [x.strip() for x in rv.data.strip().decode('utf-8').splitlines()]
- self.assert_equal(lines, [
+ sorted_by_str = [
+ '{',
+ '"values": {',
+ '"0": "foo",',
+ '"1": "foo",',
+ '"10": "foo",',
+ '"11": "foo",',
+ '"12": "foo",',
+ '"13": "foo",',
+ '"14": "foo",',
+ '"15": "foo",',
+ '"16": "foo",',
+ '"17": "foo",',
+ '"18": "foo",',
+ '"19": "foo",',
+ '"2": "foo",',
+ '"3": "foo",',
+ '"4": "foo",',
+ '"5": "foo",',
+ '"6": "foo",',
+ '"7": "foo",',
+ '"8": "foo",',
+ '"9": "foo"',
+ '}',
+ '}'
+ ]
+ sorted_by_int = [
'{',
'"values": {',
'"0": "foo",',
@@ -198,8 +224,12 @@ def index():
'"19": "foo"',
'}',
'}'
- ])
+ ]
+ try:
+ self.assert_equal(lines, sorted_by_int)
+ except AssertionError:
+ self.assert_equal(lines, sorted_by_str)
class SendfileTestCase(FlaskTestCase):
https://github.com/mitsuhiko/flask/commit/f88cc2d2f9d14d97e33ddd2bbaa4b1885db06e1c.
diff --git a/flask/testsuite/signals.py b/flask/testsuite/signals.py
index e061932..45ca45d 100644
--- a/flask/testsuite/signals.py
+++ b/flask/testsuite/signals.py
@@ -102,7 +102,7 @@ def test_appcontext_signals(self):
def record_push(sender, **kwargs):
recorded.append('push')
def record_pop(sender, **kwargs):
- recorded.append('push')
+ recorded.append('pop')
@app.route('/')
def index():
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="A microframework based on Werkzeug, Jinja2 and good intentions"
MY_PN="Flask"
MY_P="${MY_PN}-${PV}"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz"
HOMEPAGE="http://flask.pocoo.org/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm ppc ppc64 x86 amd64-linux x86-linux"
IUSE="doc examples"
RDEPEND="dev-python/blinker[${PYTHON_USEDEP}]
>=dev-python/itsdangerous-0.21[${PYTHON_USEDEP}]
>=dev-python/jinja-2.4[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/werkzeug-0.7[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}"
# Usual; test phase
DISTUTILS_IN_SOURCE_BUILD=1
S="${WORKDIR}/${MY_P}"
PATCHES=( "${FILESDIR}"/${P}-is_package.patch
"${FILESDIR}"/${P}-sort_json.patch
"${FILESDIR}"/${P}-test_appcontext.patch )
python_prepare_all() {
# Prevent un-needed d'loading
sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die
distutils-r1_python_prepare_all
}
python_compile_all() {
use doc && emake -C docs html
}
python_test() {
"${PYTHON}" run-tests.py || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
use examples && local EXAMPLES=( examples/. )
use doc && HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}
DIST itsdangerous-0.24.tar.gz 46541 SHA256 cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519 SHA512 2863b6e5fda178db59bd214c6d24d04422c1021bb41bf11598aba1cbc43053aff3bb1e0539940b5769de04b68c03e8bd01d728dcbfc4bd0ba05867688574a297 WHIRLPOOL 44338b9c489506b972c33bafa1437042c17f452e65095d3b7dc85bf1cbfa26fcc45b097a7e899ae5ccfa4e3727e9c0ea285e254f6318c74a61217da910a63a83
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="Various helpers to pass trusted data to untrusted environments and back"
HOMEPAGE="http://pythonhosted.org/itsdangerous/ https://pypi.python.org/pypi/itsdangerous"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
# Required for running tests.py
DISTUTILS_IN_SOURCE_BUILD=1
python_test() {
if python_is_python3; then
2to3 -f unicode -nw --no-diffs tests.py
fi
"${PYTHON}" tests.py || die "Tests failed under ${EPYTHON}"
}
\ No newline at end of file
DIST Werkzeug-0.9.6.tar.gz 1128428 SHA256 7f11e7e2e73eb22677cac1b11113eb6106f66cedef13d140e83cf6563c90b79c SHA512 0b36df25d5f69a0353f7a9321b9197ace2926b6d8e983a91ef372c270ff51462f7d86184447a5f74b4ad05ffdc6411098f77b45a4f1c906dd525d7edf220399c WHIRLPOOL db153036e9dc36c70239001a6b451adeaafa3819f4903bb8c297bb4313c9a064926a2aad6e4457810b53796b3e492228a9ee1ec165fe5dce0522ab0d2c7407f9
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
MY_PN="Werkzeug"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Collection of various utilities for WSGI applications"
HOMEPAGE="http://werkzeug.pocoo.org/ https://pypi.python.org/pypi/Werkzeug"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ~ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
RDEPEND="dev-python/simplejson[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
S="${WORKDIR}/${MY_P}"
python_test() {
esetup.py test
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment