diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-python/flask-restful | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-python/flask-restful')
-rw-r--r-- | dev-python/flask-restful/Manifest | 3 | ||||
-rw-r--r-- | dev-python/flask-restful/files/flask-restful-0.3.8-werkzeug.patch | 41 | ||||
-rw-r--r-- | dev-python/flask-restful/flask-restful-0.3.8.ebuild | 42 |
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-python/flask-restful/Manifest b/dev-python/flask-restful/Manifest index 45caafe0000b..207e4d63cdeb 100644 --- a/dev-python/flask-restful/Manifest +++ b/dev-python/flask-restful/Manifest @@ -1,3 +1,6 @@ +AUX flask-restful-0.3.8-werkzeug.patch 1517 BLAKE2B fa895690ca771f1b4431c62baec0577554fca082418c2421eb8012be2e234699eab54f2690d237dbd490f536eae5fe0fdfd8fedad16fc60bd92351f66c93a7a4 SHA512 96db20a0850f37ebb90fad0964448783c3af8b9b8128709fc52d509f9b1edad72455330a09f81b4b766eea7b88f3b79fb01e112f1684be7776a8b3a78ab90a19 DIST flask-restful-0.3.7.tar.gz 114238 BLAKE2B ec960f060b3a1a36e538606d710a57e9d9fb3b1c2c1ee1874c5f7592e9ad8a9a2af4716f820f27ec1a9e55fcb0505ca711c6e045e6cb0ef8c9c64de339871710 SHA512 1d1d066dec5f39af3197b680f791d83df686602b703efe874ea0e81d7f3b65f605dbdb63f84fdd07e469c6824d52571e195ae70f58e1543b53f13a81e1cd8543 +DIST flask-restful-0.3.8.tar.gz 114588 BLAKE2B a18eac613300102bb5a5ca78cea1e6f81f3de21d8bd2e6c72f2f1a559e8b4228175cc7d372b68f131267cd8bc759e354e5782e527d1e992579210348cd2b78dd SHA512 15172114fcedc2f4286cf5f583d95e42c8c8ce6553f9a44e57124f2b1417bf9f094dcb5154a6933ebebc8022f39d4d7969d29d38576111f9d5b45f630b36a66c EBUILD flask-restful-0.3.7.ebuild 1201 BLAKE2B 4c1841cd167a50a4acf19023f59b1b9a808fe18c22fda015d51bb340db9492a905a782ac954437f43ad5510df3c538d7f3e3df9f11b679001c58d6dcc5d8dbe5 SHA512 14f52af657fc042315252fced1d376b1979900d6cf07eee517fbc0165e21b1a69000ae8826fc256e837016231adb08a7851d2b3afbc4a8fee2595acf3654c1a2 +EBUILD flask-restful-0.3.8.ebuild 989 BLAKE2B 200ddfa40bae21a02d360b20f0aa851352b93d4a9227adfae3e6397a58ab44af6aaeae2c6b5e7477cc41a3e5581ea02cc3d0155197ea392862a8eacd3e35c8a8 SHA512 46c585428e84aed32e856632fdae0b94295c5d3211e4d191ed43b122023e96c340d91d11f85973c19717fefdce782370e241c4f1faffefea1658555a14e8fe28 MISC metadata.xml 325 BLAKE2B 9c13e94c78d9f908263c1d775ca99b1425388b1fa75ab8a643c08ab1097338a6bf61d09a4a2518b896c44cb4f8b0d2ed5825f7e8b8ab70d53693a07e055f2c34 SHA512 4571c1bc5e8a1a103b024bc97538c1daab53f84fda86af428d9434365f6c3ceb43b5fd2ffa24abfb095ac1cea865f571d933472c0a6648899069b187b923e5c4 diff --git a/dev-python/flask-restful/files/flask-restful-0.3.8-werkzeug.patch b/dev-python/flask-restful/files/flask-restful-0.3.8-werkzeug.patch new file mode 100644 index 000000000000..32b0b7b2b460 --- /dev/null +++ b/dev-python/flask-restful/files/flask-restful-0.3.8-werkzeug.patch @@ -0,0 +1,41 @@ +From 73376a488907af3042b52678ac4c23f8a8911e5b Mon Sep 17 00:00:00 2001 +From: Anthony Sottile <asottile@umich.edu> +Date: Fri, 7 Feb 2020 11:06:15 -0800 +Subject: [PATCH] Fix testsuite for werkzeug 1.x (#862) + +--- + tests/test_api.py | 4 +++- + tests/test_reqparse.py | 4 ++-- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/tests/test_api.py b/tests/test_api.py +index f7f8e661..6795d362 100644 +--- a/tests/test_api.py ++++ b/tests/test_api.py +@@ -445,7 +445,9 @@ def test_handle_non_api_error(self): + + resp = app.get("/foo") + self.assertEquals(resp.status_code, 404) +- self.assertEquals('text/html', resp.headers['Content-Type']) ++ # in newer versions of werkzeug this is `text/html; charset=utf8` ++ content_type, _, _ = resp.headers['Content-Type'].partition(';') ++ self.assertEquals('text/html', content_type) + + def test_non_api_error_404_catchall(self): + app = Flask(__name__) +diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py +index 2f1fbedf..9776f17c 100644 +--- a/tests/test_reqparse.py ++++ b/tests/test_reqparse.py +@@ -2,9 +2,9 @@ + import unittest + from mock import Mock, patch + from flask import Flask +-from werkzeug import exceptions, MultiDict ++from werkzeug import exceptions + from werkzeug.wrappers import Request +-from werkzeug.datastructures import FileStorage ++from werkzeug.datastructures import FileStorage, MultiDict + from flask_restful.reqparse import Argument, RequestParser, Namespace + import six + import decimal diff --git a/dev-python/flask-restful/flask-restful-0.3.8.ebuild b/dev-python/flask-restful/flask-restful-0.3.8.ebuild new file mode 100644 index 000000000000..6c63dc0f5957 --- /dev/null +++ b/dev-python/flask-restful/flask-restful-0.3.8.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Simple framework for creating REST APIs" +HOMEPAGE="https://flask-restful.readthedocs.io/en/latest/ https://github.com/twilio/flask-restful/" +SRC_URI="https://github.com/twilio/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="examples" + +RDEPEND=" + >=dev-python/aniso8601-0.82[${PYTHON_USEDEP}] + >=dev-python/flask-0.8[${PYTHON_USEDEP}] + >=dev-python/six-1.3.0[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] +" +DEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs +distutils_enable_tests nose + +PATCHES=( + "${FILESDIR}"/flask-restful-0.3.8-werkzeug.patch +) + +python_install_all() { + use examples && dodoc -r examples + local DOCS=( AUTHORS.md CHANGES.md CONTRIBUTING.md README.md ) + + distutils-r1_python_install_all +} |