-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·54 lines (45 loc) · 1.47 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Flask-Weirds
====================
Flask extension to create WEIRDS applications.
Typical use similar to the following sudo-code:
class ObjectModel(flask.ext.weirds.WeirdsDataModel):
def __init__(self, name):
self.name = find_magic_object(name)
def public_data(self):
return { 'name' : self.name}
app = flask.ext.weirds.FlaskWeirdsApp(__name__)
@app.route('/object/<name>')
def object(name):
return ObjectModel(name),
You may find similar bits of code in example, provided with this package,
weirdsexample.py.
"""
from flask_weirds.weirdsapp import SERVER_VERSION
from setuptools import setup
setup(
name='Flask-Weirds',
version=SERVER_VERSION,
license='BSD',
author='Dyn Inc',
author_email='[email protected]',
description='Flask extension to create WEIRDS applications.',
url='https://github.com/dyninc/flask-weirds',
long_description=__doc__,
packages=['flask_weirds'],
include_package_data=True,
zip_safe=False,
platforms='any',
install_requires=['Flask'],
classifiers=[
'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',
],
)