Yuvipanda has submitted this change and it was merged.

Change subject: Rename package to labsdb.auditor
......................................................................


Rename package to labsdb.auditor

Change-Id: I6d11e1c17993755dfc42329e2e35df1d72dfa15a
---
A labsdb/__init__.py
R labsdb/auditor/__init__.py
R labsdb/auditor/audit.py
R labsdb/auditor/models.py
R labsdb/auditor/reports/__init__.py
R labsdb/auditor/reports/databases.py
R labsdb/auditor/reports/tables.py
R labsdb/auditor/reports/viewdiffs.py
R labsdb/auditor/runner.py
R labsdb/auditor/utils.py
10 files changed, 12 insertions(+), 12 deletions(-)

Approvals:
  Yuvipanda: Verified; Looks good to me, approved



diff --git a/labsdb/__init__.py b/labsdb/__init__.py
new file mode 100644
index 0000000..cc348bc
--- /dev/null
+++ b/labsdb/__init__.py
@@ -0,0 +1 @@
+__author__ = 'ypanda'
diff --git a/auditor/__init__.py b/labsdb/auditor/__init__.py
similarity index 100%
rename from auditor/__init__.py
rename to labsdb/auditor/__init__.py
diff --git a/auditor/audit.py b/labsdb/auditor/audit.py
similarity index 97%
rename from auditor/audit.py
rename to labsdb/auditor/audit.py
index c3d6a6b..d49fa5a 100644
--- a/auditor/audit.py
+++ b/labsdb/auditor/audit.py
@@ -27,12 +27,11 @@
 """
 import argparse
 import logging
+
 import yaml
-
 from runner import ReportRunner
-
 from reports.databases import databases_report
-from reports.tables import extra_tables_report
+from labsdb.auditor.reports.tables import extra_tables_report
 from reports.viewdiffs import views_schema_diff_report
 
 
diff --git a/auditor/models.py b/labsdb/auditor/models.py
similarity index 98%
rename from auditor/models.py
rename to labsdb/auditor/models.py
index 0424f25..7dd4720 100644
--- a/auditor/models.py
+++ b/labsdb/auditor/models.py
@@ -17,7 +17,7 @@
 import yaml
 import os
 
-from utils import diff_iters
+from labsdb.auditor.utils import diff_iters
 
 
 class Column(object):
diff --git a/auditor/reports/__init__.py b/labsdb/auditor/reports/__init__.py
similarity index 100%
rename from auditor/reports/__init__.py
rename to labsdb/auditor/reports/__init__.py
diff --git a/auditor/reports/databases.py b/labsdb/auditor/reports/databases.py
similarity index 96%
rename from auditor/reports/databases.py
rename to labsdb/auditor/reports/databases.py
index db1fc55..92993bf 100644
--- a/auditor/reports/databases.py
+++ b/labsdb/auditor/reports/databases.py
@@ -13,7 +13,7 @@
 # limitations under the License.
 import re
 
-from auditor.utils import get_databases
+from labsdb.auditor.utils import get_databases
 
 
 def databases_report(config, model, conn):
diff --git a/auditor/reports/tables.py b/labsdb/auditor/reports/tables.py
similarity index 96%
rename from auditor/reports/tables.py
rename to labsdb/auditor/reports/tables.py
index 4e65895..f25fe7f 100644
--- a/auditor/reports/tables.py
+++ b/labsdb/auditor/reports/tables.py
@@ -12,9 +12,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import logging
-import MySQLdb
 
-from auditor.utils import get_tables, diff_iters
+import MySQLdb
+from labsdb.auditor.utils import get_tables, diff_iters
 
 
 def _get_extra_tables(model, conn, dbs):
diff --git a/auditor/reports/viewdiffs.py b/labsdb/auditor/reports/viewdiffs.py
similarity index 98%
rename from auditor/reports/viewdiffs.py
rename to labsdb/auditor/reports/viewdiffs.py
index 1672085..d3f5460 100644
--- a/auditor/reports/viewdiffs.py
+++ b/labsdb/auditor/reports/viewdiffs.py
@@ -11,13 +11,13 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-import re
 import copy
 import logging
-from pyparsing import OneOrMore, Optional, Word, SkipTo, StringEnd, alphanums
 
+import re
+from pyparsing import OneOrMore, Optional, Word, SkipTo, StringEnd, alphanums
 from auditor.models import Column, Table
-from auditor.utils import get_tables, diff_iters, common_iters
+from labsdb.auditor.utils import get_tables, diff_iters, common_iters
 
 
 def _diff(expected, actual, fields):
diff --git a/auditor/runner.py b/labsdb/auditor/runner.py
similarity index 97%
rename from auditor/runner.py
rename to labsdb/auditor/runner.py
index 6472488..f80bb06 100644
--- a/auditor/runner.py
+++ b/labsdb/auditor/runner.py
@@ -12,10 +12,10 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 import logging
-import MySQLdb
 import time
 
-from models import Model
+import MySQLdb
+from labsdb.auditor.models import Model
 
 
 class ReportRunner(object):
diff --git a/auditor/utils.py b/labsdb/auditor/utils.py
similarity index 100%
rename from auditor/utils.py
rename to labsdb/auditor/utils.py

-- 
To view, visit https://gerrit.wikimedia.org/r/184577
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6d11e1c17993755dfc42329e2e35df1d72dfa15a
Gerrit-PatchSet: 2
Gerrit-Project: operations/software/labsdb-auditor
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to