annotate setup.py @ 621:394c73ca1a66

0.6dev: Follow-up to [694] - actually fix it in the right test, and not in some other test that obviously has copied the code and did not even use the line...
author osimons
date Fri, 07 Aug 2009 23:32:56 +0000
parents 5f3e66e5b451
children fe344dac8385
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/'
598
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
23 recipe_commands = [
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
24 NS + 'sh#exec = bitten.build.shtools:exec_',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
25 NS + 'sh#pipe = bitten.build.shtools:pipe',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
26 NS + 'c#configure = bitten.build.ctools:configure',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
27 NS + 'c#autoreconf = bitten.build.ctools:autoreconf',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
28 NS + 'c#cppunit = bitten.build.ctools:cppunit',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
29 NS + 'c#cunit = bitten.build.ctools:cunit',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
30 NS + 'c#gcov = bitten.build.ctools:gcov',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
31 NS + 'c#make = bitten.build.ctools:make',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
32 NS + 'mono#nunit = bitten.build.monotools:nunit',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
33 NS + 'java#ant = bitten.build.javatools:ant',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
34 NS + 'java#junit = bitten.build.javatools:junit',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
35 NS + 'java#cobertura = bitten.build.javatools:cobertura',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
36 NS + 'php#phing = bitten.build.phptools:phing',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
37 NS + 'php#phpunit = bitten.build.phptools:phpunit',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
38 NS + 'php#coverage = bitten.build.phptools:coverage',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
39 NS + 'python#coverage = bitten.build.pythontools:coverage',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
40 NS + 'python#distutils = bitten.build.pythontools:distutils',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
41 NS + 'python#exec = bitten.build.pythontools:exec_',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
42 NS + 'python#figleaf = bitten.build.pythontools:figleaf',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
43 NS + 'python#pylint = bitten.build.pythontools:pylint',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
44 NS + 'python#trace = bitten.build.pythontools:trace',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
45 NS + 'python#unittest = bitten.build.pythontools:unittest',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
46 NS + 'svn#checkout = bitten.build.svntools:checkout',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
47 NS + 'svn#export = bitten.build.svntools:export',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
48 NS + 'svn#update = bitten.build.svntools:update',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
49 NS + 'hg#pull = bitten.build.hgtools:pull',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
50 NS + 'xml#transform = bitten.build.xmltools:transform'
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
51 ]
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
52 shared_args = {
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
53 'version': '0.6',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
54 'author': 'Edgewall Software',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
55 'author_email': 'info@edgewall.org',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
56 'license': 'BSD',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
57 'url':'http://bitten.edgewall.org/',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
58 'download_url': 'http://bitten.edgewall.org/wiki/Download',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
59 'zip_safe': False
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
60 }
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
61
598
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
62 if __name__ == '__main__':
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
63 setup(
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
64 name = 'Bitten',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
65 description = 'Continuous integration for Trac',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
66 long_description = \
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
67 """A Trac plugin for collecting software metrics via continuous integration.""",
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
68
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
69 packages = find_packages(exclude=['*.tests*']),
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
70 package_data = {
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
71 'bitten': ['htdocs/*.*',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
72 'htdocs/charts_library/*.swf',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
73 'templates/*.html',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
74 'templates/*.txt']
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
75 },
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
76 test_suite = 'bitten.tests.suite',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
77 tests_require = [
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
78 'figleaf',
213
25f84dd9f159 * Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents: 205
diff changeset
79 ],
598
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
80 entry_points = {
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
81 'console_scripts': [
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
82 'bitten-slave = bitten.slave:main'
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
83 ],
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
84 'distutils.commands': [
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
85 'unittest = bitten.util.testrunner:unittest'
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
86 ],
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
87 'trac.plugins': [
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
88 'bitten.admin = bitten.admin',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
89 'bitten.main = bitten.main',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
90 'bitten.master = bitten.master',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
91 'bitten.web_ui = bitten.web_ui',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
92 'bitten.testing = bitten.report.testing',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
93 'bitten.coverage = bitten.report.coverage',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
94 'bitten.lint = bitten.report.lint',
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
95 'bitten.notify = bitten.notify'
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
96 ],
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
97 'bitten.recipe_commands': recipe_commands
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
98 },
408
933105ab516b Update file headers and other stuff pointing to the old home.
cmlenz
parents: 393
diff changeset
99
598
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
100 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc},
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
101
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
102 **shared_args
5f3e66e5b451 0.6dev: Running `python setup-slave.py install` now works for installing only the parts of Bitten needed by slave to run builds. Closes #383.
osimons
parents: 556
diff changeset
103 )
Copyright (C) 2012-2017 Edgewall Software