aurora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zma...@apache.org
Subject aurora git commit: Place api_util.py inside a `pants_library` target.
Date Mon, 18 May 2015 21:10:28 GMT
Repository: aurora
Updated Branches:
  refs/heads/master 16c990f59 -> 920263b0e


Place api_util.py inside a `pants_library` target.

This places `api_util.py` inside a `pants_library` target and has the two
consumer targets depend on that file explicitly.

Testing Done:
./pants test.pytest --no-fast --options='-v' src/test/python::

Bugs closed: AURORA-1325

Reviewed at https://reviews.apache.org/r/34372/


Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/920263b0
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/920263b0
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/920263b0

Branch: refs/heads/master
Commit: 920263b0ed3ee3472534864a3e148f608b94ae0c
Parents: 16c990f
Author: Zameer Manji <zmanji@apache.org>
Authored: Mon May 18 14:10:25 2015 -0700
Committer: zmanji@apache.org <zmanji@twitter.com>
Committed: Mon May 18 14:10:25 2015 -0700

----------------------------------------------------------------------
 src/test/python/apache/aurora/BUILD            | 9 +++++++++
 src/test/python/apache/aurora/admin/BUILD      | 3 ++-
 src/test/python/apache/aurora/client/cli/BUILD | 1 +
 3 files changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/920263b0/src/test/python/apache/aurora/BUILD
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/BUILD b/src/test/python/apache/aurora/BUILD
index 885e610..0701440 100644
--- a/src/test/python/apache/aurora/BUILD
+++ b/src/test/python/apache/aurora/BUILD
@@ -22,3 +22,12 @@ python_test_suite(
     'src/test/python/apache/aurora/executor:all',
   ]
 )
+
+python_library(
+  name = 'api_util',
+  sources = [ 'api_util.py' ],
+  dependencies = [
+    'api/src/main/thrift/org/apache/aurora/gen:py-thrift',
+    'src/main/python/apache/aurora/client/api:scheduler_client',
+  ]
+)

http://git-wip-us.apache.org/repos/asf/aurora/blob/920263b0/src/test/python/apache/aurora/admin/BUILD
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/admin/BUILD b/src/test/python/apache/aurora/admin/BUILD
index 89cd875..69da2c9 100644
--- a/src/test/python/apache/aurora/admin/BUILD
+++ b/src/test/python/apache/aurora/admin/BUILD
@@ -67,8 +67,9 @@ python_library(
   sources = [ 'util.py' ],
   dependencies = [
     '3rdparty/python:mock',
-    'src/main/python/apache/aurora/client/hooks:hooks',
     'api/src/main/thrift/org/apache/aurora/gen:py-thrift',
+    'src/main/python/apache/aurora/client/hooks:hooks',
     'src/main/python/apache/aurora/client:config',
+    'src/test/python/apache/aurora:api_util',
   ],
 )

http://git-wip-us.apache.org/repos/asf/aurora/blob/920263b0/src/test/python/apache/aurora/client/cli/BUILD
----------------------------------------------------------------------
diff --git a/src/test/python/apache/aurora/client/cli/BUILD b/src/test/python/apache/aurora/client/cli/BUILD
index 5d92296..26d11a3 100644
--- a/src/test/python/apache/aurora/client/cli/BUILD
+++ b/src/test/python/apache/aurora/client/cli/BUILD
@@ -39,6 +39,7 @@ python_library(
   dependencies = [
     '3rdparty/python:mock',
     'src/main/python/apache/aurora/client/cli',
+    'src/test/python/apache/aurora:api_util',
   ]
 )
 


Mime
View raw message