Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
230e8a4a
Commit
230e8a4a
authored
12 years ago
by
posativ
Browse files
Options
Downloads
Patches
Plain Diff
add setup.py, klaus is now PyPi ready
parent
e4094526
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.rst
+13
-3
13 additions, 3 deletions
README.rst
requirements.txt
+0
-1
0 additions, 1 deletion
requirements.txt
setup.py
+35
-0
35 additions, 0 deletions
setup.py
with
48 additions
and
4 deletions
README.rst
+
13
−
3
View file @
230e8a4a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
requirements.txt
+
0
−
1
View file @
230e8a4a
...
...
@@ -2,4 +2,3 @@ werkzeug
jinja2
pygments
dulwich
argparse
This diff is collapsed.
Click to expand it.
setup.py
0 → 100644
+
35
−
0
View file @
230e8a4a
#!/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
'
],
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment