-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (33 loc) · 1.17 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
import time, re, json, requests, os, sys
import pystache
from distutils.core import setup
from flask import Flask, request, render_template
from ConfigParser import ConfigParser
from lxml import etree
from datetime import datetime
from lib import ( get_bbox, getstate, getosc, point_in_box, point_in_poly,
getaddresstags, hasaddresschange, loadChangeset, addchangeset, html_summary_tmpl, html_headers_tmpl, html_changes_tmpl, text_summary_tmpl,text_headers_tmpl, text_changes_tmpl
)
setup(name='OSM Smoky',
version='1.0',
description='Change edits in OSM',
author='Katrina Engelsted',
author_email='[email protected]',
url='http://www.great-smoky-mtns.herokuapp.com/'
)
dir_path = os.path.dirname(os.path.abspath(__file__))
app = Flask(__name__)
app.config.update(dict(
))
app.config.from_envvar('APP_SETTINGS', silent=True)
# loads configs and grabs configs from environment variable
# if __name__ == '__main__':
# app.run()
@app.route('/')
def index():
return render_template('index.html')
@app.route('/report/osm_change_report<path:report_id>')
def show():
return 'Report %d' % report_id
if __name__ == '__main__':
app.run()