Skip to content
Snippets Groups Projects
Commit 47e544f3 authored by tuhe's avatar tuhe
Browse files

tmp updates

parent 94ec3ae5
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh: ...@@ -13,7 +13,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
setuptools.setup( setuptools.setup(
name="coursebox", name="coursebox",
version="0.1.20.1", version="0.1.20.3",
author="Tue Herlau", author="Tue Herlau",
author_email="tuhe@dtu.dk", author_email="tuhe@dtu.dk",
description="A course management system currently used at DTU", description="A course management system currently used at DTU",
......
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: coursebox Name: coursebox
Version: 0.1.20.1 Version: 0.1.20.3
Summary: A course management system currently used at DTU Summary: A course management system currently used at DTU
Home-page: https://lab.compute.dtu.dk/tuhe/coursebox Home-page: https://lab.compute.dtu.dk/tuhe/coursebox
Author: Tue Herlau Author: Tue Herlau
......
...@@ -23,18 +23,21 @@ def setup_student_files(run_files=True, ...@@ -23,18 +23,21 @@ def setup_student_files(run_files=True,
midterms=None, # Can be a list: [0, 1] midterms=None, # Can be a list: [0, 1]
include_docs=False, # Include the documentation directory, i.e. 02465public/src/docs. 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. 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, # fix_shared_files_func=None,
): ):
if midterms is None: if midterms is None:
midterms = [] midterms = []
from coursebox.core import info_paths from coursebox.core import info_paths
# from coursebox.core.info import class_information from coursebox.core.info import class_information
# info = class_information() # info = class_information()
from coursebox.core.info import core_conf 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: 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." 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, ...@@ -158,8 +161,6 @@ def setup_student_files(run_files=True,
if len(hws) > 0: if len(hws) > 0:
info = class_information(verbose=verbose) info = class_information(verbose=verbose)
# print("references") # Bad idea because of the very long output.
# print(info['references']['commands'])
else: else:
info = None info = None
for hw in hws: for hw in hws:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment