diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2020-02-10 13:52:13 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2020-02-10 13:52:13 +0300 |
commit | 4d8650fbba60fddbc332c3764314099bab557500 (patch) | |
tree | a7a06181d256bc1189134033824bcbcf25eda09d /dev-python/flask/files | |
parent | www-apps/octoprint: Fix deps (diff) | |
download | alexxy-4d8650fbba60fddbc332c3764314099bab557500.tar.gz alexxy-4d8650fbba60fddbc332c3764314099bab557500.tar.bz2 alexxy-4d8650fbba60fddbc332c3764314099bab557500.zip |
dev-python: drop old flask
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-python/flask/files')
-rw-r--r-- | dev-python/flask/files/flask-0.10.1-is_package.patch | 13 | ||||
-rw-r--r-- | dev-python/flask/files/flask-0.10.1-sort_json.patch | 54 | ||||
-rw-r--r-- | dev-python/flask/files/flask-0.10.1-test_appcontext.patch | 14 |
3 files changed, 0 insertions, 81 deletions
diff --git a/dev-python/flask/files/flask-0.10.1-is_package.patch b/dev-python/flask/files/flask-0.10.1-is_package.patch deleted file mode 100644 index 61f6a87..0000000 --- a/dev-python/flask/files/flask-0.10.1-is_package.patch +++ /dev/null @@ -1,13 +0,0 @@ -https://github.com/mitsuhiko/flask/issues/487 -diff -ur Flask-0.10.1.orig/flask/helpers.py Flask-0.10.1/flask/helpers.py ---- a/flask/helpers.py 2013-06-14 06:35:43.000000000 +0800 -+++ b/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) diff --git a/dev-python/flask/files/flask-0.10.1-sort_json.patch b/dev-python/flask/files/flask-0.10.1-sort_json.patch deleted file mode 100644 index e78cd0d..0000000 --- a/dev-python/flask/files/flask-0.10.1-sort_json.patch +++ /dev/null @@ -1,54 +0,0 @@ -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): - diff --git a/dev-python/flask/files/flask-0.10.1-test_appcontext.patch b/dev-python/flask/files/flask-0.10.1-test_appcontext.patch deleted file mode 100644 index 11dee7a..0000000 --- a/dev-python/flask/files/flask-0.10.1-test_appcontext.patch +++ /dev/null @@ -1,14 +0,0 @@ -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(): |