#!/usr/bin/env python import os import sys from setuptools import setup, find_packages sys.path.insert(0, './src') from kforge import __version__ basePath = os.path.abspath(os.path.dirname(sys.argv[0])) script_dir = os.path.join(basePath, 'bin') scripts = [] for fn in os.listdir(script_dir): if fn.startswith('kforge-'): fp = os.path.join('bin', fn) scripts.append(fp) setup( name='kforge', version=__version__, package_dir={'': 'src'}, packages=find_packages('src'), scripts=scripts, # just use auto-include and specify special items in MANIFEST.in include_package_data = True, # ensure KForge is installed unzipped # this avoids potential problems when apache/modpython imports kforge but # does not have right permissions to create an egg-cache directory # see: # http://mail.python.org/pipermail/python-list/2006-September/402300.html # http://docs.turbogears.org/1.0/mod_python#setting-the-egg-cache-directory zip_safe = False, install_requires = [ 'domainmodel==0.2', 'Routes>=1.6,<=1.7', ], # format section name (plugin type), module.path:Class [requirements] entry_points = ''' [kforge.plugins] # -------------- # System Plugins apacheconfig = kforge.plugin.apacheconfig:Plugin notify = kforge.plugin.notify:Plugin # -------------- # Service Plugins dav = kforge.plugin.dav:Plugin mailman = kforge.plugin.mailman:Plugin # no requirement for moin because now well integrated with setuptools moin = kforge.plugin.moin:Plugin svn = kforge.plugin.svn:Plugin # leave dependency out for time being # trac = kforge.plugin.trac:Plugin [trac] trac = kforge.plugin.trac:Plugin wordpress = kforge.plugin.wordpress:Plugin www = kforge.plugin.www:Plugin # -------------- # Testing Plugins example = kforge.plugin.example:Plugin example_non_service = kforge.plugin.example_non_service:Plugin example_single_service = kforge.plugin.example_single_service:Plugin ''', extras_require = { 'trac' : 'trac >= 0.8' }, author='Open Knowledge Foundation and Appropriate Software Foundation', author_email='kforge-dev@lists.okfn.org', license='GPL', url='http://www.kforgeproject.com/', download_url = 'http://www.kforgeproject.com/files/kforge-%s.tar.gz' % __version__, description='Collaborative development environment for software or knowledge', long_description =\ """ KForge is an open-source (GPL) system for managing software and knowledge projects. It re-uses existing best-of-breed tools such as a versioned storage (subversion), a tracker (trac), and wiki (trac or moinmoin), integrating them with the system's own facilities (projects, users, permissions etc). KForge also provides a complete web interface for project administration as well as a fully-developed plugin system so that new services and features can be easily added. """, classifiers = [ 'Development Status :: 5 - Production/Stable', 'Environment :: Console', 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Libraries :: Python Modules'], )