Mercurial > bitten > bitten-test
annotate setup.py @ 824:a4676056c8d3
Changed notification to always use Genshi `NewTextTemplate` which lets us keep just one template for both Trac 0.11 and 0.12+.
author | osimons |
---|---|
date | Thu, 16 Sep 2010 13:01:17 +0000 |
parents | 381d9632b478 |
children | 7c80375d4817 |
rev | line source |
---|---|
4 | 1 #!/usr/bin/env python |
379 | 2 # -*- coding: utf-8 -*- |
5 | 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 | 6 # All rights reserved. |
5 | 7 # |
163 | 8 # This software is licensed as described in the file COPYING, which |
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 | 11 |
412 | 12 import os |
13 import sys | |
682
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
14 from setuptools import setup, find_packages, Feature |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
15 from setuptools.command import egg_info |
6 | 16 |
412 | 17 sys.path.append(os.path.join('doc', 'common')) |
18 try: | |
19 from doctools import build_doc, test_doc | |
20 except ImportError: | |
21 build_doc = test_doc = None | |
22 | |
646
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
23 # Turn off multiprocessing logging |
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
24 # Bug in setuptools/distutils test runner using Python 2.6.2+? |
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
25 import logging |
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
26 if hasattr(logging, 'logMultiprocessing'): |
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
27 logging.logMultiprocessing = 0 |
fe344dac8385
0.6dev: Workaround for bug with setuptools and multiprocess logging with Python 2.6.2+. Thanks to Hodgestar (irc) for report and patch.
osimons
parents:
598
diff
changeset
|
28 |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
29 NS_old = 'http://bitten.cmlenz.net/tools/' |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
30 NS_new = 'http://bitten.edgewall.org/tools/' |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
31 tools = [ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
32 'sh#exec = bitten.build.shtools:exec_', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
33 'sh#pipe = bitten.build.shtools:pipe', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
34 'c#configure = bitten.build.ctools:configure', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
35 'c#autoreconf = bitten.build.ctools:autoreconf', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
36 'c#cppunit = bitten.build.ctools:cppunit', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
37 'c#cunit = bitten.build.ctools:cunit', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
38 'c#gcov = bitten.build.ctools:gcov', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
39 'c#make = bitten.build.ctools:make', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
40 'mono#nunit = bitten.build.monotools:nunit', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
41 'java#ant = bitten.build.javatools:ant', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
42 'java#junit = bitten.build.javatools:junit', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
43 'java#cobertura = bitten.build.javatools:cobertura', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
44 'php#phing = bitten.build.phptools:phing', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
45 'php#phpunit = bitten.build.phptools:phpunit', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
46 'php#coverage = bitten.build.phptools:coverage', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
47 'python#coverage = bitten.build.pythontools:coverage', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
48 'python#distutils = bitten.build.pythontools:distutils', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
49 'python#exec = bitten.build.pythontools:exec_', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
50 'python#figleaf = bitten.build.pythontools:figleaf', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
51 'python#pylint = bitten.build.pythontools:pylint', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
52 'python#trace = bitten.build.pythontools:trace', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
53 'python#unittest = bitten.build.pythontools:unittest', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
54 'svn#checkout = bitten.build.svntools:checkout', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
55 'svn#export = bitten.build.svntools:export', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
56 'svn#update = bitten.build.svntools:update', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
57 'hg#pull = bitten.build.hgtools:pull', |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
58 'xml#transform = bitten.build.xmltools:transform' |
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
|
59 ] |
683
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
60 recipe_commands = [NS_old + tool for tool in tools] \ |
0c4fec90c8e2
0.6dev: Update all tools and docs to use the new `http://bitten.edgewall.org/tools/` namespace as default. Old namespace will still work, but a notice appears when editing config if deprecated namespace is in use. Both will work for now, though.
osimons
parents:
682
diff
changeset
|
61 + [NS_new + tool for tool in 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
|
62 |
682
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
63 class MasterFeature(Feature): |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
64 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
65 def exclude_from(self, dist): |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
66 # Called when master is disabled (--without-master) |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
67 pass |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
68 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
69 def include_in(self, dist): |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
70 # Called when master is enabled (default, or --with-master) |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
71 dist.metadata.name = 'Bitten' |
687
a68d7bf9fbdf
Fixed a setup.py bug + updated changelog with 0.6b2 release.
osimons
parents:
683
diff
changeset
|
72 dist.metadata.description = 'Continuous integration for Trac' |
682
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
73 dist.long_description = "A Trac plugin for collecting software " \ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
74 "metrics via continuous integration.""" |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
75 # Use full manifest when master is included |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
76 egg_info.manifest_maker.template = "MANIFEST.in" |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
77 # Include tests in source distribution |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
78 if 'sdist' in dist.commands: |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
79 dist.packages = find_packages() |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
80 else: |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
81 dist.packages = find_packages(exclude=['*tests*']) |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
82 dist.test_suite = 'bitten.tests.suite' |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
83 dist.package_data = { |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
84 'bitten': ['htdocs/*.*', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
85 'templates/*.html', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
86 'templates/*.txt']} |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
87 dist.entry_points['trac.plugins'] = [ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
88 'bitten.admin = bitten.admin', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
89 'bitten.main = bitten.main', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
90 'bitten.master = bitten.master', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
91 'bitten.web_ui = bitten.web_ui', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
92 'bitten.testing = bitten.report.testing', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
93 'bitten.coverage = bitten.report.coverage', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
94 'bitten.lint = bitten.report.lint', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
95 'bitten.notify = bitten.notify'] |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
96 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
97 master = MasterFeature( |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
98 description = "Bitten Master Trac plugin", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
99 standard = True, |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
100 py_modules = []) |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
101 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
102 egg_info.manifest_maker.template = "MANIFEST-SLAVE.in" |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
103 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
104 if os.path.exists(os.path.join(os.path.dirname(__file__), 'MANIFEST.in')): |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
105 available_features = {"master": master} |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
106 else: |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
107 # Building from a slave distribution |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
108 available_features = {} |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
109 |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
110 setup( |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
111 name = 'BittenSlave', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
112 version = '0.7', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
113 author = 'Edgewall Software', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
114 author_email = 'info@edgewall.org', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
115 license = 'BSD', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
116 url = 'http://bitten.edgewall.org/', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
117 download_url = 'http://bitten.edgewall.org/wiki/Download', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
118 zip_safe = False, |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
119 description = 'Continuous integration build slave for Trac', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
120 long_description = "A slave for running builds and submitting them to " \ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
121 "Bitten, the continuous integration system for Trac", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
122 packages = {}, |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
123 py_modules = ["bitten.__init__", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
124 "bitten.build.__init__", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
125 "bitten.build.api", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
126 "bitten.build.config", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
127 "bitten.build.ctools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
128 "bitten.build.hgtools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
129 "bitten.build.javatools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
130 "bitten.build.monotools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
131 "bitten.build.phptools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
132 "bitten.build.pythontools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
133 "bitten.build.shtools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
134 "bitten.build.svntools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
135 "bitten.build.xmltools", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
136 "bitten.recipe", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
137 "bitten.slave", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
138 "bitten.util.__init__", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
139 "bitten.util.loc", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
140 "bitten.util.testrunner", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
141 "bitten.util.xmlio", |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
142 ], |
725
ec76fabc2617
Renaming 'slave_tests' to 'tests_slave' to make it conform to naming convention for tests and be correctly excluded in API docs.
osimons
parents:
687
diff
changeset
|
143 test_suite = 'bitten.tests_slave.suite', |
682
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
144 tests_require = [ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
145 'figleaf', |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
146 ], |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
147 entry_points = { |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
148 'console_scripts': [ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
149 'bitten-slave = bitten.slave:main' |
213
25f84dd9f159
* Refactoring of build recipes, the file format has changed slightly:
cmlenz
parents:
205
diff
changeset
|
150 ], |
682
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
151 'distutils.commands': [ |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
152 'unittest = bitten.util.testrunner:unittest' |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
153 ], |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
154 'bitten.recipe_commands': recipe_commands |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
155 }, |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
156 features = available_features, |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
157 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} |
6511c192a957
0.6dev: Complete rework of the slave-only install to use `setuptools.Feature` to disable the master-parts. This should make all regular distribution commands like 'test', 'sdist', 'bdist_egg' and so on work as intended, and the output can be adjusted using option `--without-master` (master is enabled by default).
osimons
parents:
680
diff
changeset
|
158 ) |