From 649cda8873d0860d926a6ae9daefc1bfbbffab37 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Sat, 26 Aug 2023 01:07:10 +0200 Subject: [PATCH] Release for profound --- src/unitgrade.egg-info/PKG-INFO | 2 +- src/unitgrade/framework.py | 8 +++++--- src/unitgrade/version.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/unitgrade.egg-info/PKG-INFO b/src/unitgrade.egg-info/PKG-INFO index ec77f8e..e790654 100644 --- a/src/unitgrade.egg-info/PKG-INFO +++ b/src/unitgrade.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: unitgrade -Version: 0.1.30.15 +Version: 1.0.0.0 Summary: A student homework/exam evaluation framework build on pythons unittest framework. Home-page: https://lab.compute.dtu.dk/tuhe/unitgrade Author: Tue Herlau diff --git a/src/unitgrade/framework.py b/src/unitgrade/framework.py index b84c10f..404d307 100644 --- a/src/unitgrade/framework.py +++ b/src/unitgrade/framework.py @@ -85,7 +85,7 @@ class Report: pack_imports = [] individual_imports = [] - _remote_check_cooldown_seconds = 1 # Seconds between remote check of report. + _remote_check_cooldown_seconds = 60*60*2 # Seconds between remote check of report. nL = 120 # Maximum line width _config = None # Private variable. Used when collecting results from student computers. Should only be read/written by teacher and never used for regular evaluation. _setup_mode = False # True if test is being run in setup-mode, i.e. will not fail because of bad configurations, etc. @@ -219,8 +219,8 @@ class Report: print(self._file()) raise Exception("Unitgrade> You are trying to check the remote version of a *_tests_complete.py-file, and you will potentially overwrite part of this file.") - print("CHECKING THE REMOTE VERSION. ") - + # print("CHECKING THE REMOTE VERSION. ") + print("Unitgrade> Checking the remote version...") url = self.url if not url.endswith("/"): url += "/" @@ -232,6 +232,8 @@ class Report: t = db['last_check_time'] if (time.time() - t) < self._remote_check_cooldown_seconds: return + db['last_check_time'] = time.time() + if self.url.startswith("https://gitlab"): # Try to turn url into a 'raw' format. diff --git a/src/unitgrade/version.py b/src/unitgrade/version.py index 931cb7b..d566769 100644 --- a/src/unitgrade/version.py +++ b/src/unitgrade/version.py @@ -1 +1 @@ -__version__ = "0.1.30.15" +__version__ = "1.0.0.0" -- GitLab