annotate setup.py @ 588:ba53929c8652

0.6dev: Added some documentation about XML quoting in recipes (attributes), closing #360.
author osimons
date Sat, 25 Jul 2009 01:09:30 +0000
parents 12747ea5e6a5
children 5f3e66e5b451
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
412
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
12 import os
99
efc1eed69ba8 Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents: 78
diff changeset
13 from setuptools import setup, find_packages
412
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
14 import sys
6
9b57159428b0 Fix package list in {{{setup.py}}}.
cmlenz
parents: 5
diff changeset
15
412
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
16 sys.path.append(os.path.join('doc', 'common'))
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
17 try:
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
18 from doctools import build_doc, test_doc
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
19 except ImportError:
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
20 build_doc = test_doc = None
84b8cde2dfd4 Start with documentation.
cmlenz
parents: 410
diff changeset
21
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
22 NS = 'http://bitten.cmlenz.net/tools/'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
23
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
24 setup(
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
25 name = 'Bitten',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
26 version = '0.6',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
27 description = 'Continuous integration for Trac',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
28 long_description = \
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
29 """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
30 author = 'Edgewall Software',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
31 author_email = 'info@edgewall.org',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
32 license = 'BSD',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
33 url = 'http://bitten.edgewall.org/',
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
34 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
35 zip_safe = False,
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
36
427
04f76d061ad5 Fix for #166. This means the `unittest` command will only be available for the Bitten setup itself after Bitten has been installed. In general this isn't a problem, because you can simply use the regular `test` command to run the tests.
cmlenz
parents: 416
diff changeset
37 packages = find_packages(exclude=['*.tests*']),
04f76d061ad5 Fix for #166. This means the `unittest` command will only be available for the Bitten setup itself after Bitten has been installed. In general this isn't a problem, because you can simply use the regular `test` command to run the tests.
cmlenz
parents: 416
diff changeset
38 package_data = {
410
7930cdd83d13 More restructuring: got rid of the `trac_ext` subpackage, which makes no sense now that the master is also coupled to Trac.
cmlenz
parents: 409
diff changeset
39 'bitten': ['htdocs/*.*',
7930cdd83d13 More restructuring: got rid of the `trac_ext` subpackage, which makes no sense now that the master is also coupled to Trac.
cmlenz
parents: 409
diff changeset
40 'htdocs/charts_library/*.swf',
531
5b4a1f1872d3 Import of bitten notify from Ole Trenner. Imported from http://trac.3dbits.de/bittennotify, revision [31]. Source code license change to bsd verified by Ole. Everything looks great. Thanks for the patch.
wbell
parents: 503
diff changeset
41 'templates/*.html',
5b4a1f1872d3 Import of bitten notify from Ole Trenner. Imported from http://trac.3dbits.de/bittennotify, revision [31]. Source code license change to bsd verified by Ole. Everything looks great. Thanks for the patch.
wbell
parents: 503
diff changeset
42 'templates/*.txt']
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
43 },
427
04f76d061ad5 Fix for #166. This means the `unittest` command will only be available for the Bitten setup itself after Bitten has been installed. In general this isn't a problem, because you can simply use the regular `test` command to run the tests.
cmlenz
parents: 416
diff changeset
44 test_suite = 'bitten.tests.suite',
532
e9a22dc21e29 Add "figleaf" as requirement for running tests
mgood
parents: 531
diff changeset
45 tests_require = [
e9a22dc21e29 Add "figleaf" as requirement for running tests
mgood
parents: 531
diff changeset
46 'figleaf',
e9a22dc21e29 Add "figleaf" as requirement for running tests
mgood
parents: 531
diff changeset
47 ],
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
48 entry_points = {
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
49 'console_scripts': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
50 'bitten-slave = bitten.slave:main'
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 'distutils.commands': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
53 'unittest = bitten.util.testrunner:unittest'
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
54 ],
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
55 'trac.plugins': [
429
d6e1a05f32f7 Start webadmin integration.
cmlenz
parents: 427
diff changeset
56 'bitten.admin = bitten.admin',
410
7930cdd83d13 More restructuring: got rid of the `trac_ext` subpackage, which makes no sense now that the master is also coupled to Trac.
cmlenz
parents: 409
diff changeset
57 'bitten.main = bitten.main',
392
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
58 'bitten.master = bitten.master',
410
7930cdd83d13 More restructuring: got rid of the `trac_ext` subpackage, which makes no sense now that the master is also coupled to Trac.
cmlenz
parents: 409
diff changeset
59 'bitten.web_ui = bitten.web_ui',
409
5786700df0c7 Moved/restructured the modules implementing report chart generators and report summarizers.
cmlenz
parents: 408
diff changeset
60 'bitten.testing = bitten.report.testing',
531
5b4a1f1872d3 Import of bitten notify from Ole Trenner. Imported from http://trac.3dbits.de/bittennotify, revision [31]. Source code license change to bsd verified by Ole. Everything looks great. Thanks for the patch.
wbell
parents: 503
diff changeset
61 'bitten.coverage = bitten.report.coverage',
547
bd02aae24b54 Integrate a fixed-up form of [http://pypi.python.org/pypi/EatLint EatLint] into Bitten:
dfraser
parents: 532
diff changeset
62 'bitten.lint = bitten.report.lint',
531
5b4a1f1872d3 Import of bitten notify from Ole Trenner. Imported from http://trac.3dbits.de/bittennotify, revision [31]. Source code license change to bsd verified by Ole. Everything looks great. Thanks for the patch.
wbell
parents: 503
diff changeset
63 'bitten.notify = bitten.notify'
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
64 ],
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
65 'bitten.recipe_commands': [
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
66 NS + 'sh#exec = bitten.build.shtools:exec_',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
67 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
68 NS + 'c#configure = bitten.build.ctools:configure',
478
6718f9a5c1f1 Applying Thomas Mueller's patch for the autoreconf command. Closes #59
wbell
parents: 442
diff changeset
69 NS + 'c#autoreconf = bitten.build.ctools:autoreconf',
270
76bfc58fc394 Forgot to register cppunit command in [279].
cmlenz
parents: 252
diff changeset
70 NS + 'c#cppunit = bitten.build.ctools:cppunit',
503
a7c795920c4a Merging trac-0.11 branch to trunk. This revision is equivalent to [571].
wbell
parents: 482
diff changeset
71 NS + 'c#cunit = bitten.build.ctools:cunit',
302
fe966b950424 * Add a `<c:gcov>` command based on patch by Chandler Carruth. Closes #72.
cmlenz
parents: 270
diff changeset
72 NS + 'c#gcov = bitten.build.ctools:gcov',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
73 NS + 'c#make = bitten.build.ctools:make',
550
6a8dcbffdce2 Added support for nunit (applied patch from silk in #348)
dfraser
parents: 547
diff changeset
74 NS + 'mono#nunit = bitten.build.monotools:nunit',
240
24e91cbae6e0 New recipe command `<java:ant>` for running Ant builds.
cmlenz
parents: 238
diff changeset
75 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
76 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
77 NS + 'java#cobertura = bitten.build.javatools:cobertura',
416
ff35be7d2a5e Add PHP recipe commands contributed by Wei Zhuo.
cmlenz
parents: 412
diff changeset
78 NS + 'php#phing = bitten.build.phptools:phing',
ff35be7d2a5e Add PHP recipe commands contributed by Wei Zhuo.
cmlenz
parents: 412
diff changeset
79 NS + 'php#phpunit = bitten.build.phptools:phpunit',
ff35be7d2a5e Add PHP recipe commands contributed by Wei Zhuo.
cmlenz
parents: 412
diff changeset
80 NS + 'php#coverage = bitten.build.phptools:coverage',
442
a8787de4fbc3 Improve the still experimental support for using `coverage.py`.
cmlenz
parents: 429
diff changeset
81 NS + 'python#coverage = bitten.build.pythontools:coverage',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
82 NS + 'python#distutils = bitten.build.pythontools:distutils',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
83 NS + 'python#exec = bitten.build.pythontools:exec_',
482
b87eda443ffc add figleaf coverage support
mgood
parents: 478
diff changeset
84 NS + 'python#figleaf = bitten.build.pythontools:figleaf',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
85 NS + 'python#pylint = bitten.build.pythontools:pylint',
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
86 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
87 NS + 'python#unittest = bitten.build.pythontools:unittest',
392
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
88 NS + 'svn#checkout = bitten.build.svntools:checkout',
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
89 NS + 'svn#export = bitten.build.svntools:export',
026d9aa41b85 Merged HTTP branch into trunk.
cmlenz
parents: 379
diff changeset
90 NS + 'svn#update = bitten.build.svntools:update',
556
12747ea5e6a5 Added `hg:pull` command (see #303)
dfraser
parents: 550
diff changeset
91 NS + 'hg#pull = bitten.build.hgtools:pull',
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
92 NS + 'xml#transform = bitten.build.xmltools:transform'
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
93 ]
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
94 },
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
95
427
04f76d061ad5 Fix for #166. This means the `unittest` command will only be available for the Bitten setup itself after Bitten has been installed. In general this isn't a problem, because you can simply use the regular `test` command to run the tests.
cmlenz
parents: 416
diff changeset
96 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}
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
97 )
Copyright (C) 2012-2017 Edgewall Software