otter-service-stdalone 1.1.9__py3-none-any.whl → 1.1.11__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.
@@ -1 +1 @@
1
- __version__ = "1.1.9"
1
+ __version__ = "1.1.11"
@@ -275,9 +275,9 @@ class Upload(BaseHandler):
275
275
  m = "Step 3A: Uploaded autograder.zip files written to disk - now checking otter version"
276
276
  log.write_logs(results_path, m, f"Results Code: {results_path}", "debug", log_debug)
277
277
  if not otter_version_correct(auto_p):
278
- m = "Step 3A-1: autograder.zip is wrong version of otter-grader; must be > 5.5.0"
278
+ m = "Step 3A-1: autograder.zip is wrong version of otter-grader; must be >= 5.5.0"
279
279
  log.write_logs(results_path, m, f"Results Code: {results_path}", "debug", log_debug)
280
- m = "You need to make sure the autograder.zip uses otter-grader version >5.5.0. BUT you do not need "
280
+ m = "You need to make sure the autograder.zip uses otter-grader version >=5.5.0. BUT you do not need "
281
281
  m += "to re-generate your autograder.zip; un-archive autograder.zip and change the version in either "
282
282
  m += "requirements.txt or environmental.yaml depending on the version of otter-grader the autograder.zip "
283
283
  m += "is created with."
@@ -1,7 +1,8 @@
1
1
  import asyncio
2
+ import logging
2
3
  from otter_service_stdalone import fs_logging as log, upload_handle as uh
3
4
  import os
4
- from otter.grade import main as grade
5
+ from otter.grade import main as grade, loggers
5
6
  from multiprocessing import Process
6
7
  from tornado.ioloop import PeriodicCallback
7
8
 
@@ -49,6 +50,7 @@ class GradeNotebooks():
49
50
  f"Notebook Folder: {notebook_folder}",
50
51
  "debug",
51
52
  log_debug)
