Skip to content

Commit a022ba7

Browse files
committed
feat: update to include puyapy language server
1 parent 9bb5662 commit a022ba7

File tree

21 files changed

+77
-28
lines changed

21 files changed

+77
-28
lines changed

examples/generators/production_python_smart_contract_python/.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"tamasfe.even-better-toml",
88
"editorconfig.editorconfig",
99
"vsls-contrib.codetour",
10-
"algorandfoundation.algokit-avm-vscode-debugger"
10+
"algorandfoundation.algokit-avm-vscode-debugger",
11+
"algorandfoundation.algorand-python-vscode"
1112
]
1213
}

examples/generators/production_python_smart_contract_python/.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@
5050
// On Windows, if execution policy is set to Signed (default) then it won't be able to activate the venv
5151
// so instead let's set it to RemoteSigned for VS Code terminal
5252
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "RemoteSigned"],
53+
"algorandPython.languageServer.enable": true,
5354
}

examples/generators/production_python_smart_contract_python/pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ package-mode = false
1010
python = "^3.12"
1111
algokit-utils = "^4.0.0"
1212
python-dotenv = "^1.0.0"
13-
algorand-python = "^2.0.0"
14-
algorand-python-testing = "~0"
13+
# TODO: update to released packages once they are available
14+
# algorand-python = "^3.0.0"
15+
# algorand-python-testing = "^1.0.0"
16+
algorand-python = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14", subdirectory = "stubs" }
17+
algorand-python-testing ={ git = "https://github.com/algorandfoundation/algorand-python-testing.git", tag = "v1.0.0-beta.7" }
1518

1619
[tool.poetry.group.dev.dependencies]
1720
algokit-client-generator = "^2.1.0"
@@ -22,7 +25,9 @@ pytest = "*"
2225
pytest-cov = "*"
2326
pip-audit = "*"
2427
pre-commit = "*"
25-
puyapy = "*"
28+
# TODO: update to released packages once they are available
29+
# puyapy = "*"
30+
puyapy = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14" }
2631

2732
[build-system]
2833
requires = ["poetry-core"]

examples/generators/production_python_smart_contract_typescript/.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"tamasfe.even-better-toml",
99
"editorconfig.editorconfig",
1010
"vsls-contrib.codetour",
11-
"algorandfoundation.algokit-avm-vscode-debugger"
11+
"algorandfoundation.algokit-avm-vscode-debugger",
12+
"algorandfoundation.algorand-python-vscode"
1213
]
1314
}

examples/generators/production_python_smart_contract_typescript/.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@
5252
// On Windows, if execution policy is set to Signed (default) then it won't be able to activate the venv
5353
// so instead let's set it to RemoteSigned for VS Code terminal
5454
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "RemoteSigned"],
55+
"algorandPython.languageServer.enable": true,
5556
}

examples/generators/production_python_smart_contract_typescript/pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ package-mode = false
1010
python = "^3.12"
1111
algokit-utils = "^4.0.0"
1212
python-dotenv = "^1.0.0"
13-
algorand-python = "^2.0.0"
14-
algorand-python-testing = "~0"
13+
# TODO: update to released packages once they are available
14+
# algorand-python = "^3.0.0"
15+
# algorand-python-testing = "^1.0.0"
16+
algorand-python = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14", subdirectory = "stubs" }
17+
algorand-python-testing ={ git = "https://github.com/algorandfoundation/algorand-python-testing.git", tag = "v1.0.0-beta.7" }
1518

1619
[tool.poetry.group.dev.dependencies]
1720
black = {extras = ["d"], version = "*"}
1821
ruff = "^0.9.4"
1922
mypy = "^1"
2023
pip-audit = "*"
2124
pre-commit = "*"
22-
puyapy = "*"
25+
# TODO: update to released packages once they are available
26+
# puyapy = "*"
27+
puyapy = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14" }
2328

2429
[build-system]
2530
requires = ["poetry-core"]

examples/generators/starter_python_smart_contract_python/.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"tamasfe.even-better-toml",
55
"editorconfig.editorconfig",
66
"vsls-contrib.codetour",
7-
"algorandfoundation.algokit-avm-vscode-debugger"
7+
"algorandfoundation.algokit-avm-vscode-debugger",
8+
"algorandfoundation.algorand-python-vscode"
89
]
910
}

examples/generators/starter_python_smart_contract_python/.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
// On Windows, if execution policy is set to Signed (default) then it won't be able to activate the venv
3232
// so instead let's set it to RemoteSigned for VS Code terminal
3333
"terminal.integrated.shellArgs.windows": ["-ExecutionPolicy", "RemoteSigned"],
34+
"algorandPython.languageServer.enable": true,
3435
}

examples/generators/starter_python_smart_contract_python/pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ package-mode = false
1010
python = "^3.12"
1111
algokit-utils = "^4.0.0"
1212
python-dotenv = "^1.0.0"
13-
algorand-python = "^2.0.0"
14-
algorand-python-testing = "~0"
13+
# TODO: update to released packages once they are available
14+
# algorand-python = "^3.0.0"
15+
# algorand-python-testing = "^1.0.0"
16+
algorand-python = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14", subdirectory = "stubs" }
17+
algorand-python-testing ={ git = "https://github.com/algorandfoundation/algorand-python-testing.git", tag = "v1.0.0-beta.7" }
1518

1619
[tool.poetry.group.dev.dependencies]
1720
algokit-client-generator = "^2.1.0"
18-
puyapy = "*"
21+
# TODO: update to released packages once they are available
22+
# puyapy = "*"
23+
puyapy = { git = "https://github.com/algorandfoundation/puya.git", tag = "v5.0.0-rc.14" }
1924

2025
[build-system]
2126
requires = ["poetry-core"]

examples/generators/starter_python_smart_contract_typescript/.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"tamasfe.even-better-toml",
66
"editorconfig.editorconfig",
77
"vsls-contrib.codetour",
8-
"algorandfoundation.algokit-avm-vscode-debugger"
8+
"algorandfoundation.algokit-avm-vscode-debugger",
9+
"algorandfoundation.algorand-python-vscode"
910
]
1011
}

0 commit comments

Comments
 (0)