From fd14971c657540937744db177bf5c514b00814d1 Mon Sep 17 00:00:00 2001
From: Tue Herlau <tuhe@dtu.dk>
Date: Fri, 14 Jul 2023 20:38:13 +0200
Subject: [PATCH] Removed many requirements

---
 requirements.txt                              | 14 +------
 src/coursebox_testing.egg-info/PKG-INFO       | 37 +++++++++++++++++++
 src/coursebox_testing.egg-info/SOURCES.txt    | 12 ++++++
 .../dependency_links.txt                      |  1 +
 src/coursebox_testing.egg-info/requires.txt   |  1 +
 src/coursebox_testing.egg-info/top_level.txt  |  1 +
 src/coursebox_testing/testing/testing.py      | 22 +++++++----
 7 files changed, 68 insertions(+), 20 deletions(-)
 create mode 100644 src/coursebox_testing.egg-info/PKG-INFO
 create mode 100644 src/coursebox_testing.egg-info/SOURCES.txt
 create mode 100644 src/coursebox_testing.egg-info/dependency_links.txt
 create mode 100644 src/coursebox_testing.egg-info/requires.txt
 create mode 100644 src/coursebox_testing.egg-info/top_level.txt

diff --git a/requirements.txt b/requirements.txt
index 6391557..a5d5159 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,13 +1 @@
-openpyxl
-tika
-xlwings
-pybtex
-langdetect
-wexpect
-pexpect
-matplotlib
-numpy
-pycode_similar
-jinjafy
-beamer-slider
-tinydb
+tabulate
diff --git a/src/coursebox_testing.egg-info/PKG-INFO b/src/coursebox_testing.egg-info/PKG-INFO
new file mode 100644
index 0000000..08aa412
--- /dev/null
+++ b/src/coursebox_testing.egg-info/PKG-INFO
@@ -0,0 +1,37 @@
+Metadata-Version: 2.1
+Name: coursebox-testing
+Version: 0.0.1
+Summary: A course management system currently used at DTU (testing software)
+Home-page: https://lab.compute.dtu.dk/tuhe/coursebox_testing
+Author: Tue Herlau
+Author-email: tuhe@dtu.dk
+License: MIT
+Project-URL: Bug Tracker, https://lab.compute.dtu.dk/tuhe/coursebox_testing/issues
+Classifier: Programming Language :: Python :: 3
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Operating System :: OS Independent
+Requires-Python: >=3.8
+Description-Content-Type: text/markdown
+License-File: LICENSE
+
+# Coursebox DTU (testing tools)
+DTU course management software (testing plugins)
+
+## Installation
+```terminal
+pip install git+https://gitlab.compute.dtu.dk/tuhe/coursebox_testing
+```
+
+
+## Citing
+```bibtex
+@online{coursebox,
+	title={Coursebox (0.1.1): \texttt{pip install coursebox}},
+	url={https://lab.compute.dtu.dk/tuhe/coursebox},
+	urldate = {2021-09-07}, 
+	month={9},
+	publisher={Technical University of Denmark (DTU)},
+	author={Tue Herlau},
+	year={2023},
+}
+```
diff --git a/src/coursebox_testing.egg-info/SOURCES.txt b/src/coursebox_testing.egg-info/SOURCES.txt
new file mode 100644
index 0000000..c8b57a4
--- /dev/null
+++ b/src/coursebox_testing.egg-info/SOURCES.txt
@@ -0,0 +1,12 @@
+LICENSE
+README.md
+pyproject.toml
+setup.py
+src/coursebox_testing/__init__.py
+src/coursebox_testing.egg-info/PKG-INFO
+src/coursebox_testing.egg-info/SOURCES.txt
+src/coursebox_testing.egg-info/dependency_links.txt
+src/coursebox_testing.egg-info/requires.txt
+src/coursebox_testing.egg-info/top_level.txt
+src/coursebox_testing/testing/__init__.py
+src/coursebox_testing/testing/testing.py
\ No newline at end of file
diff --git a/src/coursebox_testing.egg-info/dependency_links.txt b/src/coursebox_testing.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/src/coursebox_testing.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/src/coursebox_testing.egg-info/requires.txt b/src/coursebox_testing.egg-info/requires.txt
new file mode 100644
index 0000000..237728b
--- /dev/null
+++ b/src/coursebox_testing.egg-info/requires.txt
@@ -0,0 +1 @@
+unitgrade
diff --git a/src/coursebox_testing.egg-info/top_level.txt b/src/coursebox_testing.egg-info/top_level.txt
new file mode 100644
index 0000000..c730461
--- /dev/null
+++ b/src/coursebox_testing.egg-info/top_level.txt
@@ -0,0 +1 @@
+coursebox_testing
diff --git a/src/coursebox_testing/testing/testing.py b/src/coursebox_testing/testing/testing.py
index 83de18f..4f12bf6 100644
--- a/src/coursebox_testing/testing/testing.py
+++ b/src/coursebox_testing/testing/testing.py
@@ -1,8 +1,9 @@
+from subprocess import run
 import subprocess
 import time
 from collections import defaultdict
 import glob
-import tabulate
+import sys
 import sys
 import warnings
 
@@ -14,14 +15,11 @@ def check_by_grade_script(student_dir, module):
     :param module:
     :return:
     """
-    import sys
-    # from unitgrade.utils import
-    # from unitgrade_private.run import run # Don't use tihs as it is not available during test.
+
 
     cmd = f"cd {student_dir} && {sys.executable} -m {module}"
 
     # output = subprocess.check_output(f"cd {student_dir} && {sys.executable} -m {module}", shell=True, check=False)
-    from subprocess import run
     print("Running command", cmd)
     p = run(cmd, capture_output=True, check=False, shell=True)
     print('exit status:', p.returncode)
@@ -103,7 +101,7 @@ def check_py_script(student_dir, module):
 #     return p, total, out
 
 def check_pyhon_documentation_in_student_repo(student_dir_complete=None, package="cp"):
-    from interrogate import coverage
+
     if student_dir_complete is None:
         # It is important to not import cp_box here during CI/CD. The coursebox packages is not/should not be installed.
         from cp_box import cp_main
@@ -340,5 +338,15 @@ def _run_student_tests(student_dir_base=None, weeks=None, projects=None, fail_if
         dd['Points total'].append(val['t1'])
         dd['Time taken'].append(int(val['time1']))
 
-    print(tabulate.tabulate(dd, headers='keys'))
+    try:
+        import tabulate
+        print(tabulate.tabulate(dd, headers='keys'))
+    except Exception as e:
+        print("No tabulate so you get the bad version: \n\n")
+        i = 0
+        print(" | ".join([k for k in dd]))
+        while True:
+            print( " | ".join( [dd[k][i] for k in dd] ) )
+            i += 1
+
 
-- 
GitLab