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: Add puyapy compile integration #457

Merged
merged 13 commits into from
Mar 25, 2024
Merged

feat: Add puyapy compile integration #457

merged 13 commits into from
Mar 25, 2024

Conversation

PatrickDinh
Copy link
Contributor

@PatrickDinh PatrickDinh commented Mar 19, 2024

Proposed Changes

Add puyapy compile integration

Copy link

github-actions bot commented Mar 19, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/algokit
   __init__.py15753%6–13, 17–24, 32–34
   __main__.py440%1–7
src/algokit/cli
   completions.py108298%83, 98
   deploy.py72790%44, 46, 92–94, 158, 182
   dispenser.py121199%77
   doctor.py49394%143–145
   explore.py501276%34–39, 41–46
   generate.py67396%74–75, 140
   goal.py44198%71
   init.py2752591%384–385, 440, 443–445, 456, 460, 516, 542, 571, 604, 613–615, 618–623, 636, 653, 665–666, 683–686
   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/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
   bootstrap.py1171191%41, 105–106, 128, 155, 183–188
   conf.py661577%12, 24, 28, 36, 38, 72–74, 92–100
   deploy.py691184%61–64, 73–75, 79, 84, 91–93
   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.py39685%59, 63–68, 76
   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.py921386%57–59, 72, 77, 107–114
   utils.py1073072%44–45, 49–68, 129, 132, 138–151
   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/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
TOTAL371244488% 

Tests Skipped Failures Errors Time
428 0 💤 0 ❌ 0 🔥 27.710s ⏱️

@neilcampbell neilcampbell self-requested a review March 19, 2024 14:48
@neilcampbell neilcampbell changed the base branch from main to v2 March 25, 2024 14:02
@neilcampbell neilcampbell marked this pull request as ready for review March 25, 2024 14:02
@neilcampbell neilcampbell changed the title feat: enable puya integration feat: Add puyapy compile integration Mar 25, 2024
@aorumbayev aorumbayev merged commit 03f0816 into v2 Mar 25, 2024
14 checks passed
@aorumbayev aorumbayev deleted the compile-feat-docs branch March 25, 2024 14:15
@aorumbayev aorumbayev mentioned this pull request Mar 25, 2024
6 tasks
aorumbayev added a commit that referenced this pull request Mar 27, 2024
* feat: Add puyapy compile integration (#457)

* 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]>

* feat: command orchestration (#446)

* 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 algokit client generator version (#455)

* 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]>

* chore: add version option to link command

* chore: minor fixes

* docs: update readme

* docs: add Algorand Python and TEALScript to readme

* chore: change puya to puyapy

* chore: fix windows compile test

* chore: fix test

* chore: ignore test for now

* chore: fix windows compile test

* chore: temporarily disable test

* fix: fixing an issue causing workspace nesting check even if user said yes to overwrite

* chore: use version rather than help for puyapy detects

* docs: update example contract in docs

* chore: removing tmp branches on templates

BREAKING CHANGE: 2.0 release

---------

Co-authored-by: Hoang Dinh <[email protected]>
Co-authored-by: Neil Campbell <[email protected]>
Co-authored-by: Negar <[email protected]>
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.

3 participants