https://pantsbuild.org/ logo
#general
Title
# general
e

enough-analyst-54434

05/11/2016, 3:41 PM
This works for me:
Copy code
diff
$ git diff --cached -U1
diff --git a/BUILD b/BUILD
index 1dd58f3..37430c5 100644
--- a/BUILD
+++ b/BUILD
@@ -3,16 +3,2 @@ python_library(
   sources = globs('snmp_exporter/*.py'),
-  dependencies = [
-  ],
-)
-
-python_requirement('prometheus_client', name = 'prometheus_client')
-python_requirement('pyyaml', name = 'pyyaml')
-python_requirement('netsnmp-py', name = 'netsnmp-py')
-
-python_binary(
-  name = 'main',
-  source = 'scripts/snmp_exporter',
-  dependencies = [
-    ':snmp_exporter',
-  ],
 )
diff --git a/scripts/BUILD b/scripts/BUILD
new file mode 100644
index 0000000..a7a7dc3
--- /dev/null
+++ b/scripts/BUILD
@@ -0,0 +1,7 @@
+python_binary(
+  name = 'main',
+  source = 'snmpexporter.py',
+  dependencies = [
+    '//:snmp_exporter',
+  ],
+)
diff --git a/scripts/snmp_exporter b/scripts/snmpexporter.py
similarity index 100%
rename from scripts/snmp_exporter
rename to scripts/snmpexporter.py