From 47e544f39ea04a5f82e9d153ffd8bd57a6f553e9 Mon Sep 17 00:00:00 2001 From: Tue Herlau <tuhe@dtu.dk> Date: Thu, 11 Jul 2024 17:38:51 +0200 Subject: [PATCH] tmp updates --- setup.py | 2 +- src/coursebox.egg-info/PKG-INFO | 2 +- src/coursebox/student_files/student_files.py | 13 +++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 3d3630f..d696390 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: setuptools.setup( name="coursebox", - version="0.1.20.1", + version="0.1.20.3", author="Tue Herlau", author_email="tuhe@dtu.dk", description="A course management system currently used at DTU", diff --git a/src/coursebox.egg-info/PKG-INFO b/src/coursebox.egg-info/PKG-INFO index 3c9d50a..d412688 100644 --- a/src/coursebox.egg-info/PKG-INFO +++ b/src/coursebox.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: coursebox -Version: 0.1.20.1 +Version: 0.1.20.3 Summary: A course management system currently used at DTU Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Author: Tue Herlau diff --git a/src/coursebox/student_files/student_files.py b/src/coursebox/student_files/student_files.py index 5d9c782..2d53472 100644 --- a/src/coursebox/student_files/student_files.py +++ b/src/coursebox/student_files/student_files.py @@ -23,18 +23,21 @@ def setup_student_files(run_files=True, midterms=None, # Can be a list: [0, 1] include_docs=False, # Include the documentation directory, i.e. 02465public/src/docs. convert_svg=True, # Whether to convert SVG file when deploying. Leave to true, unless we are doing CI/CD in which case inkscape may not be installed. - package="cp", + # package="cp", # fix_shared_files_func=None, ): if midterms is None: midterms = [] from coursebox.core import info_paths - # from coursebox.core.info import class_information + from coursebox.core.info import class_information # info = class_information() from coursebox.core.info import core_conf - PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] - + # if 'package' not in core_conf: + if len(core_conf['projects_all']) > 0: + PACKAGE = list(core_conf['projects_all'].values()).pop()['module_public'].split(".")[0] + else: + PACKAGE = list(core_conf['weeks_all'].values()).pop()['module_public'].split(".")[0] if censor_files: assert not run_files, "You cannot run files while you are censoring them -- your scripts will crash. Call with run_files=False." @@ -158,8 +161,6 @@ def setup_student_files(run_files=True, if len(hws) > 0: info = class_information(verbose=verbose) - # print("references") # Bad idea because of the very long output. - # print(info['references']['commands']) else: info = None for hw in hws: -- GitLab