forked from sh4nks/flask-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
77 lines (59 loc) · 1.88 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"""
Flask-Plugins
-------------
Flask-Plugins provides an easy way to create plugins for your
application. It is also possible to create Events which can than be used to
extend your application without the need to modify your core code.
And Easy to Setup
`````````````````
First you need to install it via:
.. code:: bash
$ pip install flask-plugins
and then you need to initialize it somewhere in your code.
.. code:: python
from flask.ext.plugins import PluginManager
plugin_manager = PluginManager(app)
It also supports the factory pattern for creating your app.
.. code:: python
from flask.ext.plugins import PluginManager
plugin_manager = PluginManager()
plugin_manager.init_app(app)
Resources
`````````
* `source <https://github.com/sh4nks/flask-plugins>`_
* `docs <https://flask-plugins.readthedocs.org/en/latest>`_
* `issues <https://github.com/sh4nks/flask-plugins/issues>`_
"""
from setuptools import setup
setup(
name='Flask-Plugins',
version='1.5',
url='http://github.com/sh4nks/flask-plugins/',
license='BSD',
author='sh4nks',
author_email='sh4nks7@gmail.com',
description=
'A Extension that makes it possible to create plugins in Flask.',
long_description=__doc__,
packages=['flask_plugins'],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=[
'Flask>=0.6',
],
test_suite='nose.collector',
tests_require=[
'nose>=1.0',
],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)