making-with-code-cli 2.0.3__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.
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/PKG-INFO +1 -1
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/__init__.py +0 -4
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/tasks.py +2 -1
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/log.py +9 -9
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/status.py +2 -2
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/student_repos.py +1 -1
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/pyproject.toml +1 -1
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/README.md +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/cli.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/curriculum.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/errors.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/__init__.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/base_backend.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/git_backend/mwc_backend.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/git_wrapper.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/helpers.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/mwc_accounts_api.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/settings.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/styles.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/submit.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/__init__.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/check.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/gitea_api/api.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/gitea_api/exceptions.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/setup.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/student_repo_functions.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/test/__init__.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/test/test_module.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/update.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/update/__init__.py +0 -0
- {making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/version.py +0 -0
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/__init__.py
RENAMED
|
@@ -28,9 +28,7 @@ from making_with_code_cli.setup.tasks import (
|
|
|
28
28
|
choose_work_dir,
|
|
29
29
|
choose_course,
|
|
30
30
|
choose_editor,
|
|
31
|
-
MWCShellConfig,
|
|
32
31
|
InstallXCode,
|
|
33
|
-
WriteShellConfig,
|
|
34
32
|
InstallPoetry,
|
|
35
33
|
InstallGit,
|
|
36
34
|
InstallTree,
|
|
@@ -82,10 +80,8 @@ def setup(ctx, config, debug):
|
|
|
82
80
|
write_settings(settings, config)
|
|
83
81
|
|
|
84
82
|
task_classes = [
|
|
85
|
-
MWCShellConfig,
|
|
86
83
|
InstallXCode,
|
|
87
84
|
InstallPoetry,
|
|
88
|
-
WriteShellConfig,
|
|
89
85
|
InstallGit,
|
|
90
86
|
InstallTree,
|
|
91
87
|
InstallVSCode,
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/setup/tasks.py
RENAMED
|
@@ -245,6 +245,7 @@ class SetupTask:
|
|
|
245
245
|
def executable_on_path(self, name):
|
|
246
246
|
return bool(run(f"which {name}", shell=True, capture_output=True).stdout)
|
|
247
247
|
|
|
248
|
+
# DEPRECATED
|
|
248
249
|
class MWCShellConfig(SetupTask):
|
|
249
250
|
"""Writes a line in the rc shell config file sourcing ~/.mwc_rc.
|
|
250
251
|
"""
|
|
@@ -370,7 +371,7 @@ class InstallTree(InstallPackage):
|
|
|
370
371
|
executable_name = brew_name = apt_name = nix_name = "tree"
|
|
371
372
|
|
|
372
373
|
class InstallVSCode(InstallPackage):
|
|
373
|
-
platform = Platform.MAC
|
|
374
|
+
platform = Platform.MAC
|
|
374
375
|
executable_name = "code"
|
|
375
376
|
brew_name = "visual-studio-code"
|
|
376
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:
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/status.py
RENAMED
|
@@ -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['
|
|
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
|
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/curriculum.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/git_wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/mwc_accounts_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/__init__.py
RENAMED
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/check.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/teach/update.py
RENAMED
|
File without changes
|
{making_with_code_cli-2.0.3 → making_with_code_cli-2.0.5}/making_with_code_cli/update/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|