Mercurial > bitten > bitten-test
annotate setup.py @ 279:5e7b6337d77c
* Fix snapshot deletion after build on Windows.
* Don't extract files in archives that have an absolute path, or contain up-references (`..`)
* Fixes to the sequencing of output from processes launched through the `CommandLine` class.
author | cmlenz |
---|---|
date | Fri, 14 Oct 2005 14:19:19 +0000 |
parents | 76bfc58fc394 |
children | fe966b950424 0c60c69f10c3 |
rev | line source |
---|---|
4 | 1 #!/usr/bin/env python |
5 | 2 # -*- coding: iso8859-1 -*- |
3 # | |
4 # Copyright (C) 2005 Christopher Lenz <cmlenz@gmx.de> | |
163 | 5 # All rights reserved. |
5 | 6 # |
163 | 7 # This software is licensed as described in the file COPYING, which |
8 # you should have received as part of this distribution. The terms | |
9 # are also available at http://bitten.cmlenz.net/wiki/License. | |
4 | 10 |
99
efc1eed69ba8
Make Bitten deployable in Trac as a [http://peak.telecommunity.com/DevCenter/PythonEggs Python egg].
cmlenz
parents:
78
diff
changeset
|
11 from setuptools import setup, find_packages |
6 | 12 |
19
9db5f8eddb0d
Proper {{{optparse}}}-based command-line interface for master and slave.
cmlenz
parents:
17
diff
changeset
|
13 from bitten import __version__ as VERSION |
22 | 14 from bitten.util.testrunner import unittest |
0 | 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( |
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
|
19 name='Bitten', version=VERSION, author='Christopher Lenz', |
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
|
20 author_email='cmlenz@gmx.de', url='http://bitten.cmlenz.net/', |
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
|
21 description='Framework for collecting software metrics via continuous ' |
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
|
22 'integration', |
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
|
23 license='BSD', |
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 packages=find_packages(exclude=['ez_setup', '*.tests*']), |
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
|
25 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
|
26 '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
|
27 '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
|
28 '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
|
29 }, |
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
|
30 entry_points = { |
213
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
31 'console_scripts': [ |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
32 'bitten-master = bitten.master:main', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
33 'bitten-slave = bitten.slave:main' |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
34 ], |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
35 'distutils.commands': [ |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
36 'unittest = bitten.util.testrunner:unittest' |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
37 ], |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
38 'trac.plugins': [ |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
39 'bitten.main = bitten.trac_ext.main', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
40 'bitten.web_ui = bitten.trac_ext.web_ui', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
41 'bitten.summarizers = bitten.trac_ext.summarizers', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
42 'bitten.charts = bitten.trac_ext.charts' |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
43 ], |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
44 'bitten.recipe_commands': [ |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
45 NS + 'sh#exec = bitten.build.shtools:exec_', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
46 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
|
47 NS + 'c#configure = bitten.build.ctools:configure', |
270 | 48 NS + 'c#cppunit = bitten.build.ctools:cppunit', |
213
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
49 NS + 'c#make = bitten.build.ctools:make', |
240
24e91cbae6e0
New recipe command `<java:ant>` for running Ant builds.
cmlenz
parents:
238
diff
changeset
|
50 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
|
51 NS + 'java#junit = bitten.build.javatools:junit', |
213
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
52 NS + 'python#distutils = bitten.build.pythontools:distutils', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
53 NS + 'python#exec = bitten.build.pythontools:exec_', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
54 NS + 'python#pylint = bitten.build.pythontools:pylint', |
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
55 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
|
56 NS + 'python#unittest = bitten.build.pythontools:unittest', |
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
|
57 NS + 'xml#transform = bitten.build.xmltools:transform' |
213
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
58 ] |
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
|
59 }, |
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
|
60 test_suite='bitten.tests.suite', zip_safe=True |
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
|
61 ) |