diff --git a/programming/language/python3/python3-flask-script/actions.py b/programming/language/python3/python3-flask-script/actions.py new file mode 100644 index 0000000000..cbcb8f4043 --- /dev/null +++ b/programming/language/python3/python3-flask-script/actions.py @@ -0,0 +1,13 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import pythonmodules + +def build(): + pythonmodules.compile(pyVer="3") + +def install(): + pythonmodules.install(pyVer="3") \ No newline at end of file diff --git a/programming/language/python3/python3-flask-script/files/Usingflask_scriptEverywhereInsteadOfflask.ext.script.patch b/programming/language/python3/python3-flask-script/files/Usingflask_scriptEverywhereInsteadOfflask.ext.script.patch new file mode 100644 index 0000000000..c4f7aa01f5 --- /dev/null +++ b/programming/language/python3/python3-flask-script/files/Usingflask_scriptEverywhereInsteadOfflask.ext.script.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/programming/language/python3/python3-flask-script/pspec.xml b/programming/language/python3/python3-flask-script/pspec.xml new file mode 100644 index 0000000000..2fbba4605e --- /dev/null +++ b/programming/language/python3/python3-flask-script/pspec.xml @@ -0,0 +1,48 @@ + + + + + python3-flask-script + https://github.com/smurfix/flask-script + + Blue Devil + bluedevil@sctzine.com + + programming.language.python3 + BSD + library + Flask extension to help writing external scripts for Flask applications. + A set of utilities for use with the Flask framework which provide decorators, classes and helpers for writing your own script commands. + https://github.com/smurfix/flask-script/archive/v2.0.6.tar.gz + + python3-setuptools + python3-devel + + + Usingflask_scriptEverywhereInsteadOfflask.ext.script.patch + + + + + python3-flask-script + Flask extension to help writing external scripts for Flask applications. + + python3-flask + python3 + + + /usr/lib/python3* + /usr/share/doc/python3-flask-script + + + + + + 2020-02-18 + 2.0.6 + First release. + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/programming/language/python3/python3-flask-script/translations.xml b/programming/language/python3/python3-flask-script/translations.xml new file mode 100644 index 0000000000..84fc13c1ac --- /dev/null +++ b/programming/language/python3/python3-flask-script/translations.xml @@ -0,0 +1,8 @@ + + + + python3-flask-script + Flask uygulamalarınız için harici betikler geliştirmenizi/yazmanızı sağlayan flask eklentisi. + python3-flask-script, flask uygulamalarınız için harici betikler geliştirmenizi/yazmanızı sağlayan flask eklentisi sağlar. + + \ No newline at end of file