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/' cmlenz@213: cmlenz@205: setup( cmlenz@408: name = 'Bitten', cmlenz@408: version = '0.6', cmlenz@408: description = 'Continuous integration for Trac', cmlenz@408: long_description = \ cmlenz@408: """A Trac plugin for collecting software metrics via continuous integration.""", cmlenz@408: author = 'Edgewall Software', cmlenz@408: author_email = 'info@edgewall.org', cmlenz@408: license = 'BSD', cmlenz@408: url = 'http://bitten.edgewall.org/', cmlenz@408: download_url = 'http://bitten.edgewall.org/wiki/Download', cmlenz@408: zip_safe = False, cmlenz@408: cmlenz@427: packages = find_packages(exclude=['*.tests*']), cmlenz@427: package_data = { cmlenz@410: 'bitten': ['htdocs/*.*', cmlenz@410: 'htdocs/charts_library/*.swf', wbell@531: 'templates/*.html', wbell@531: 'templates/*.txt'] cmlenz@205: }, cmlenz@427: test_suite = 'bitten.tests.suite', mgood@532: tests_require = [ mgood@532: 'figleaf', mgood@532: ], cmlenz@205: entry_points = { cmlenz@213: 'console_scripts': [ cmlenz@213: 'bitten-slave = bitten.slave:main' cmlenz@213: ], cmlenz@213: 'distutils.commands': [ cmlenz@213: 'unittest = bitten.util.testrunner:unittest' cmlenz@213: ], cmlenz@213: 'trac.plugins': [ cmlenz@429: 'bitten.admin = bitten.admin', cmlenz@410: 'bitten.main = bitten.main', cmlenz@392: 'bitten.master = bitten.master', cmlenz@410: 'bitten.web_ui = bitten.web_ui', cmlenz@409: 'bitten.testing = bitten.report.testing', wbell@531: 'bitten.coverage = bitten.report.coverage', dfraser@547: 'bitten.lint = bitten.report.lint', wbell@531: 'bitten.notify = bitten.notify' cmlenz@213: ], cmlenz@213: 'bitten.recipe_commands': [ cmlenz@213: NS + 'sh#exec = bitten.build.shtools:exec_', cmlenz@213: NS + 'sh#pipe = bitten.build.shtools:pipe', cmlenz@238: NS + 'c#configure = bitten.build.ctools:configure', wbell@478: NS + 'c#autoreconf = bitten.build.ctools:autoreconf', cmlenz@270: NS + 'c#cppunit = bitten.build.ctools:cppunit', wbell@503: NS + 'c#cunit = bitten.build.ctools:cunit', cmlenz@302: NS + 'c#gcov = bitten.build.ctools:gcov', cmlenz@213: NS + 'c#make = bitten.build.ctools:make', dfraser@550: NS + 'mono#nunit = bitten.build.monotools:nunit', cmlenz@240: NS + 'java#ant = bitten.build.javatools:ant', cmlenz@252: NS + 'java#junit = bitten.build.javatools:junit', mgood@354: NS + 'java#cobertura = bitten.build.javatools:cobertura', cmlenz@416: NS + 'php#phing = bitten.build.phptools:phing', cmlenz@416: NS + 'php#phpunit = bitten.build.phptools:phpunit', cmlenz@416: NS + 'php#coverage = bitten.build.phptools:coverage', cmlenz@442: NS + 'python#coverage = bitten.build.pythontools:coverage', cmlenz@213: NS + 'python#distutils = bitten.build.pythontools:distutils', cmlenz@213: NS + 'python#exec = bitten.build.pythontools:exec_', mgood@482: NS + 'python#figleaf = bitten.build.pythontools:figleaf', cmlenz@213: NS + 'python#pylint = bitten.build.pythontools:pylint', cmlenz@213: NS + 'python#trace = bitten.build.pythontools:trace', cmlenz@243: NS + 'python#unittest = bitten.build.pythontools:unittest', cmlenz@392: NS + 'svn#checkout = bitten.build.svntools:checkout', cmlenz@392: NS + 'svn#export = bitten.build.svntools:export', cmlenz@392: NS + 'svn#update = bitten.build.svntools:update', dfraser@556: NS + 'hg#pull = bitten.build.hgtools:pull', cmlenz@244: NS + 'xml#transform = bitten.build.xmltools:transform' cmlenz@213: ] cmlenz@205: }, cmlenz@408: cmlenz@427: cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} cmlenz@205: )