From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8D1A8138334 for ; Sun, 1 Dec 2019 19:27:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C8161E086F; Sun, 1 Dec 2019 19:27:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3694E0867 for ; Sun, 1 Dec 2019 19:27:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3510234D672 for ; Sun, 1 Dec 2019 19:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 211B08C8 for ; Sun, 1 Dec 2019 19:27:34 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1575228300.c402d39ea0c39abcb27f01b965b011e9005ff54b.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flask-script/files/, dev-python/flask-script/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/flask-script/files/flask-script-2.0.6-flask_script-everywhere.patch dev-python/flask-script/flask-script-2.0.6.ebuild X-VCS-Directories: dev-python/flask-script/files/ dev-python/flask-script/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: c402d39ea0c39abcb27f01b965b011e9005ff54b X-VCS-Branch: master Date: Sun, 1 Dec 2019 19:27:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a75ca069-0bc1-4103-bc65-52d9a57b6708 X-Archives-Hash: b3626ac4484618dcf8d8c9dd9e7fc82c commit: c402d39ea0c39abcb27f01b965b011e9005ff54b Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Nov 30 12:53:23 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Dec 1 19:25:00 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c402d39e dev-python/flask-script: Add patch from Debian for flask_script usage Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Andreas Sturmlechner gentoo.org> ...lask-script-2.0.6-flask_script-everywhere.patch | 54 ++++++++++++++++++++++ dev-python/flask-script/flask-script-2.0.6.ebuild | 2 + 2 files changed, 56 insertions(+) diff --git a/dev-python/flask-script/files/flask-script-2.0.6-flask_script-everywhere.patch b/dev-python/flask-script/files/flask-script-2.0.6-flask_script-everywhere.patch new file mode 100644 index 00000000000..b10b2f0a228 --- /dev/null +++ b/dev-python/flask-script/files/flask-script-2.0.6-flask_script-everywhere.patch @@ -0,0 +1,54 @@ +From fcf894b6e4d0ad17489480b722c870aaea600db1 Mon Sep 17 00:00:00 2001 +From: anthraxx +Date: Wed, 6 Sep 2017 12:03:22 +0200 +Subject: [PATCH] using flask_script everywhere instead of flask.ext.script + +--- + docs/index.rst | 2 +- + examples/manage.py | 4 ++-- + tests.py | 4 ++-- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/docs/index.rst b/docs/index.rst +index 775ffca..9266d4b 100644 +--- a/docs/index.rst ++++ b/docs/index.rst +@@ -577,7 +577,7 @@ Then the user can register the sub-manager to their primary Manager (within mana + + manager = Manager(app) + +- from flask.ext.database import manager as database_manager ++ from flask_database import manager as database_manager + manager.add_command("database", database_manager) + + The commands will then be available:: +#diff --git a/examples/manage.py b/examples/manage.py +#index 5c0dc21..8129555 100755 +#--- a/examples/manage.py +#+++ b/examples/manage.py +#@@ -4,8 +4,8 @@ +# import pprint +# +# from flask import Flask, current_app +#-from flask.ext.script import Manager, prompt_choices, Server +#-from flask.ext.script.commands import ShowUrls, Clean +#+from flask_script import Manager, prompt_choices, Server +#+from flask_script.commands import ShowUrls, Clean +# +# +# def create_app(config=None): +diff --git a/tests.py b/tests.py +index 93d0071..24f3f15 100644 +--- a/tests.py ++++ b/tests.py +@@ -5,8 +5,8 @@ + import unittest + + from flask import Flask +-from flask.ext.script._compat import StringIO, text_type +-from flask.ext.script import Command, Manager, Option, prompt, prompt_bool, prompt_choices ++from flask_script._compat import StringIO, text_type ++from flask_script import Command, Manager, Option, prompt, prompt_bool, prompt_choices + + from pytest import raises + diff --git a/dev-python/flask-script/flask-script-2.0.6.ebuild b/dev-python/flask-script/flask-script-2.0.6.ebuild index 8510f9ee8f0..58fcc347ef3 100644 --- a/dev-python/flask-script/flask-script-2.0.6.ebuild +++ b/dev-python/flask-script/flask-script-2.0.6.ebuild @@ -28,6 +28,8 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}/${P}-flask_script-everywhere.patch" ) + python_compile_all() { use doc && emake -C docs html }