Klaus Demo ~jonashaag/klaus / a595fc6
Version 0.4.1 Jonas Haag 6 years ago
4 changed file(s) with 12 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
00 Changelog
11 =========
2
3 0.4.1 (Jan 17, 2014)
4 --------------------
5 * Bug #62: Include ``contrib/*`` in the distribution as ``klaus.contrib.*``.
26
37 0.4 (Jan 16, 2014)
48 ------------------
59 * NOTE TO CONTRIBUTORS -- HISTORY REWRITTEN: See 46bcec1a8e21d510f3af3c9e2d19bc388b20c753
6 * New autoreloader (see ``contrib/wsgi_autoreload.py``) WSGI middleware that
7 watches a directory for repository additions/deletions
10 * Moved ``klaus.wsgi`` to ``klaus.contrib.wsgi``
11 * New autoreloader (see ``klaus/contrib/wsgi_autoreload.py``) WSGI middleware
12 that watches a directory for repository additions/deletions
813 (i.e., no need to restart klaus anymore). Also see page in wiki.
914 (Jonas Haag)
1015 * Commit view:
6565 ^^^^^^^^^^^^^^^^^^^
6666 The ``klaus`` module contains a ``make_app`` function which returns a WSGI app.
6767
68 An example WSGI helper script is provided with klaus (see ``klaus/wsgi.py``),
68 An example WSGI helper script is provided with klaus (see ``klaus/contrib/wsgi.py``),
6969 configuration being read from environment variables. Use it like this (uWSGI example)::
7070
71 uwsgi -w klaus.wsgi \
71 uwsgi -w klaus.contrib.wsgi \
7272 --env KLAUS_SITE_TITLE="Klaus Demo" \
7373 --env KLAUS_REPOS="/path/to/repo1 /path/to/repo2 ..." \
7474 ...
55 from klaus.repo import FancyRepo
66
77
8 KLAUS_VERSION = utils.guess_git_revision() or '0.4'
8 KLAUS_VERSION = utils.guess_git_revision() or '0.4.1'
99
1010
1111 class Klaus(flask.Flask):
2424
2525 setup(
2626 name='klaus',
27 version='0.4',
27 version='0.4.1',
2828 author='Jonas Haag',
2929 author_email='jonas@lophus.org',
30 packages=['klaus'],
30 packages=['klaus', 'klaus.contrib'],
3131 scripts=['bin/klaus'],
3232 include_package_data=True,
3333 zip_safe=False,