build
Build command module.
build_project(path, working_directory, template_repo_url, checkout, verify_config=True, no_kernel=False)
Installs dependencies and kernel for a given project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Path | None
|
Path to project |
required |
working_directory
|
Path
|
working directory |
required |
template_repo_url
|
str
|
Template repository url |
required |
checkout
|
str | None
|
The git reference to check against. Supports branches, tags and commit hashes. |
required |
verify_config
|
bool
|
Determines if gitconfig is verified. |
True
|
no_kernel
|
bool
|
Determines if a kernel shall be generated or not. |
False
|
Source code in ssb_project_cli/ssb_project/build/build.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |
ipykernel_attach_bashrc(project_name)
Attaches bashrc to the project kernel by modifying ipykernel files.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project_name
|
str
|
path to the kernel directory |
required |
Source code in ssb_project_cli/ssb_project/build/build.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
validate_and_fix_git_config(template_repo_url, checkout, project_name, project_root)
Validate and fix the git config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
template_repo_url
|
str
|
Template repository url |
required |
checkout
|
str | None
|
The git reference to check against. Supports branches, tags and commit hashes. |
required |
project_name
|
str
|
The name of the project |
required |
project_root
|
Path
|
The root directory of the project/repo. |
required |
Source code in ssb_project_cli/ssb_project/build/build.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | |