diff options
Diffstat (limited to 'libpathod')
-rw-r--r-- | libpathod/app.py | 11 | ||||
-rw-r--r-- | libpathod/templates/index.html | 2 | ||||
-rw-r--r-- | libpathod/version.py | 8 |
3 files changed, 16 insertions, 5 deletions
diff --git a/libpathod/app.py b/libpathod/app.py index 1910e80e..d23d26a0 100644 --- a/libpathod/app.py +++ b/libpathod/app.py @@ -1,4 +1,6 @@ -import logging, pprint, cStringIO +import logging +import pprint +import cStringIO from flask import Flask, jsonify, render_template, request, abort, make_response import version, language, utils from netlib import http_uastrings @@ -39,7 +41,12 @@ def make_app(noapi): @app.route('/') @app.route('/index.html') def index(): - return render("index.html", True, section="main") + return render( + "index.html", + True, + section="main", + version=version.VERSION + ) @app.route('/download') @app.route('/download.html') diff --git a/libpathod/templates/index.html b/libpathod/templates/index.html index 5e4bd842..337f361c 100644 --- a/libpathod/templates/index.html +++ b/libpathod/templates/index.html @@ -56,7 +56,7 @@ <h2>source</h2> <ul> - <li>Current release: <a href="http://mitmproxy.org/download/pathod-0.9.2.tar.gz">pathod 0.9.2</a></li> + <li>Current release: <a href="http://mitmproxy.org/download/pathod-{{version}}.tar.gz">pathod {{version}}</a></li> <li>GitHub: <a href="http://github.com/mitmproxy/pathod">github.com/cortesi/pathod</a></li> </li> diff --git a/libpathod/version.py b/libpathod/version.py index ad539392..5f7675e2 100644 --- a/libpathod/version.py +++ b/libpathod/version.py @@ -1,5 +1,9 @@ -IVERSION = (0, 11) +IVERSION = (0, 11, 1) VERSION = ".".join(str(i) for i in IVERSION) MINORVERSION = ".".join(str(i) for i in IVERSION[:2]) NAME = "pathod" -NAMEVERSION = NAME + " " + VERSION
\ No newline at end of file +NAMEVERSION = NAME + " " + VERSION + +NEXT_MINORVERSION = list(IVERSION) +NEXT_MINORVERSION[1] += 1 +NEXT_MINORVERSION = ".".join(str(i) for i in NEXT_MINORVERSION[:2]) |