mozautomation: add setup.py and add to reviewboard deployment (Bug 1220232). r=gps
authorbyron jones <glob@mozilla.com>
Wed, 11 Nov 2015 15:29:56 +0800
changeset 361880 c94a76673d3c560bad2c5997622f01992f328dfd
parent 361879 ff5286dd10b3b867eed45c9e30ea644e7554f597
child 361881 f61035162306c003b200381fff4536ffaa33705f
push id16998
push userrwood@mozilla.com
push dateMon, 02 May 2016 19:42:03 +0000
reviewersgps
bugs1220232
mozautomation: add setup.py and add to reviewboard deployment (Bug 1220232). r=gps Promote mozautomation from a raw library to an installable package. Update mozreview's ansible and test scripts to deploy mozautomation.
.hgignore
ansible/roles/docker-rbweb/tasks/main.yml
create-test-environment
pylib/mozautomation/setup.py
--- a/.hgignore
+++ b/.hgignore
@@ -1,12 +1,13 @@
 coverage/
 docs/_build/
 hghooks/Mozilla_Hg_Hooks.egg-info/
 pylib/mozansible/mozansible.egg-info/
+pylib/mozautomation/mozautomation.egg-info/
 pylib/mozreview/mozreview.egg-info/
 pylib/rbbz/rbbz.egg-info/
 pylib/Bugsy/bugsy.egg-info/
 pylib/vcsreplicator/vcsreplicator.egg-info/
 testing/bmoserver/.vagrant
 testing/puppet/files/Mozilla-Bugzilla-Public*
 testing/unifiedserver/.vagrant
 testing/vcttesting.egg-info/
--- a/ansible/roles/docker-rbweb/tasks/main.yml
+++ b/ansible/roles/docker-rbweb/tasks/main.yml
@@ -18,24 +18,23 @@
 - name: install psutil
   pip: virtualenv=/venv
        name=psutil
        version=2.2.1
 
 - name: Synchronize version-control-tools
   synchronize: src={{ vct }}/ dest=/version-control-tools/ recursive=yes delete=yes
 
-- name: Install mozreview extension
-  command: /venv/bin/python setup.py develop chdir=/version-control-tools/pylib/mozreview
-
-- name: Install rbbz extension
-  command: /venv/bin/python setup.py develop chdir=/version-control-tools/pylib/rbbz
-
-- name: Install rbmotd extension
-  command: /venv/bin/python setup.py develop chdir=/version-control-tools/pylib/rbmotd
+- name: Install python libraries
+  command: /venv/bin/python setup.py develop chdir=/version-control-tools/pylib/{{ item }}
+  with_items:
+    - mozautomation
+    - mozreview
+    - rbbz
+    - rbmotd
 
 - name: Remove default httpd configs
   file: path={{ item }} state=absent
   with_items:
     - /etc/httpd/conf.d/welcome.conf
     - /etc/httpd/conf.d/README
 
 - name: Install httpd vhost config
--- a/create-test-environment
+++ b/create-test-environment
@@ -29,16 +29,20 @@ cd ../..
 cd pylib/rbbz
 python setup.py develop
 cd ../..
 
 cd pylib/vcsreplicator
 python setup.py develop
 cd ../..
 
+cd pylib/mozautomation
+python setup.py develop
+cd ../..
+
 cd hghooks
 python setup.py develop
 cd ..
 
 cd testing
 python setup.py develop
 cd ..
 
new file mode 100644
--- /dev/null
+++ b/pylib/mozautomation/setup.py
@@ -0,0 +1,8 @@
+from setuptools import setup
+
+setup(name='mozautomation',
+      version='0.1',
+      description='Support packages for interacting with parts of Mozilla\'s automation infrastructure',
+      author='Mozilla Developer Services',
+      packages = ['mozautomation'],
+)