53
+ loggers.set_level(logging.INFO)
52
54
  p = Process(target=grade,
53
55
  kwargs = {
54
56
  "name": "grader",
@@ -17,7 +17,7 @@ def is_version_5(zip_ref, target_file, reg):
17
17
 
18
18
  def otter_version_correct(autograder_path):
19
19
  requirements_regex = re.compile(r"otter-grader==([\d\.]+)")
20
- environment_regex = re.compile(r"otter-grader: ([\d\.]+)")
20
+ environment_regex = re.compile(r"otter-grader==([\d\.]+)")
21
21
  # Open the zip file
22
22
  with zipfile.ZipFile(autograder_path, 'r') as zip_ref:
23
23
  # Get a list of files in the zip
@@ -28,8 +28,8 @@ def otter_version_correct(autograder_path):
28
28
  env_target_file = None
29
29
  if 'requirements.txt' in file_list:
30
30
  req_target_file = 'requirements.txt'
31
- if 'environment.yaml' in file_list:
32
- env_target_file = 'environment.yaml'
31
+ if 'environment.yml' in file_list:
32
+ env_target_file = 'environment.yml'
33
33
 
34
34
  otter_in_req = is_version_5(zip_ref, req_target_file, requirements_regex)
35
35
  otter_in_env = is_version_5(zip_ref, env_target_file, environment_regex)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 1.1.9
3
+ Version: 1.1.11
4
4
  Summary: Grading Service for Instructors using Otter Grader
5
5
  Home-page: https://github.com/sean-morris/otter-service-stdalone
6
6
  Author: Sean Morris
@@ -1,12 +1,12 @@
1
- otter_service_stdalone/__init__.py,sha256=lnHAM_YSOt5TvtAm4ZVs32T0TpsCQ5kOOznnQlur1YE,22
1
+ otter_service_stdalone/__init__.py,sha256=onvMxIPKVCA4yl5UqyZ5erfVCfX2V2Tl84vB4lkYg0M,23
2
2
  otter_service_stdalone/access_sops_keys.py,sha256=nboU5aZ84Elrm5vO0dMgpIF5LLcnecpNAwpxKvj6DvU,2129
3
- otter_service_stdalone/app.py,sha256=X_u4V02uOiFBTwM9FR0bQjXK6YcsO3Jieuji-UBwgSw,15588
3
+ otter_service_stdalone/app.py,sha256=uEuCKRa5_MFe591KcbWghyIn2YHeroi-9zGRyjSFY9I,15590
4
4
  otter_service_stdalone/fs_logging.py,sha256=IKFZkc5TmpI6G3vTYFAU9jDjQ-GT5aRxk8kdZ0h0kJE,2390
5
- otter_service_stdalone/grade_notebooks.py,sha256=s-nequcOnpsZD4aQeUx_EFbnfKurVj7J8oCTK6Dix1E,3596
5
+ otter_service_stdalone/grade_notebooks.py,sha256=VPH7m2IIiioJIHMTMSTwI5CnCKaR9RkdkPOmj0suMcA,3664
6
6
  otter_service_stdalone/index.html,sha256=eEbFGxbV-plE5bAggGYHTv1q7yqoTN4kJbzL729uMmk,7276
7
7
  otter_service_stdalone/upload_handle.py,sha256=PbpQEyUIPKercJ9hegKwvxHBvSc9uylhIfwjvHybjs0,5061
8
8
  otter_service_stdalone/user_auth.py,sha256=L9Kfj1BsQttAteHhRn71IUY8WX9nvBy3MXVGq1yjTtE,4253
9
- otter_service_stdalone/util.py,sha256=ptsV1_W-IwpBVVk9oPJWNjaqdh8DJKWVpVqXHaQrUO0,1324
9
+ otter_service_stdalone/util.py,sha256=FR2b_HXV7mrp7V5qytOULaTxcEh8S3gqZAgRNw_mTFs,1322
10
10
  otter_service_stdalone/scripts/web_socket.js,sha256=VYbwPE6is1BINQ9ToY1HS3I6VWWIVcpCi1sVmxaxdwg,6209
11
11
  otter_service_stdalone/secrets/gh_key.dev.yaml,sha256=ORUVDu8SDcv0OE2ThwROppeg7y8oLkJJbPTCMn0s5l0,1138
12
12
  otter_service_stdalone/secrets/gh_key.local.yaml,sha256=NtPXXyGf1iSgJ9Oa2ahvIEf_fcmflB3dwd3LWyCgxis,1138
@@ -15,8 +15,8 @@ otter_service_stdalone/secrets/gh_key.staging.yaml,sha256=cKVqj4dcwuz2LhXwMNQy_1
15
15
  otter_service_stdalone/static_files/README_DO_NOT_DISTRIBUTE.txt,sha256=eMqBa1du1u0c07fuG3Eu9DDHuixRTFEbiQwrlvAnL1Y,353
16
16
  otter_service_stdalone/static_templates/403.html,sha256=7eO3XQsEkl4nF8PEeFkLwCzGBfdZ3kkkeu_Kgpgbh0k,1440
17
17
  otter_service_stdalone/static_templates/500.html,sha256=t6DeEMp8piSWyBToHb_JpTrw3GStAHFrozlmeuXyamg,1421
18
- otter_service_stdalone-1.1.9.dist-info/METADATA,sha256=wKJrBRrfS6-09EtWyq6P4m1Ba7o5ltbat8UUhnyiOH8,1467
19
- otter_service_stdalone-1.1.9.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
20
- otter_service_stdalone-1.1.9.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
21
- otter_service_stdalone-1.1.9.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
22
- otter_service_stdalone-1.1.9.dist-info/RECORD,,
18
+ otter_service_stdalone-1.1.11.dist-info/METADATA,sha256=lrDfRaLD-zoD7JQD0cIrZVEPLwtV8xX_xVazKhLkc50,1468
19
+ otter_service_stdalone-1.1.11.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
20
+ otter_service_stdalone-1.1.11.dist-info/entry_points.txt,sha256=cx447chuIEl8ly9jEoF5-2xNhaKsWcIMDdhUMH_00qQ,75
21
+ otter_service_stdalone-1.1.11.dist-info/top_level.txt,sha256=6UP22fD4OhbLt23E01v8Kvjn44vPRbyTIg_GqMYL-Ng,23
22
+ otter_service_stdalone-1.1.11.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5