otter-service-stdalone 0.1.26__tar.gz → 0.1.28__tar.gz

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.
Files changed (25) hide show
  1. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/PKG-INFO +1 -1
  2. otter_service_stdalone-0.1.28/src/otter_service_stdalone/__init__.py +1 -0
  3. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/app.py +5 -1
  4. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/upload_handle.py +1 -4
  5. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone.egg-info/PKG-INFO +1 -1
  6. otter_service_stdalone-0.1.26/src/otter_service_stdalone/__init__.py +0 -1
  7. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/README.md +0 -0
  8. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/pyproject.toml +0 -0
  9. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/setup.cfg +0 -0
  10. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/access_sops_keys.py +0 -0
  11. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/fs_logging.py +0 -0
  12. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/grade_notebooks.py +0 -0
  13. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/index.html +0 -0
  14. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/secrets/gh_key.dev.yaml +0 -0
  15. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/secrets/gh_key.local.yaml +0 -0
  16. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/secrets/gh_key.prod.yaml +0 -0
  17. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/secrets/gh_key.staging.yaml +0 -0
  18. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/static_templates/403.html +0 -0
  19. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/static_templates/500.html +0 -0
  20. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone/user_auth.py +0 -0
  21. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone.egg-info/SOURCES.txt +0 -0
  22. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone.egg-info/dependency_links.txt +0 -0
  23. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone.egg-info/entry_points.txt +0 -0
  24. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/src/otter_service_stdalone.egg-info/top_level.txt +0 -0
  25. {otter_service_stdalone-0.1.26 → otter_service_stdalone-0.1.28}/tests/test_upload_handle.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 0.1.26
3
+ Version: 0.1.28
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
@@ -0,0 +1 @@
1
+ __version__ = "0.1.28"
@@ -198,7 +198,11 @@ class Upload(BaseHandler):
198
198
  if autograder is not None and notebooks is not None:
199
199
  notebooks_fname = notebooks['filename']
200
200
  notebooks_extn = os.path.splitext(notebooks_fname)[1]
201
- notebooks_name = results_path + notebooks_extn
201
+ if notebooks_extn == ".zip":
202
+ notebooks_name = results_path + notebooks_extn
203
+ else:
204
+ notebooks_name = f"{results_path}/{notebooks_fname}"
205
+ os.mkdir(f"{__UPLOADS__}/{results_path}")
202
206
  autograder_fname = autograder['filename']
203
207
  autograder_extn = os.path.splitext(autograder_fname)[1]
204
208
  autograder_name = str(uuid.uuid4()) + autograder_extn
@@ -13,10 +13,7 @@ def handle_one_notebook(path):
13
13
  Returns:
14
14
  str: the notebook path
15
15
  """
16
- notebook_name = path.split(".")[0]
17
- os.mkdir(notebook_name)
18
- shutil.move(path, notebook_name)
19
- return notebook_name
16
+ return os.path.dirname(path)
20
17
 
21
18
 
22
19
  def one_notebook(path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 0.1.26
3
+ Version: 0.1.28
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 +0,0 @@
1
- __version__ = "0.1.26"