Mercurial > bitten > bitten-test
annotate setup-slave.py @ 630:042c8b49ce7f
0.6dev: Follow-up to [702] - flawed logic in argument testing.
author | osimons |
---|---|
date | Tue, 11 Aug 2009 23:20:13 +0000 |
parents | 327dca35a74f |
children |
rev | line source |
---|---|
511
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
1 #!/usr/bin/env python |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
3 # |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
4 # Copyright (C) 2007 Edgewall Software |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
5 # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
6 # Copyright (C) 2005-2007 David Fraser <davidf@sjsoft.com> |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
7 # All rights reserved. |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
8 # |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
9 # This software is licensed as described in the file COPYING, which |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
10 # you should have received as part of this distribution. The terms |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
11 # are also available at http://bitten.edgewall.org/wiki/License. |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
12 |
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:
511
diff
changeset
|
13 from setuptools import setup as setup_slave |
511
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
14 from setuptools.command import egg_info |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
15 |
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:
511
diff
changeset
|
16 from setup import recipe_commands, shared_args |
511
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
17 |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
18 # TODO: there must be a way to pass this altered value in... |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
19 egg_info.manifest_maker.template = "MANIFEST-SLAVE.in" |
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
20 |
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:
511
diff
changeset
|
21 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:
511
diff
changeset
|
22 setup_slave( |
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:
511
diff
changeset
|
23 name = 'Bitten-Slave', |
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:
511
diff
changeset
|
24 description = 'Continuous integration build slave 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:
511
diff
changeset
|
25 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:
511
diff
changeset
|
26 """A slave for running builds and submitting them to Bitten, the continuous integration system for Trac""", |
511
79bf2969613d
Added version of `setup.py` that handles building just the slave modules. See #367
dfraser
parents:
diff
changeset
|
27 |
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:
511
diff
changeset
|
28 py_modules = ["bitten.__init__", |
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:
511
diff
changeset
|
29 "bitten.build.__init__", |
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:
511
diff
changeset
|
30 "bitten.build.api", |
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:
511
diff
changeset
|
31 "bitten.build.config", |
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:
511
diff
changeset
|
32 "bitten.build.ctools", |
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:
511
diff
changeset
|
33 "bitten.build.hgtools", |
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:
511
diff
changeset
|
34 "bitten.build.javatools", |
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:
511
diff
changeset
|
35 "bitten.build.monotools", |
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:
511
diff
changeset
|
36 "bitten.build.phptools", |
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:
511
diff
changeset
|
37 "bitten.build.pythontools", |
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:
511
diff
changeset
|
38 "bitten.build.shtools", |
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:
511
diff
changeset
|
39 "bitten.build.svntools", |
617
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
40 "bitten.build.tests.__init__", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
41 "bitten.build.tests.api", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
42 "bitten.build.tests.config", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
43 "bitten.build.tests.ctools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
44 "bitten.build.tests.dummy", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
45 "bitten.build.tests.hgtools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
46 "bitten.build.tests.javatools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
47 "bitten.build.tests.monotools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
48 "bitten.build.tests.phptools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
49 "bitten.build.tests.pythontools", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
50 "bitten.build.tests.xmltools", |
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:
511
diff
changeset
|
51 "bitten.build.xmltools", |
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:
511
diff
changeset
|
52 "bitten.recipe", |
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:
511
diff
changeset
|
53 "bitten.slave", |
617
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
54 "bitten.slave_tests.__init__", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
55 "bitten.slave_tests.recipe", |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
56 "bitten.slave_tests.slave", |
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:
511
diff
changeset
|
57 "bitten.util.__init__", |
617
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
58 "bitten.util.loc", |
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:
511
diff
changeset
|
59 "bitten.util.testrunner", |
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:
511
diff
changeset
|
60 "bitten.util.xmlio", |
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:
511
diff
changeset
|
61 ], |
617
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
62 test_suite = 'bitten.slave_tests.suite', |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
63 tests_require = [ |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
64 'figleaf', |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
65 ], |
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:
511
diff
changeset
|
66 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:
511
diff
changeset
|
67 'console_scripts': [ |
617
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
68 'bitten-slave = bitten.slave:main', |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
69 ], |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
70 'distutils.commands': [ |
327dca35a74f
Extensions to allow running all appropriate unittests from `Bitten-Slave` distribution:
dfraser
parents:
598
diff
changeset
|
71 'unittest = bitten.util.testrunner:unittest', |
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:
511
diff
changeset
|
72 ], |
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:
511
diff
changeset
|
73 '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:
511
diff
changeset
|
74 }, |
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:
511
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:
511
diff
changeset
|
76 **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:
511
diff
changeset
|
77 ) |