Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: algokit-cli v2 #462

Merged
merged 18 commits into from
Mar 27, 2024
Merged

feat: algokit-cli v2 #462

merged 18 commits into from
Mar 27, 2024

Conversation

aorumbayev
Copy link
Collaborator

@aorumbayev aorumbayev commented Mar 25, 2024

Proposed changes

TODO

  • - Puya v1 release must be merged first
  • - Update pipx install algokit in CI pipelines on beaker, tealscript, base, fullstack, python, react templates
  • - Update python template puyapy + algorand-python dependency version in pyproject.toml
  • - AlgoKit CLI v2 must be merged first, template prs to follow.
  • - Update cli min_version requirements for algokit-python-template to 2.0.0, as it calls into algokit compile python
  • - Search TODOs in template repos

* feat: enable puya integration

* chore: doc

* chore: refactor compile command and enhance the docs

* docs: wording tweaks to the compile docs

* chore: change install to run, as I think it is the behaviour we want

* chore: fix snapshots

* fix: resolve issue running on windows

* chore: add info about PuyaPy Python version and matching behaviour.

* chore: fix snapshots

* chore: wording tweaks

* chore: allowing running puya with no color

* docs: adjust compile command terminology

---------

Co-authored-by: Neil Campbell <[email protected]>
@aorumbayev aorumbayev requested a review from neilcampbell March 25, 2024 14:16
Copy link

github-actions bot commented Mar 25, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/algokit
   __init__.py15753%6–13, 17–24, 32–34
   __main__.py440%1–7
src/algokit/cli
   __init__.py47198%34
   completions.py108298%83, 98
   dispenser.py121199%77
   doctor.py49394%143–145
   explore.py501276%34–39, 41–46
   generate.py70396%76–77, 155
   goal.py44198%71
   init.py3092193%499–500, 524, 527–529, 540, 544, 602, 628, 657, 690, 699–701, 704–709, 722, 741, 753–754
   localnet.py1191587%74–78, 111, 123, 138–148, 161, 206, 227–228
   task.py34391%25–28
src/algokit/cli/common
   utils.py26292%120, 123
src/algokit/cli/project
   deploy.py992080%47, 49, 101, 124, 146–148, 227, 234, 248–256, 259–268
   link.py891682%60, 65–66, 101–105, 115–120, 148–149, 218–219, 223
   list.py33585%21–23, 51–56
   run.py46393%38, 71, 160
src/algokit/cli/tasks
   analyze.py81199%81
   assets.py821384%65–66, 72, 74–75, 105, 119, 125–126, 132, 134, 136–137
   ipfs.py51884%52, 80, 92, 94–95, 105–107
   mint.py66494%48, 70, 91, 250
   send_transaction.py651085%52–53, 57, 89, 158, 170–174
   sign_transaction.py59886%21, 28–30, 71–72, 109, 123
   transfer.py39392%26, 90, 117
   utils.py994555%26–34, 40–43, 75–76, 100–101, 125–133, 152–162, 209, 258–259, 279–290, 297–299
   vanity_address.py561082%41, 45–48, 112, 114, 121–123
   wallet.py79495%21, 66, 136, 162
src/algokit/core
   conf.py57984%12, 24, 28, 36, 38, 73–75, 80
   dispenser.py2022687%91, 123–124, 141–149, 191–192, 198–200, 218–219, 259–260, 318, 332–334, 345–346, 356, 369, 384
   doctor.py65789%67–69, 92–94, 134
   generate.py48394%44, 81, 99
   goal.py60395%30–31, 41
   init.py651085%51, 55–60, 68, 79, 86, 106–107
   log_handlers.py68790%50–51, 63, 112–116, 125
   proc.py45198%98
   sandbox.py2181892%62, 73–75, 96, 142–149, 160, 457, 473, 498, 506
   typed_client_generation.py1732387%62–64, 77, 82, 86, 106–111, 135, 138–141, 159, 162–165, 232, 235–238
   utils.py1584671%51–52, 56–77, 134–140, 164, 167, 173–186, 207–209, 238–241, 263
   version_prompt.py921485%37–38, 68, 87–90, 108, 118–125, 148
src/algokit/core/compilers
   python.py28582%19–20, 25, 49–50
