From 7034db2afea1f9a9473e65d4f3d3ae3eac1df1ad Mon Sep 17 00:00:00 2001
From: dboe <dboe@ipp.mpg.de>
Date: Fri, 17 Jul 2020 19:40:15 +0200
Subject: [PATCH] install matplotlib also for tests

---
 performance/performance_bounding_box.py | 14 +++++++-------
 setup.cfg                               |  3 +++
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/performance/performance_bounding_box.py b/performance/performance_bounding_box.py
index 4af6ebf..3739e00 100644
--- a/performance/performance_bounding_box.py
+++ b/performance/performance_bounding_box.py
@@ -1,19 +1,19 @@
-import tfields
-import numpy as np
+# import tfields
+# import numpy as np
 # import cPickle as pickle
-# 
+#
 # with tfields.lib.log.timeit("Building Grid"):
 #     mesh = tfields.Mesh3D.grid((0, 1, 10), (2, 1, 10), (2, 3, 20))
 #     # mesh = tfields.Mesh3D.grid((0, 1, 50), (2, 1, 20), (2, 3, 50))
 # print(mesh.nfaces())
-# 
+#
 # with open(tfields.lib.in_out.resolve('~/tmp/node.pickle'), 'r') as f:
 #     tree = pickle.load(f)
-# 
+#
 # # with tfields.lib.log.timeit("SEARCHING TREE OFFSET"):
 # #     # tree = tfields.bounding_box.Searcher(mesh, n_sections=[2, 1, 2])
 # tree = tfields.bounding_box.Searcher(mesh)
-# 
+#
 # points = tfields.Tensors([[0.5, 1, 2.1],
 #                           [0.5, 0, 0],
 #                           [0.5, 2, 2]])
@@ -22,6 +22,6 @@ import numpy as np
 # with tfields.lib.log.timeit("STANDARD METHOD"):
 #     usual_res = mesh.in_faces(points, delta=0.0001)
 # assert np.array_equal(box_res, usual_res)
-# 
+#
 # with open(tfields.lib.in_out.resolve('~/tmp/node.pickle'), 'w') as f:
 #     pickle.dump(tree, f)
diff --git a/setup.cfg b/setup.cfg
index d2506f4..9416ce9 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -51,6 +51,7 @@ packages = find:
 [options.packages.find]
 exclude = 
 	tests*
+    performance*
 
 [options.extras_require]
 all = 
@@ -73,6 +74,8 @@ test =
 	pytest-fixture-config
 	pytest-xdist
 
+    matplotlib
+
 [bdist_wheel]
 universal = 1
 
-- 
GitLab