Skip to content

Commit

Permalink
Merge pull request #22 from algorandfoundation/tweaks
Browse files Browse the repository at this point in the history
chore: tweak client generator imports
  • Loading branch information
neilcampbell authored May 7, 2024
2 parents de031db + 24d73b3 commit e0acc13
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algokit-utils": "^5.1.0",
"algosdk": "^2.5.0"
"@algorandfoundation/algokit-utils": "^6.0.2",
"algosdk": "^2.7.0"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^3.0.3",
"@types/jest": "^29.5.11",
"dotenv": "^16.0.3",
"prettier": "^2.8.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ python-dotenv = "^1.0.0"
algorand-python = "^1.0.0"

[tool.poetry.group.dev.dependencies]
algokit-client-generator = "^1.1.3"
black = {extras = ["d"], version = "*"}
ruff = "^0.1.6"
mypy = "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algokit-utils": "^5.1.0",
"algosdk": "^2.5.0"
"@algorandfoundation/algokit-utils": "^6.0.2",
"algosdk": "^2.7.0"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^3.0.3",
"dotenv": "^16.0.3",
"prettier": "^2.8.4",
"ts-node-dev": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ python-dotenv = "^1.0.0"
algorand-python = "^1.0.0"

[tool.poetry.group.dev.dependencies]
algokit-client-generator = "^1.1.3"
puyapy = "*"

[build-system]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
2 changes: 1 addition & 1 deletion examples/starter_python/smart_contracts/helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
2 changes: 2 additions & 0 deletions template_content/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ python-dotenv = "^1.0.0"
algorand-python = "^1.0.0"

[tool.poetry.group.dev.dependencies]
{% if deployment_language == 'python' -%}
algokit-client-generator = "^1.1.3"
{% endif -%}
{% if use_python_black -%}
black = {extras = ["d"], version = "*"}
{% endif -%}
Expand Down
2 changes: 1 addition & 1 deletion template_content/smart_contracts/helpers/build.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def build(output_dir: Path, contract_path: Path) -> Path:
if generate_result.returncode:
if "No such command" in generate_result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.1 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
"npm": ">=9.0"
},
"dependencies": {
"@algorandfoundation/algokit-utils": "^5.1.0",
"algosdk": "^2.5.0"
"@algorandfoundation/algokit-utils": "^6.0.2",
"algosdk": "^2.7.0"
},
"devDependencies": {
"@algorandfoundation/algokit-client-generator": "^3.0.3",
{%- if use_typescript_jest %}
"@types/jest": "^29.5.11",
{%- endif %}
Expand Down

0 comments on commit e0acc13

Please sign in to comment.