Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (34 sloc) 1.09 KB
"""
Installation and test-running details for pony-build.
"""
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
#
# gather together the template files
#
root_dir = os.path.dirname(__file__)
if root_dir != '':
os.chdir(root_dir)
templates_dir = os.path.join('pony_build', 'web', 'templates')
data_files = []
for dirpath, dirnames, filenames in os.walk(templates_dir):
if filenames:
fullpaths = [os.path.join(dirpath, f) for f in filenames ]
data_files.append([dirpath, fullpaths])
# a hack to get the 'pony_client' file into the right place for top-level
# (non-package) imports:
data_files.append(['', ['client/pony_client.py']])
setup(name='pony-build',
version='0.5+20100116',
description='pony-build, a simple Continuous Integration framework',
author = 'C. Titus Brown',
author_email = 't@idyll.org',
url = 'http://github.com/ctb/pony-build',
license = 'BSD',
packages = ['pony_build', 'pony_build.web'],
data_files = data_files,
test_suite = 'nose.collector',
)