summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2016-07-21 08:53:49 +0200
committerTiziano Müller <dev-zero@gentoo.org>2016-07-21 08:53:49 +0200
commitc773395abbffefe526dfa640324b19d57da1b77f (patch)
tree3019cf095811077f4b0095dd9f6a349c7b37320d /dev-python/flask-uploads
parentdev-python/flask: version bump to 0.11 (diff)
downloadgentoo-c773395abbffefe526dfa640324b19d57da1b77f.tar.gz
gentoo-c773395abbffefe526dfa640324b19d57da1b77f.tar.bz2
gentoo-c773395abbffefe526dfa640324b19d57da1b77f.zip
dev-python/flask-uploads: rev-bump for py-3.5 and EAPI-6, include patch for flask-0.11 compatibility
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-python/flask-uploads')
-rw-r--r--dev-python/flask-uploads/files/flask-uploads-0.2.0-remove-deprecated-module.patch23
-rw-r--r--dev-python/flask-uploads/flask-uploads-0.2.0-r1.ebuild30
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/flask-uploads/files/flask-uploads-0.2.0-remove-deprecated-module.patch b/dev-python/flask-uploads/files/flask-uploads-0.2.0-remove-deprecated-module.patch
new file mode 100644
index 000000000000..ea3fa46ff30e
--- /dev/null
+++ b/dev-python/flask-uploads/files/flask-uploads-0.2.0-remove-deprecated-module.patch
@@ -0,0 +1,23 @@
+From 0a4d2a9724ad7ac4e332f0016bd2027a5a8ad33e Mon Sep 17 00:00:00 2001
+From: Wojciech Kryscinski <wojciech.kryscinski@fornax.co>
+Date: Mon, 6 Jun 2016 12:17:05 +0000
+Subject: [PATCH] Removed Module from imports. It was deprecated and removed
+ from flask
+
+---
+ flask_uploads.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/flask_uploads.py b/flask_uploads.py
+index ebbc395..a10b72c 100644
+--- a/flask_uploads.py
++++ b/flask_uploads.py
+@@ -21,7 +21,7 @@
+ import os.path
+ import posixpath
+
+-from flask import current_app, Module, send_from_directory, abort, url_for
++from flask import current_app, send_from_directory, abort, url_for
+ from itertools import chain
+ from werkzeug import secure_filename, FileStorage
+
diff --git a/dev-python/flask-uploads/flask-uploads-0.2.0-r1.ebuild b/dev-python/flask-uploads/flask-uploads-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..1890cfc89d07
--- /dev/null
+++ b/dev-python/flask-uploads/flask-uploads-0.2.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Flexible and efficient upload handling for Flask"
+HOMEPAGE="http://pythonhosted.org/Flask-Testing/
+ https://pypi.python.org/pypi/Flask-Testing/"
+SRC_URI="https://github.com/maxcountryman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+# use the GitHub tarball since the pypi-tarball does not contain the tests
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/flask-0.5[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}/${P}-remove-deprecated-module.patch" )
+
+python_test() {
+ nosetests || die "Testing failed with ${EPYTHON}"
+}