remove Flask from requirements

This commit is contained in:
j 2014-08-09 19:09:48 +02:00
parent 7bd6181e06
commit 496ebff888
2 changed files with 1 additions and 8 deletions

View file

@ -7,7 +7,6 @@ import sys
from tornado.web import Application from tornado.web import Application
from tornado.httpserver import HTTPServer from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop from tornado.ioloop import IOLoop
from flask import Flask
import oxtornado import oxtornado
from oxtornado import actions from oxtornado import actions
@ -65,10 +64,9 @@ def run():
options = { options = {
'debug': True 'debug': True
} }
app = Flask('metaoml')
handlers = [ handlers = [
(r'/api/', oxtornado.ApiHandler, dict(app=app)), (r'/api/', oxtornado.ApiHandler),
] ]
http_server = HTTPServer(Application(handlers, **options)) http_server = HTTPServer(Application(handlers, **options))
@ -77,7 +75,6 @@ def run():
address = '' address = ''
http_server.listen(port, '') http_server.listen(port, '')
main = IOLoop.instance() main = IOLoop.instance()
if ':' in address: if ':' in address:

View file

@ -1,9 +1,5 @@
Twisted Twisted
simplejson simplejson
ed25519 ed25519
Flask==0.10.1
SQLAlchemy==0.9.4 SQLAlchemy==0.9.4
Flask-SQLAlchemy==1.0
Flask-Script==2.0.3
Flask-Migrate==1.2.0
pyopenssl>=0.13.1 pyopenssl>=0.13.1