Skip to content
Snippets Groups Projects
Commit 230e8a4a authored by posativ's avatar posativ
Browse files

add setup.py, klaus is now PyPi ready

parent e4094526
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ Demo at http://klausdemo.lophus.org
Requirements
------------
* Python 2.6 (2.5 should work, too)
* Werkzeug_
* Jinja2_
......@@ -31,7 +32,14 @@ Requirements
Installation
------------
*The same procedure as every year, James.* ::
If you just want to test it with a simple WSGI server, type::
pip install klaus
You can optionally install `bjoern <https://github.com/jonashaag/bjoern>`_ and
klaus automatically use this backend. To use klaus with a custom WSGI server,
it's *the same procedure as every year, James.* ::
virtualenv your-env
source your-env/bin/activate
......@@ -43,8 +51,9 @@ Installation
Usage
-----
Using the ``klaus`` script
..................................
^^^^^^^^^^^^^^^^^^^^^^^^^^
::
......@@ -61,7 +70,8 @@ This will make klaus serve the *klaus* and *bjoern* repos at
.. _wsgiref: http://docs.python.org/library/wsgiref.html
.. _bjoern: https://github.com/jonashaag/bjoern
Using a real server ...................
Using a real server
^^^^^^^^^^^^^^^^^^^
The ``klaus/__init__.py`` module contains a WSGI ``make_app`` function which
returns the app. The repo list is read from the ``KLAUS_REPOS`` environment
......
......@@ -2,4 +2,3 @@ werkzeug
jinja2
pygments
dulwich
argparse
setup.py 0 → 100644
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from distutils.core import setup
setup(
name='klaus',
version='1.0.0',
author='Jonas Haag',
author_email='jonas@lophus.org',
packages=['klaus', 'klaus/templates', 'klaus/static'],
scripts=['bin/klaus'],
package_data={
'klaus': ['templates/*.html', 'static/*']
},
url='https://github.com/jonashaag/klaus',
license='BSD style',
description='The first Git web viewer that Just Works™.',
long_description=__doc__,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: News/Diary",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
],
install_requires=[
'werkzeug',
'Jinja2',
'Pygments',
'dulwich>=0.7.1'
],
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment