changeset 511:79bf2969613d

Added version of `setup.py` that handles building just the slave modules. See #367
author dfraser
date Wed, 11 Mar 2009 12:42:36 +0000
parents 3f86ca16d552
children a68da2b81220
files MANIFEST-SLAVE.in setup-slave.py
diffstat 2 files changed, 75 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/MANIFEST-SLAVE.in
@@ -0,0 +1,26 @@
+prune bitten/htdocs/
+prune bitten/templates/
+prune doc
+prune scripts/
+exclude bitten/*.py
+exclude bitten/build/*.py
+exclude bitten/build/*.py
+exclude bitten/build/tests/*.py
+exclude bitten/report/*.py
+exclude bitten/report/tests/*.py
+exclude bitten/tests/*.py
+exclude bitten/util/*.py
+exclude bitten/util/tests/*.py
+exclude setup.py
+exclude MANIFEST.in
+include bitten/__init__.py
+include bitten/build/__init__.py
+include bitten/build/api.py
+include bitten/build/config.py
+include bitten/recipe.py
+include bitten/slave.py
+include bitten/tests/slave.py
+include bitten/util/__init__.py
+include bitten/util/testrunner.py
+include bitten/util/xmlio.py
+
new file mode 100755
--- /dev/null
+++ b/setup-slave.py
@@ -0,0 +1,49 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2007 Edgewall Software
+# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
+# Copyright (C) 2005-2007 David Fraser <davidf@sjsoft.com>
+# All rights reserved.
+#
+# This software is licensed as described in the file COPYING, which
+# you should have received as part of this distribution. The terms
+# are also available at http://bitten.edgewall.org/wiki/License.
+
+from setuptools import setup
+from setuptools.command import egg_info
+
+NS = 'http://bitten.cmlenz.net/tools/'
+
+# TODO: there must be a way to pass this altered value in...
+egg_info.manifest_maker.template = "MANIFEST-SLAVE.in"
+
+setup(
+    name = 'Bitten-Slave',
+    version = '0.6',
+    description = 'Continuous integration build slave for Trac',
+    long_description = \
+"""A slave for running builds and submitting them to Bitten, the continuous integration system for Trac""",
+    author = 'Edgewall Software',
+    author_email = 'info@edgewall.org',
+    license = 'BSD',
+    url = 'http://bitten.edgewall.org/',
+    download_url = 'http://bitten.edgewall.org/wiki/Download',
+    zip_safe = False,
+
+    py_modules = ["bitten.__init__", "bitten.slave",
+                 "bitten.build.__init__", "bitten.build.api", "bitten.build.config",
+                 "bitten.recipe", "bitten.tests.slave",
+                 "bitten.util.__init__", "bitten.util.testrunner", "bitten.util.xmlio",
+                ],
+    test_suite = 'bitten.tests.slave',
+    entry_points = {
+        'console_scripts': [
+            'bitten-slave = bitten.slave:main'
+        ],
+        'distutils.commands': [
+            'unittest = bitten.util.testrunner:unittest'
+        ],
+    },
+)
+
Copyright (C) 2012-2017 Edgewall Software