Skip to content

Commit

Permalink
Merge pull request #100 from algorandfoundation/official-default-temp…
Browse files Browse the repository at this point in the history
…late

Switching out wilson's copier template for the official one
  • Loading branch information
robdmoore authored Dec 16, 2022
2 parents a4a6823 + 6da3c55 commit 975457c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/algokit/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _get_blessed_templates() -> dict[str, TemplateSource]:
return {
# NOTE: leaving unpinned for now whilst this under active development, but this would be
# a good example of a TemplateSource that should have a commit= specified
"beaker": TemplateSource(url="gh:wilsonwaters/copier-testing-template"),
"beaker": TemplateSource(url="gh:algorandfoundation/algokit-beaker-default-template"),
}


Expand Down
4 changes: 2 additions & 2 deletions tests/init/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def set_blessed_templates(mocker: MockerFixture):

mocker.patch("algokit.cli.init._get_blessed_templates").return_value = {
"simple": TemplateSource("gh:robdmoore/copier-helloworld"),
"beaker": TemplateSource("gh:wilsonwaters/copier-testing-template"),
"beaker": TemplateSource("gh:algorandfoundation/algokit-beaker-default-template"),
"beaker_with_version": TemplateSource(
"gh:wilsonwaters/copier-testing-template", "96fc7fd766fac607cdf5d69ee6e85ade04dddd47"
"gh:algorandfoundation/algokit-beaker-default-template", "96fc7fd766fac607cdf5d69ee6e85ade04dddd47"
),
}

Expand Down
6 changes: 3 additions & 3 deletions tests/init/test_init.test_init_with_custom_env.approved.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:wilsonwaters/copier-testing-template
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:algorandfoundation/algokit-beaker-default-template
No git tags found in template; using HEAD as ref
DEBUG: Template initialisation complete, final clone URL = https://github.com/wilsonwaters/copier-testing-template.git
DEBUG: Template initialisation complete, final clone URL = https://github.com/algorandfoundation/algokit-beaker-default-template.git
Executed `algokit bootstrap all` in {current_working_directory}/myapp
🙌 Project initialized at `myapp`! For template specific next steps, consult the documentation of your selected template 🧐
Your selected template comes from:
➡️ https://github.com/wilsonwaters/copier-testing-template
➡️ https://github.com/algorandfoundation/algokit-beaker-default-template
As a suggestion, if you wanted to open the project in VS Code you could execute:
> cd myapp && code .
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:wilsonwaters/copier-testing-template
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:algorandfoundation/algokit-beaker-default-template
No git tags found in template; using HEAD as ref
DEBUG: Template initialisation complete, final clone URL = https://github.com/wilsonwaters/copier-testing-template.git
DEBUG: Template initialisation complete, final clone URL = https://github.com/algorandfoundation/algokit-beaker-default-template.git
Executed `algokit bootstrap all` in {current_working_directory}/myapp
🙌 Project initialized at `myapp`! For template specific next steps, consult the documentation of your selected template 🧐
Your selected template comes from:
➡️ https://github.com/wilsonwaters/copier-testing-template
➡️ https://github.com/algorandfoundation/algokit-beaker-default-template
As a suggestion, if you wanted to open the project in VS Code you could execute:
> cd myapp && code .
----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:wilsonwaters/copier-testing-template@96fc7fd766fac607cdf5d69ee6e85ade04dddd47
DEBUG: Template initialisation complete, final clone URL = https://github.com/wilsonwaters/copier-testing-template.git
DEBUG: Attempting to initialise project in {current_working_directory}/myapp from template gh:algorandfoundation/algokit-beaker-default-template@96fc7fd766fac607cdf5d69ee6e85ade04dddd47
DEBUG: Template initialisation complete, final clone URL = https://github.com/algorandfoundation/algokit-beaker-default-template.git
Executed `algokit bootstrap all` in {current_working_directory}/myapp
🙌 Project initialized at `myapp`! For template specific next steps, consult the documentation of your selected template 🧐
Your selected template comes from:
➡️ https://github.com/wilsonwaters/copier-testing-template
➡️ https://github.com/algorandfoundation/algokit-beaker-default-template
As a suggestion, if you wanted to open the project in VS Code you could execute:
> cd myapp && code .

1 comment on commit 975457c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/algokit
   __init__.py15753%6–13, 17–24, 32–34
   __main__.py220%1–3
src/algokit/cli
   init.py1651690%56, 203–204, 235, 238–240, 251, 289, 326, 335–337, 340–345, 360
src/algokit/core
   bootstrap.py1001684%74, 94, 149, 152, 158–172
   click_extensions.py472057%40–43, 50, 56, 67–68, 73–74, 79–80, 91, 104–114
   conf.py27967%10–17, 24, 26
   log_handlers.py68987%44–45, 50–51, 63, 112–116, 125
   proc.py44198%94
   sandbox.py106793%82, 147, 163, 178–180, 195
TOTAL9078790% 

Tests Skipped Failures Errors Time
102 0 💤 0 ❌ 0 🔥 11.838s ⏱️

Please sign in to comment.