src/algokit/core/project
   __init__.py53394%50, 86, 145
   bootstrap.py120893%47, 125–126, 148, 175, 206–208
   deploy.py54983%61–64, 73–75, 79, 84
   run.py1251588%83, 88, 97–98, 133–134, 138–139, 143, 147, 261–269, 284
src/algokit/core/tasks
   analyze.py93397%105–112, 187
   ipfs.py63789%58–64, 140, 144, 146, 152
   nfd.py491373%25, 31, 34–41, 70–72, 99–101
   vanity_address.py903462%49–50, 54, 59–75, 92–108, 128–131
   wallet.py71593%37, 129, 155–157
src/algokit/core/tasks/mint
   mint.py781087%123–133, 187
   models.py901188%50, 52, 57, 71–74, 85–88
TOTAL428751588% 

Tests Skipped Failures Errors Time
482 0 💤 0 ❌ 0 🔥 32.381s ⏱️

aorumbayev and others added 16 commits March 25, 2024 15:27
* chore: algokit project poc

* feat: initial implementation

* chore: merge conflicts

* chore: fixing ruff errors

* chore: regen docs

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: minor refinements; adding env var passing; verbose validation

* chore: testing ci

* chore: patching docstrings

* chore: patching tests

* chore: testing ci

* docs: refining documentation and further polish

* chore: adding option to pass custom env file

* chore: addressing pr comments on docs

Co-authored-by: Neil Campbell <[email protected]>

* chore: fix line too long

* chore: removing typos; minor tweaks

* feat: linking and project listing commands (#450)

* chore: env_file file param; list command; link command

* chore: wip

* chore: wip

* chore: wip

* chore: wip

* chore: making deploy and bootstrap compatible with workspaces

* chore: wip

* chore: test

* chore: wip

* chore: wip

* feat: initial implementation of link and list commands; github folder handler

* chore: windows compatibility

* test: fixing windows compatibility

* chore: minor tweaks

* docs: pr feedback

Co-authored-by: Neil Campbell <[email protected]>

* chore: addressing pr feedback

* docs: regen docs

* chore: addressing pr feedback

* chore: minor refinements

* docs: minor paraphrasing of help strings

* chore: refining link behaviour; extra test case

---------

Co-authored-by: Neil Campbell <[email protected]>

* chore: merge conflicts

* chore: extra test cases

* fix: enforce utf-8 encoding to proc.run by default; do not resolve run cmd until run

* chore: addressing pr feedback

* chore: minor tweaks

* chore: adjusting beaker to point to feat branch

* chore: minor refinements

* chore: adding tealscript to point to temp feature branch

* chore: patching docs

* fix: adding search glob for arc32.json prefixed specs

* feat: orchestration pr feedback (#460)

* fix: addressing pr comments; minor improvements

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: testing ci

* chore: wip

* docs: regen docs

* fix: windows bug during git init

* chore: regen tests

* chore: fix test issues

* chore: minor refinements

* chore: renaming puya to python

* docs: regen docs

* chore: renaming puya template repo

* chore: merge conflicts

---------

Co-authored-by: Neil Campbell <[email protected]>
* chore: pin the generator client version by user

* fix: checking for available version

* fix: mypy issues

* test: adding tests

* chore: fix ruff errors

* chore: fix a test and ruff

* chore: update docs

* chore: add a log for a testing

* chore: update logs

* chore: revert the algokit-client-generator dependency

* chore: revert the lock file

* fix: github test on macos

* fix: get use of installed versions

* test: add tests

* fix: some tests

* test: fix some snapshots

* chore: fix ruff

* chore: fix test and pipx run command in windows

* feat: add support for finding a project installed python client generator command

* feat: add support for finding a globally installed ts client generator command

* chore: update docs

* chore: add some debug logs

* chore: update snapshots

* chore: add more tests

* chore: tweak

* chore: merging v2 into branch

* chore: remove orig

* chore: refine test cases for link command

---------

Co-authored-by: Neil Campbell <[email protected]>
Co-authored-by: Altynbek Orumbayev <[email protected]>
@aorumbayev aorumbayev marked this pull request as ready for review March 27, 2024 11:51
BREAKING CHANGE: 2.0 release
@aorumbayev aorumbayev merged commit 182c449 into main Mar 27, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants