1 |
commit: 81e3a9d4511fb09cf39ee65577bc511b09eb0435 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 24 07:58:16 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 24 08:00:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81e3a9d4 |
7 |
|
8 |
dev-python/flask-restful: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/flask-restful/Manifest | 1 - |
13 |
.../files/flask-restful-0.3.8-werkzeug.patch | 41 -------------------- |
14 |
.../flask-restful/flask-restful-0.3.8.ebuild | 45 ---------------------- |
15 |
3 files changed, 87 deletions(-) |
16 |
|
17 |
diff --git a/dev-python/flask-restful/Manifest b/dev-python/flask-restful/Manifest |
18 |
index 3766d56af29..fb2a8dc5a1f 100644 |
19 |
--- a/dev-python/flask-restful/Manifest |
20 |
+++ b/dev-python/flask-restful/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST flask-restful-0.3.8.tar.gz 114588 BLAKE2B a18eac613300102bb5a5ca78cea1e6f81f3de21d8bd2e6c72f2f1a559e8b4228175cc7d372b68f131267cd8bc759e354e5782e527d1e992579210348cd2b78dd SHA512 15172114fcedc2f4286cf5f583d95e42c8c8ce6553f9a44e57124f2b1417bf9f094dcb5154a6933ebebc8022f39d4d7969d29d38576111f9d5b45f630b36a66c |
23 |
DIST flask-restful-0.3.9.gh.tar.gz 118195 BLAKE2B a4f18c3faf06a7c9b628657aafbab4b9492793d9a61ab60a3e4d8112e0fb5e120cff2f2dae87915e44915838572ae0ca1737025ad5f906c2a953afc4b1f49c6f SHA512 34bea8ed6e9de3ad1c2ca63e7af67ed2a175f84c433b08ff643f91d88feda0e3c1c3967deb2fe5ad308b05f373b10c08245edf65ed97a7c5a3683aa900e9edf2 |
24 |
|
25 |
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 |
26 |
deleted file mode 100644 |
27 |
index 32b0b7b2b46..00000000000 |
28 |
--- a/dev-python/flask-restful/files/flask-restful-0.3.8-werkzeug.patch |
29 |
+++ /dev/null |
30 |
@@ -1,41 +0,0 @@ |
31 |
-From 73376a488907af3042b52678ac4c23f8a8911e5b Mon Sep 17 00:00:00 2001 |
32 |
-From: Anthony Sottile <asottile@×××××.edu> |
33 |
-Date: Fri, 7 Feb 2020 11:06:15 -0800 |
34 |
-Subject: [PATCH] Fix testsuite for werkzeug 1.x (#862) |
35 |
- |
36 |
---- |
37 |
- tests/test_api.py | 4 +++- |
38 |
- tests/test_reqparse.py | 4 ++-- |
39 |
- 2 files changed, 5 insertions(+), 3 deletions(-) |
40 |
- |
41 |
-diff --git a/tests/test_api.py b/tests/test_api.py |
42 |
-index f7f8e661..6795d362 100644 |
43 |
---- a/tests/test_api.py |
44 |
-+++ b/tests/test_api.py |
45 |
-@@ -445,7 +445,9 @@ def test_handle_non_api_error(self): |
46 |
- |
47 |
- resp = app.get("/foo") |
48 |
- self.assertEquals(resp.status_code, 404) |
49 |
-- self.assertEquals('text/html', resp.headers['Content-Type']) |
50 |
-+ # in newer versions of werkzeug this is `text/html; charset=utf8` |
51 |
-+ content_type, _, _ = resp.headers['Content-Type'].partition(';') |
52 |
-+ self.assertEquals('text/html', content_type) |
53 |
- |
54 |
- def test_non_api_error_404_catchall(self): |
55 |
- app = Flask(__name__) |
56 |
-diff --git a/tests/test_reqparse.py b/tests/test_reqparse.py |
57 |
-index 2f1fbedf..9776f17c 100644 |
58 |
---- a/tests/test_reqparse.py |
59 |
-+++ b/tests/test_reqparse.py |
60 |
-@@ -2,9 +2,9 @@ |
61 |
- import unittest |
62 |
- from mock import Mock, patch |
63 |
- from flask import Flask |
64 |
--from werkzeug import exceptions, MultiDict |
65 |
-+from werkzeug import exceptions |
66 |
- from werkzeug.wrappers import Request |
67 |
--from werkzeug.datastructures import FileStorage |
68 |
-+from werkzeug.datastructures import FileStorage, MultiDict |
69 |
- from flask_restful.reqparse import Argument, RequestParser, Namespace |
70 |
- import six |
71 |
- import decimal |
72 |
|
73 |
diff --git a/dev-python/flask-restful/flask-restful-0.3.8.ebuild b/dev-python/flask-restful/flask-restful-0.3.8.ebuild |
74 |
deleted file mode 100644 |
75 |
index eea5a35b47c..00000000000 |
76 |
--- a/dev-python/flask-restful/flask-restful-0.3.8.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,45 +0,0 @@ |
79 |
-# Copyright 1999-2021 Gentoo Authors |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
- |
82 |
-EAPI=7 |
83 |
- |
84 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
85 |
- |
86 |
-inherit distutils-r1 |
87 |
- |
88 |
-DESCRIPTION="Simple framework for creating REST APIs" |
89 |
-HOMEPAGE=" |
90 |
- https://flask-restful.readthedocs.io/en/latest/ |
91 |
- https://github.com/flask-restful/flask-restful/" |
92 |
-SRC_URI="https://github.com/flask-restful/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
93 |
- |
94 |
-LICENSE="BSD" |
95 |
-SLOT="0" |
96 |
-KEYWORDS="amd64 ~arm64 x86" |
97 |
-IUSE="examples" |
98 |
- |
99 |
-RDEPEND=" |
100 |
- >=dev-python/aniso8601-0.82[${PYTHON_USEDEP}] |
101 |
- >=dev-python/flask-0.8[${PYTHON_USEDEP}] |
102 |
- >=dev-python/six-1.3.0[${PYTHON_USEDEP}] |
103 |
- dev-python/pytz[${PYTHON_USEDEP}] |
104 |
-" |
105 |
-BDEPEND=" |
106 |
- test? ( |
107 |
- dev-python/mock[${PYTHON_USEDEP}] |
108 |
- ) |
109 |
-" |
110 |
- |
111 |
-PATCHES=( |
112 |
- "${FILESDIR}"/flask-restful-0.3.8-werkzeug.patch |
113 |
-) |
114 |
- |
115 |
-distutils_enable_sphinx docs |
116 |
-distutils_enable_tests nose |
117 |
- |
118 |
-python_install_all() { |
119 |
- use examples && dodoc -r examples |
120 |
- local DOCS=( AUTHORS.md CHANGES.md CONTRIBUTING.md README.md ) |
121 |
- |
122 |
- distutils-r1_python_install_all |
123 |
-} |