Bug 620987: add a setup.py for 'buildtools'
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 22 Dec 2010 13:19:25 -0600
changeset 1033 a1e1ad0610bdaf1131944832e3c6b4142ee41f02
parent 1032 0ed4d242206b1c2808b815567bd7603352a630f9
child 1034 0d031b89f0a38584b64aa6f9ebd85c24c79599a3
push id724
push userdmitchell@mozilla.com
push dateWed, 22 Dec 2010 19:19:53 +0000
bugs620987
Bug 620987: add a setup.py for 'buildtools'
.hgignore
lib/python/buildtools/__init__.py
lib/python/buildtools/test/__init__.py
lib/python/buildtools/test/init_hgrepo.sh
lib/python/buildtools/test/test_util_commands.py
lib/python/buildtools/test/test_util_file.py
lib/python/buildtools/test/test_util_hg.py
lib/python/test/__init__.py
lib/python/test/init_hgrepo.sh
lib/python/test/test_util_commands.py
lib/python/test/test_util_file.py
lib/python/test/test_util_hg.py
setup.py
--- a/.hgignore
+++ b/.hgignore
@@ -1,6 +1,7 @@
 \.pyc$
 moz-n810-v
 moz-n900-v
 flasher-
 RX-44
 RX-51
+build/
new file mode 100644
new file mode 100644
rename from lib/python/test/init_hgrepo.sh
rename to lib/python/buildtools/test/init_hgrepo.sh
rename from lib/python/test/test_util_commands.py
rename to lib/python/buildtools/test/test_util_commands.py
rename from lib/python/test/test_util_file.py
rename to lib/python/buildtools/test/test_util_file.py
rename from lib/python/test/test_util_hg.py
rename to lib/python/buildtools/test/test_util_hg.py
deleted file mode 100644
new file mode 100755
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,17 @@
+#! /usr/bin/env python
+
+from setuptools import setup, find_packages
+
+setup(
+    name="buildtools",
+    version="1.0",
+    description="Mozilla RelEng Toolkit",
+    author = "Release Engineers",
+    author_email = "release@mozilla.com",
+
+    # python packages are under lib/python
+    packages = find_packages("lib/python"),
+    package_dir = { '' : "lib/python" },
+
+    test_suite = 'buildtools.test',
+)