annotate setup.py @ 408:933105ab516b

Update file headers and other stuff pointing to the old home.
author cmlenz
date Tue, 07 Aug 2007 08:58:38 +0000
parents e3ab7698dae7
children 5786700df0c7
rev   line source
4
196009657e5e Simplify the recipe commands interface:
cmlenz
parents: 3
diff changeset
1 #!/usr/bin/env python
379
0df178e07fdb Use UTF-8 as encoding of source files.
cmlenz
parents: 365
diff changeset
2 # -*- coding: utf-8 -*-
5
738a0ae251f6 Added GPL boilerplate.
cmlenz
parents: 4
diff changeset
3 #
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
4 # Copyright (C) 2007 Edgewall Software
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
5 # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
163
634be6cbb808 Flip the switch: Bitten is now BSD-licensed.
cmlenz
parents: 160
diff changeset
6 # All rights reserved.
5
738a0ae251f6 Added GPL boilerplate.
cmlenz
parents: 4
diff changeset
7 #
163
634be6cbb808 Flip the switch: Bitten is now BSD-licensed.
cmlenz
parents: 160
diff changeset
8 # This software is licensed as described in the file COPYING, which
634be6cbb808 Flip the switch: Bitten is now BSD-licensed.
cmlenz
parents: 160
diff changeset
9 # you should have received as part of this distribution. The terms
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
10 # are also available at http://bitten.edgewall.org/wiki/License.
4
196009657e5e Simplify the recipe commands interface:
cmlenz
parents: 3
diff changeset
11
99
efc1eed69ba8 Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents: 78
diff changeset
12 from setuptools import setup, find_packages
6
9b57159428b0 Fix package list in {{{setup.py}}}.
cmlenz
parents: 5
diff changeset
13
22
e67713b7936f Moved test runner into {{{bitten.util}}}} package.
cmlenz
parents: 21
diff changeset
14 from bitten.util.testrunner import unittest
0
0b2a3581c48d Import initial ''bitten'' source.
cmlenz
parents:
diff changeset
15
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
16 NS = 'http://bitten.cmlenz.net/tools/'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
17
205
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
18 setup(
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
19 name = 'Bitten',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
20 version = '0.6',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
21 description = 'Continuous integration for Trac',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
22 long_description = \
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
23 """A Trac plugin for collecting software metrics via continuous integration.""",
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
24 author = 'Edgewall Software',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
25 author_email = 'info@edgewall.org',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
26 license = 'BSD',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
27 url = 'http://bitten.edgewall.org/',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
28 download_url = 'http://bitten.edgewall.org/wiki/Download',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
29 zip_safe = False,
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
30
320
a8b713254286 Fixes for compatibility with Trac trunk and 0.9.3.
cmlenz
parents: 302
diff changeset
31 packages=find_packages(exclude=['*.tests*']),
205
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
32 package_data={
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
33 'bitten.trac_ext': ['htdocs/*.*',
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
34 'htdocs/charts_library/*.swf',
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
35 'templates/*.cs']
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
36 },
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
37 test_suite='bitten.tests.suite',
205
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
38 entry_points = {
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
39 'console_scripts': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
40 'bitten-slave = bitten.slave:main'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
41 ],
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
42 'distutils.commands': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
43 'unittest = bitten.util.testrunner:unittest'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
44 ],
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
45 'trac.plugins': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
46 'bitten.main = bitten.trac_ext.main',
392
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
47 'bitten.master = bitten.master',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
48 'bitten.web_ui = bitten.trac_ext.web_ui',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
49 'bitten.summarizers = bitten.trac_ext.summarizers',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
50 'bitten.charts = bitten.trac_ext.charts'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
51 ],
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
52 'bitten.recipe_commands': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
53 NS + 'sh#exec = bitten.build.shtools:exec_',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
54 NS + 'sh#pipe = bitten.build.shtools:pipe',
238
832e64330c31 Add a `<c:configure>` recipe command for running configure scripts. Closes #57.
cmlenz
parents: 213
diff changeset
55 NS + 'c#configure = bitten.build.ctools:configure',
270
76bfc58fc394 Forgot to register cppunit command in [279].
cmlenz
parents: 252
diff changeset
56 NS + 'c#cppunit = bitten.build.ctools:cppunit',
302
fe966b950424 * Add a `<c:gcov>` command based on patch by Chandler Carruth. Closes #72.
cmlenz
parents: 270
diff changeset
57 NS + 'c#gcov = bitten.build.ctools:gcov',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
58 NS + 'c#make = bitten.build.ctools:make',
240
24e91cbae6e0 New recipe command `<java:ant>` for running Ant builds.
cmlenz
parents: 238
diff changeset
59 NS + 'java#ant = bitten.build.javatools:ant',
252
36a687797120 Add `<java:junit>` recipe command contributed by Matt Good (see #58). Thanks!
cmlenz
parents: 244
diff changeset
60 NS + 'java#junit = bitten.build.javatools:junit',
354
2ffab7963b8d add Java recipe command for parsing code coverage from [http://cobertura.sf.net Cobertura] XML reports
mgood
parents: 320
diff changeset
61 NS + 'java#cobertura = bitten.build.javatools:cobertura',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
62 NS + 'python#distutils = bitten.build.pythontools:distutils',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
63 NS + 'python#exec = bitten.build.pythontools:exec_',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
64 NS + 'python#pylint = bitten.build.pythontools:pylint',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
65 NS + 'python#trace = bitten.build.pythontools:trace',
243
e75816cb2f45 * Add an <x:transform/> task for applying XSLT transformations. Can use either libxslt or MSXML if available. Closes #35.
cmlenz
parents: 240
diff changeset
66 NS + 'python#unittest = bitten.build.pythontools:unittest',
392
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
67 NS + 'svn#checkout = bitten.build.svntools:checkout',
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
68 NS + 'svn#export = bitten.build.svntools:export',
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
69 NS + 'svn#update = bitten.build.svntools:update',
244
1aa624af9ebb * Allowing specifying the main entry point of a module in `<python:exec>`. This can be used to execute Python scripts in modules that don't map to files on the file system. See #49.
cmlenz
parents: 243
diff changeset
70 NS + 'xml#transform = bitten.build.xmltools:transform'
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
71 ]
205
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
72 },
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
73
365
01b5a269d940 Register the `unittest` command in `setup.p` so that Bitten does not need to be installed just to run the command.
cmlenz
parents: 354
diff changeset
74 cmdclass = {'unittest': unittest}
205
0781987c586a Make use of the entry point feature introduced in setuptools 0.6a1, and the `console_scripts` entry point introduced in 0.6a2. This also requires Trac >= [http://projects.edgewall.com/trac/changeset/2247 r2247] (or 0.9b2 once that has been released).
cmlenz
parents: 181
diff changeset
75 )
Copyright (C) 2012-2017 Edgewall Software