Changeset - 782f0692b29c
[Not reviewed]
default
0 3 0
Marcin Kuzminski - 15 years ago 2010-06-01 22:19:03
marcin@python-works.com
fixed setup and install instructions
3 files changed with 19 insertions and 10 deletions:
0 comments (0 inline, 0 general)
README.txt
Show inline comments
 
Pylons based replacement for hgwebdir. Fully customizable, 
 
with authentication, permissions. Based on vcs library.
 
- has it's own middleware to handle mercurial protocol request each request can
 
  be logged and authenticated +threaded performance unlikely to hgweb
 
- mako templates let's you cusmotize look and feel of appplication.
 
- diffs annotations and source code all colored by pygments.
 
- admin interface for performing user/permission managments as well as repository
 
  managment
 
- added cache with invalidation on push/repo managment for high performance and
 
  always upto date data.
 
- rss /atom feed customizable
 
- future support for git
 
- based on pylons 1.0 / sqlalchemy 0.6
 

	
 
===
 
This software is still in beta mode. I don't guarantee that it'll work.
 
I started this project since i was tired of sad looks, and zero controll over
 
our company regular hgwebdir.
 

	
 

	
 
== INSTALATION
 
run dbmanage.py from pylons_app/lib it should create all needed table and
 
an admin account, Edit file repositories.config and change the path for you 
 
mercurial repositories, remember about permissions.
 
\ No newline at end of file
 
 - create new virtualenv,
 
 - run python setup.py install
 
 - goto build/ directory
 
 - goto pylons_app/lib and run python db_manage.py it should create all 
 
   needed tables and an admin account. 
 
 - Edit file repositories.config and change the [paths] where you keep your
 
   mercurial repositories, remember about permissions for accessing this dir by
 
   hg app.
 
 - run paster serve production.ini 
 
   the app should be available at the 127.0.0.1:8001, the static files should be
 
   missing since in production.ini sets static_files = false change it to true
 
   for serving static files in hg app, but i highly recommend to serve 
 
   statics by proxy (nginx or similar).
 
 - use admin account you created to login.   
 
\ No newline at end of file
repositories.config
Show inline comments
 
[hooks]
 
#to do push with autoupdate
 
changegroup = hg update >&2
 

	
 
[extensions]
 
hgext.highlight=
 
#hgk=
 

	
 
[web]
 
#for http requests push ssl to false
 
push_ssl = false
 
allow_archive = gz zip bz2
 
allow_push = *
 
baseurl = /
 

	
 
[paths]
 
/ = /home/marcink/python_workspace/**
 
#this path should point to mercurial repositories remeber about '*' at the end
 
/ = /home/marcink/python_workspace/*
setup.py
Show inline comments
 
from pylons_app import get_version
 
try:
 
    from setuptools import setup, find_packages
 
except ImportError:
 
    from ez_setup import use_setuptools
 
    use_setuptools()
 
    from setuptools import setup, find_packages
 

	
 
setup(
 
    name='pylons_app',
 
    version=get_version(),
 
    description='',
 
    author='marcin kuzminski',
 
    author_email='marcin@python-blog.com',
 
    author_email='marcin@python-works.com',
 
    url='',
 
    install_requires=[
 
        "Pylons>=1.0.0",
 
        "SQLAlchemy>=0.6",
 
        "Mako>=0.3.2",
 
        "vcs>=0.1.1",
 
        "vcs>=0.1.2",
 
        "pygments>=1.3.0"
 
    ],
 
    setup_requires=["PasteScript>=1.6.3"],
 
    packages=find_packages(exclude=['ez_setup']),
 
    include_package_data=True,
 
    test_suite='nose.collector',
 
    package_data={'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
 
    message_extractors={'pylons_app': [
 
            ('**.py', 'python', None),
 
            ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
 
            ('public/**', 'ignore', None)]},
 
    zip_safe=False,
 
    paster_plugins=['PasteScript', 'Pylons'],
 
    entry_points="""
 
    [paste.app_factory]
 
    main = pylons_app.config.middleware:make_app
 

	
 
    [paste.app_install]
 
    main = pylons.util:PylonsInstaller
 
    """,
 
)
0 comments (0 inline, 0 general)