dev-python/flask-uploads: rev-bump for py-3.5 and EAPI-6, include patch for flask...
authorTiziano Müller <dev-zero@gentoo.org>
Thu, 21 Jul 2016 06:53:49 +0000 (08:53 +0200)
committerTiziano Müller <dev-zero@gentoo.org>
Thu, 21 Jul 2016 06:53:49 +0000 (08:53 +0200)
Package-Manager: portage-2.3.0_rc1

dev-python/flask-uploads/files/flask-uploads-0.2.0-remove-deprecated-module.patch [new file with mode: 0644]
dev-python/flask-uploads/flask-uploads-0.2.0-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..ea3fa46
--- /dev/null
@@ -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 (file)
index 0000000..1890cfc
--- /dev/null
@@ -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}"
+}