making-with-code-cli 4.1.0__tar.gz → 4.1.2__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 (40) hide show
  1. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/PKG-INFO +2 -1
  2. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/patch.py +5 -6
  3. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/pyproject.toml +2 -1
  4. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/README.md +0 -0
  5. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/cli.py +0 -0
  6. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/curriculum.py +0 -0
  7. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/decorators.py +0 -0
  8. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/errors.py +0 -0
  9. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/git_backend/__init__.py +0 -0
  10. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/git_backend/base_backend.py +0 -0
  11. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/git_backend/mwc_backend.py +0 -0
  12. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/git_wrapper.py +0 -0
  13. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/helpers.py +0 -0
  14. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/mwc_accounts_api.py +0 -0
  15. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/settings.py +0 -0
  16. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/setup/__init__.py +0 -0
  17. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/setup/tasks.py +0 -0
  18. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/styles.py +0 -0
  19. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/submit.py +0 -0
  20. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/__init__.py +0 -0
  21. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/assess.py +0 -0
  22. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/check/__init__.py +0 -0
  23. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/check/check_module.py +0 -0
  24. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/gitea_api/api.py +0 -0
  25. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/gitea_api/exceptions.py +0 -0
  26. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/log.py +0 -0
  27. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/section/__init__.py +0 -0
  28. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/section/create.py +0 -0
  29. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/section/edit.py +0 -0
  30. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/section/show.py +0 -0
  31. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/setup.py +0 -0
  32. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/status.py +0 -0
  33. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/student/__init__.py +0 -0
  34. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/student/create.py +0 -0
  35. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/student/update.py +0 -0
  36. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/student_repo_functions.py +0 -0
  37. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/student_repos.py +0 -0
  38. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/teach/update.py +0 -0
  39. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/update/__init__.py +0 -0
  40. {making_with_code_cli-4.1.0 → making_with_code_cli-4.1.2}/making_with_code_cli/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: making-with-code-cli
3
- Version: 4.1.0
3
+ Version: 4.1.2
4
4
  Summary: Courseware for Making With Code
5
5
  License: MIT
6
6
  Author: Chris Proctor
@@ -19,6 +19,7 @@ Requires-Dist: requests (>=2.32.3,<3.0.0)
19
19
  Requires-Dist: tabulate (>=0.9.0,<0.10.0)
20
20
  Requires-Dist: toml (>=0.10.2,<0.11.0)
21
21
  Requires-Dist: tqdm (>=4.67.1,<5.0.0)
22
+ Project-URL: Documentation, https://docs.makingwithcode.org/making-with-code-cli
22
23
  Project-URL: issues, https://github.com/cproctor/making-with-code-courseware/issues
23
24
  Description-Content-Type: text/markdown
24
25
 
@@ -19,22 +19,21 @@ GIT_REMOTE_NAME = "origin"
19
19
 
20
20
  @click.command()
21
21
  @click.argument("patch")
22
- @click.argument("group")
22
+ @click.argument("section")
23
23
  @click.argument("module")
24
24
  @click.option("--config", help="Path to config file (default: ~/.mwc)")
25
- @click.option('-c', "--course", help="Filter by course name")
26
25
  @click.option('-u', "--user", help="Filter by username")
27
26
  @click.option('-n', "--no-commit", is_flag=True, help="Commit and push changes")
28
27
  @click.option('-m', "--message", default="Applying patch", help="Commit message")
29
28
  @click.option('-t', "--threads", type=int, default=8, help="Maximum simultaneous threads")
30
- def patch(patch, group, module, config, course, user, no_commit, message, threads):
29
+ def patch(patch, section, module, config, user, no_commit, message, threads):
31
30
  settings = read_settings(config)
32
31
  if not check_required_teacher_settings(settings):
33
32
  return
34
- update_task.callback(config, group, course, user, None, module, threads)
33
+ update_task.callback(config, section, None, user, None, module, threads)
35
34
  apply_patch = apply_patch_factory(patch, message, no_commit)
36
35
  repos = StudentRepos(settings, threads)
37
- results = repos.apply(apply_patch, group=group, course=course, module=module,
36
+ results = repos.apply(apply_patch, section=section, module=module,
38
37
  user=user, status_message=f"Applying patch {patch}")
39
38
  for result in results:
40
39
  if result['success']:
@@ -45,7 +44,7 @@ def patch(patch, group, module, config, course, user, no_commit, message, thread
45
44
  def apply_patch_factory(patch, commit_message, no_commit=False):
46
45
  """Creates a function which will apply a patch to a repo.
47
46
  """
48
- def apply_patch(semaphore, results, group, username, path, token):
47
+ def apply_patch(semaphore, results, group, username, begin, end, path, token):
49
48
  semaphore.acquire()
50
49
  if path.exists():
51
50
  repo = Repo(path)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "making-with-code-cli"
3
- version = "4.1.0"
3
+ version = "4.1.2"
4
4
  description = "Courseware for Making With Code"
5
5
  authors = [
6
6
  {name = "Chris Proctor",email = "chris@chrisproctor.net"}
@@ -21,6 +21,7 @@ dependencies = [
21
21
  ]
22
22
 
23
23
  [project.urls]
24
+ documentation = "https://docs.makingwithcode.org/making-with-code-cli"
24
25
  issues = "https://github.com/cproctor/making-with-code-courseware/issues"
25
26
 
26
27
  [project.scripts]