Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add setup.py, klaus is now PyPi ready

  • Loading branch information...
commit 5cffc294f6ce811b1322fbae63fdcddd5e43fd1a 1 parent 785fc93
@posativ authored
Showing with 48 additions and 4 deletions.
  1. +13 −3 README.rst
  2. +0 −1  requirements.txt
  3. +35 −0 setup.py
View
16 README.rst
@@ -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
View
1  requirements.txt
@@ -2,4 +2,3 @@ werkzeug
jinja2
pygments
dulwich
-argparse
View
35 setup.py
@@ -0,0 +1,35 @@
+#!/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'
+ ],
+)
Please sign in to comment.
Something went wrong with that request. Please try again.