assignment-codeval 0.0.34__py3-none-any.whl → 0.0.35__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -679,18 +679,22 @@ def evaluate_submissions(codeval_dir, submissions_dir):
679
679
 
680
680
  # Now extract zip files to the correct working directory
681
681
  if not move_to_next_submission:
682
- for zf_name in zip_files:
683
- with ZipFile(os.path.join(codeval_dir, zf_name)) as zf:
684
- if "SUBSTITUTIONS.txt" in zf.namelist():
685
- with open(os.path.join(dirpath, "SUBSTITUTIONS.txt"), "wb") as out_f:
686
- out_f.write(zf.read("SUBSTITUTIONS.txt"))
687
- for f in zf.infolist():
688
- dest_dir = os.path.join(submission_dir, assignment_working_dir)
689
- zf.extract(f, dest_dir)
690
- if not f.is_dir():
691
- perms = f.external_attr >> 16
692
- if perms:
693
- os.chmod(os.path.join(dest_dir, f.filename), perms)
682
+ try:
683
+ for zf_name in zip_files:
684
+ with ZipFile(os.path.join(codeval_dir, zf_name)) as zf:
685
+ if "SUBSTITUTIONS.txt" in zf.namelist():
686
+ with open(os.path.join(dirpath, "SUBSTITUTIONS.txt"), "wb") as out_f:
687
+ out_f.write(zf.read("SUBSTITUTIONS.txt"))
688
+ for f in zf.infolist():
689
+ dest_dir = os.path.join(submission_dir, assignment_working_dir)
690
+ zf.extract(f, dest_dir)
691
+ if not f.is_dir():
692
+ perms = f.external_attr >> 16
693
+ if perms:
694
+ os.chmod(os.path.join(dest_dir, f.filename), perms)
695
+ except Exception as e:
696
+ out = f"Problem extracting test files: {e}".encode('utf-8')
697
+ move_to_next_submission = True
694
698
 
695
699
  if not move_to_next_submission:
696
700
  # Mount the whole submission and cd to the working directory
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: assignment-codeval
3
- Version: 0.0.34
3
+ Version: 0.0.35
4
4
  Summary: CodEval for evaluating programming assignments
5
5
  Requires-Python: >=3.12
6
6
  Description-Content-Type: text/markdown
@@ -12,10 +12,10 @@ assignment_codeval/file_utils.py,sha256=vAFnPaA4p6BQabkn034SacBFhV_Mpib2sbZOxvk-
12
12
  assignment_codeval/github_connect.py,sha256=4Fc9UusgXTqwlvNW-ppVKCfNnQM0Gp17oXWkUK4OWiY,6659
13
13
  assignment_codeval/install_assignment.py,sha256=HsXzTex4G-U3t4tb-HyQ2AobBDBPcKeR6oAUDFqBP-A,4599
14
14
  assignment_codeval/recent_comments.py,sha256=WelZpODSvZ5hbRn2IofEpqMwrvHx8haOG4KZJCvHYKw,9415
15
- assignment_codeval/submissions.py,sha256=Kg2DBtSSFhN_C1ePUIKUn5VW5TIVw2_7Giu2PpLdSOA,46366
15
+ assignment_codeval/submissions.py,sha256=uYjf33Mcatowv5RhlB02O6phuZZOP9a9LvVcpAiYjRo,46589
16
16
  assignment_codeval/test_template.html,sha256=c0e2lUurSalF4PpLIVWQCXirXeA8PvB4pzWe-kFS-9Y,3382
17
- assignment_codeval-0.0.34.dist-info/METADATA,sha256=y6OHiCYpxNb-8DEepajODCVbPQCTGlG-yG7WYDrGDuo,7757
18
- assignment_codeval-0.0.34.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
19
- assignment_codeval-0.0.34.dist-info/entry_points.txt,sha256=Pk0eAhsXBpCsgkv6HYLSHTRf5x_zUf-Lg8KK9KsK2B8,66
20
- assignment_codeval-0.0.34.dist-info/top_level.txt,sha256=a_P8W2IWjAELxKlTV2t4rLwWVoTxElxUMvWgWjR_1n4,19
21
- assignment_codeval-0.0.34.dist-info/RECORD,,
17
+ assignment_codeval-0.0.35.dist-info/METADATA,sha256=wkSFgwEqAfGEG0JJz5m8_uNr8OBloPzIylt3sebDcjg,7757
18
+ assignment_codeval-0.0.35.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
19
+ assignment_codeval-0.0.35.dist-info/entry_points.txt,sha256=Pk0eAhsXBpCsgkv6HYLSHTRf5x_zUf-Lg8KK9KsK2B8,66
20
+ assignment_codeval-0.0.35.dist-info/top_level.txt,sha256=a_P8W2IWjAELxKlTV2t4rLwWVoTxElxUMvWgWjR_1n4,19
21
+ assignment_codeval-0.0.35.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (84.0.0)
2
+ Generator: setuptools (84.2.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5