python3-flask-script:first pisi rel.
This commit is contained in:
@@ -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")
|
||||||
+54
@@ -0,0 +1,54 @@
|
|||||||
|
From fcf894b6e4d0ad17489480b722c870aaea600db1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: anthraxx <levente@leventepolyak.net>
|
||||||
|
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
|
||||||
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>python3-flask-script</Name>
|
||||||
|
<Homepage>https://github.com/smurfix/flask-script</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>Blue Devil</Name>
|
||||||
|
<Email>bluedevil@sctzine.com</Email>
|
||||||
|
</Packager>
|
||||||
|
<PartOf>programming.language.python3</PartOf>
|
||||||
|
<License>BSD</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<Summary>Flask extension to help writing external scripts for Flask applications.</Summary>
|
||||||
|
<Description>A set of utilities for use with the Flask framework which provide decorators, classes and helpers for writing your own script commands.</Description>
|
||||||
|
<Archive sha1sum="4c08d0e213bffc9574c975b943d872197bb56d83" type="targz">https://github.com/smurfix/flask-script/archive/v2.0.6.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>python3-setuptools</Dependency>
|
||||||
|
<Dependency>python3-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">Usingflask_scriptEverywhereInsteadOfflask.ext.script.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>python3-flask-script</Name>
|
||||||
|
<Summary>Flask extension to help writing external scripts for Flask applications.</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>python3-flask</Dependency>
|
||||||
|
<Dependency>python3</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib/python3*</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc/python3-flask-script</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2020-02-18</Date>
|
||||||
|
<Version>2.0.6</Version>
|
||||||
|
<Comment>First release.</Comment>
|
||||||
|
<Name>Blue Devil</Name>
|
||||||
|
<Email>bluedevil@sctzine.com</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>python3-flask-script</Name>
|
||||||
|
<Summary xml:lang="tr">Flask uygulamalarınız için harici betikler geliştirmenizi/yazmanızı sağlayan flask eklentisi.</Summary>
|
||||||
|
<Description xml:lang="tr">python3-flask-script, flask uygulamalarınız için harici betikler geliştirmenizi/yazmanızı sağlayan flask eklentisi sağlar.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user