making-with-code-cli 2.0.4__tar.gz → 2.0.5__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 (31) hide show
  1. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/PKG-INFO +1 -1
  2. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/tasks.py +1 -1
  3. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/log.py +9 -9
  4. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/status.py +2 -2
  5. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/student_repos.py +1 -1
  6. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/pyproject.toml +1 -1
  7. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/README.md +0 -0
  8. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/cli.py +0 -0
  9. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/curriculum.py +0 -0
  10. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/errors.py +0 -0
  11. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/__init__.py +0 -0
  12. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/base_backend.py +0 -0
  13. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/mwc_backend.py +0 -0
  14. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/git_wrapper.py +0 -0
  15. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/helpers.py +0 -0
  16. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/mwc_accounts_api.py +0 -0
  17. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/settings.py +0 -0
  18. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/__init__.py +0 -0
  19. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/styles.py +0 -0
  20. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/submit.py +0 -0
  21. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/__init__.py +0 -0
  22. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/check.py +0 -0
  23. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/gitea_api/api.py +0 -0
  24. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/gitea_api/exceptions.py +0 -0
  25. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/setup.py +0 -0
  26. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/student_repo_functions.py +0 -0
  27. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/test/__init__.py +0 -0
  28. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/test/test_module.py +0 -0
  29. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/update.py +0 -0
  30. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/update/__init__.py +0 -0
  31. {making_with_code_cli-2.0.4 → making_with_code_cli-2.0.5}/making_with_code_cli/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: making-with-code-cli
3
- Version: 2.0.4
3
+ Version: 2.0.5
4
4
  Summary: Courseware for Making With Code
5
5
  Home-page: https://github.com/cproctor/making-with-code-courseware
6
6
  License: MIT
@@ -371,7 +371,7 @@ class InstallTree(InstallPackage):
371
371
  executable_name = brew_name = apt_name = nix_name = "tree"
372
372
 
373
373
  class InstallVSCode(InstallPackage):
374
- platform = Platform.MAC | Platform.UBUNTU
374
+ platform = Platform.MAC
375
375
  executable_name = "code"
376
376
  brew_name = "visual-studio-code"
377
377
  cask = True
@@ -27,15 +27,15 @@ def date_string(arg):
27
27
 
28
28
  @click.command()
29
29
  @click.option("--config", help="Path to config file (default: ~/.mwc)")
30
- @click.option("--group", help="Filter by group name")
31
- @click.option("--course", help="Filter by course name")
32
- @click.option("--user", help="Filter by username")
33
- @click.option("--unit", help="Filter by unit name/slug")
34
- @click.option("--module", help="Filter by module name/slug")
35
- @click.option("--start", type=date_string, help="Start datetime")
36
- @click.option("--end", type=date_string, help="End datetime")
37
- @click.option("--update", is_flag=True, help="Update repos first")
38
- @click.option("--threads", type=int, default=8, help="Maximum simultaneous threads")
30
+ @click.option('-g', "--group", help="Filter by group name")
31
+ @click.option('-c', "--course", help="Filter by course name")
32
+ @click.option('-u', "--user", help="Filter by username")
33
+ @click.option('-n', "--unit", help="Filter by unit name/slug")
34
+ @click.option('-m', "--module", help="Filter by module name/slug")
35
+ @click.option('-s', "--start", type=date_string, help="Start datetime")
36
+ @click.option('-e', "--end", type=date_string, help="End datetime")
37
+ @click.option('-U', "--update", is_flag=True, help="Update repos first")
38
+ @click.option('-t', "--threads", type=int, default=8, help="Maximum simultaneous threads")
39
39
  def log(config, group, course, user, unit, module, start, end, update, threads):
40
40
  "Show repo logs"
41
41
  if update:
@@ -39,8 +39,8 @@ measures = {
39
39
  @click.option("-a", "--anonymous", is_flag=True, help="Hide usernames")
40
40
  @click.option("-s", "--short", is_flag=True, help="Show short module names")
41
41
  @click.option("-o", "--outfile", help="Save results as csv")
42
- @click.option("--update", is_flag=True, help="Update repos first")
43
- @click.option("--threads", type=int, default=8, help="Maximum simultaneous threads")
42
+ @click.option('-U', "--update", is_flag=True, help="Update repos first")
43
+ @click.option('-t', "--threads", type=int, default=8, help="Maximum simultaneous threads")
44
44
  def status(config, group, course, user, unit, module, measure, anonymous, short,
45
45
  outfile, update, threads):
46
46
  "Show status of student repos by module"
@@ -37,7 +37,7 @@ class StudentRepos:
37
37
  api = MWCAccountsAPI()
38
38
  roster = api.get_roster(self.settings['mwc_accounts_token'])
39
39
  for g in roster['teacher_groups']:
40
- if group and (group not in g['name']) and (group not in g['slug']):
40
+ if group and (group not in g['group_name']) and (group not in g['group_slug']):
41
41
  continue
42
42
  if course and course not in g['course_name']:
43
43
  continue
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "making-with-code-cli"
3
- version = "2.0.4"
3
+ version = "2.0.5"
4
4
  description = "Courseware for Making With Code"
5
5
  authors = ["Chris Proctor <chris@chrisproctor.net>"]
6
6
  license = "MIT"