From b917b61e6aead4f353ef15838315ecc0df721e29 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 11 Nov 2014 12:28:08 +0100 Subject: be more explicit about requirements --- libpathod/version.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libpathod') diff --git a/libpathod/version.py b/libpathod/version.py index ad539392..7022c843 100644 --- a/libpathod/version.py +++ b/libpathod/version.py @@ -2,4 +2,8 @@ IVERSION = (0, 11) 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]) \ No newline at end of file -- cgit v1.2.3 From 1b41b9bb9b12a4ac3ce56f6c3abe3bbbf4e7bfa4 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 15 Nov 2014 12:41:44 +1300 Subject: Use current version for download links Fixes #19 --- libpathod/app.py | 11 +++++++++-- libpathod/templates/index.html | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'libpathod') 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 @@

source