cmlenz@4: #!/usr/bin/env python cmlenz@379: # -*- coding: utf-8 -*- cmlenz@5: # cmlenz@408: # Copyright (C) 2007 Edgewall Software cmlenz@408: # Copyright (C) 2005-2007 Christopher Lenz cmlenz@163: # All rights reserved. cmlenz@5: # cmlenz@163: # This software is licensed as described in the file COPYING, which cmlenz@163: # you should have received as part of this distribution. The terms cmlenz@408: # are also available at http://bitten.edgewall.org/wiki/License. cmlenz@4: cmlenz@412: import os cmlenz@99: from setuptools import setup, find_packages cmlenz@412: import sys cmlenz@6: cmlenz@412: sys.path.append(os.path.join('doc', 'common')) cmlenz@412: try: cmlenz@412: from doctools import build_doc, test_doc cmlenz@412: except ImportError: cmlenz@412: build_doc = test_doc = None cmlenz@412: cmlenz@213: NS = 'http://bitten.cmlenz.net/tools/' osimons@598: recipe_commands = [ osimons@598: NS + 'sh#exec = bitten.build.shtools:exec_', osimons@598: NS + 'sh#pipe = bitten.build.shtools:pipe', osimons@598: NS + 'c#configure = bitten.build.ctools:configure', osimons@598: NS + 'c#autoreconf = bitten.build.ctools:autoreconf', osimons@598: NS + 'c#cppunit = bitten.build.ctools:cppunit', osimons@598: NS + 'c#cunit = bitten.build.ctools:cunit', osimons@598: NS + 'c#gcov = bitten.build.ctools:gcov', osimons@598: NS + 'c#make = bitten.build.ctools:make', osimons@598: NS + 'mono#nunit = bitten.build.monotools:nunit', osimons@598: NS + 'java#ant = bitten.build.javatools:ant', osimons@598: NS + 'java#junit = bitten.build.javatools:junit', osimons@598: NS + 'java#cobertura = bitten.build.javatools:cobertura', osimons@598: NS + 'php#phing = bitten.build.phptools:phing', osimons@598: NS + 'php#phpunit = bitten.build.phptools:phpunit', osimons@598: NS + 'php#coverage = bitten.build.phptools:coverage', osimons@598: NS + 'python#coverage = bitten.build.pythontools:coverage', osimons@598: NS + 'python#distutils = bitten.build.pythontools:distutils', osimons@598: NS + 'python#exec = bitten.build.pythontools:exec_', osimons@598: NS + 'python#figleaf = bitten.build.pythontools:figleaf', osimons@598: NS + 'python#pylint = bitten.build.pythontools:pylint', osimons@598: NS + 'python#trace = bitten.build.pythontools:trace', osimons@598: NS + 'python#unittest = bitten.build.pythontools:unittest', osimons@598: NS + 'svn#checkout = bitten.build.svntools:checkout', osimons@598: NS + 'svn#export = bitten.build.svntools:export', osimons@598: NS + 'svn#update = bitten.build.svntools:update', osimons@598: NS + 'hg#pull = bitten.build.hgtools:pull', osimons@598: NS + 'xml#transform = bitten.build.xmltools:transform' osimons@598: ] osimons@598: shared_args = { osimons@598: 'version': '0.6', osimons@598: 'author': 'Edgewall Software', osimons@598: 'author_email': 'info@edgewall.org', osimons@598: 'license': 'BSD', osimons@598: 'url':'http://bitten.edgewall.org/', osimons@598: 'download_url': 'http://bitten.edgewall.org/wiki/Download', osimons@598: 'zip_safe': False osimons@598: } cmlenz@408: osimons@598: if __name__ == '__main__': osimons@598: setup( osimons@598: name = 'Bitten', osimons@598: description = 'Continuous integration for Trac', osimons@598: long_description = \ osimons@598: """A Trac plugin for collecting software metrics via continuous integration.""", osimons@598: osimons@598: packages = find_packages(exclude=['*.tests*']), osimons@598: package_data = { osimons@598: 'bitten': ['htdocs/*.*', osimons@598: 'htdocs/charts_library/*.swf', osimons@598: 'templates/*.html', osimons@598: 'templates/*.txt'] osimons@598: }, osimons@598: test_suite = 'bitten.tests.suite', osimons@598: tests_require = [ osimons@598: 'figleaf', cmlenz@213: ], osimons@598: entry_points = { osimons@598: 'console_scripts': [ osimons@598: 'bitten-slave = bitten.slave:main' osimons@598: ], osimons@598: 'distutils.commands': [ osimons@598: 'unittest = bitten.util.testrunner:unittest' osimons@598: ], osimons@598: 'trac.plugins': [ osimons@598: 'bitten.admin = bitten.admin', osimons@598: 'bitten.main = bitten.main', osimons@598: 'bitten.master = bitten.master', osimons@598: 'bitten.web_ui = bitten.web_ui', osimons@598: 'bitten.testing = bitten.report.testing', osimons@598: 'bitten.coverage = bitten.report.coverage', osimons@598: 'bitten.lint = bitten.report.lint', osimons@598: 'bitten.notify = bitten.notify' osimons@598: ], osimons@598: 'bitten.recipe_commands': recipe_commands osimons@598: }, cmlenz@408: osimons@598: cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}, osimons@598: osimons@598: **shared_args osimons@598: )