Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
chore: replicate python template tweaks to beaker template (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell authored May 7, 2024
1 parent 7e6efb2 commit 65d533a
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ python-dotenv = "^1.0.0"

[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712
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 @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 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 @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 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,11 +14,12 @@
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["src/**/*.ts"],
"include": ["smart_contracts/**/*.ts"],
"exclude": ["node_modules", "dist", "coverage"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ python-dotenv = "^1.0.0"

[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712
algokit-client-generator = "^1.1.3"

[build-system]
requires = ["poetry-core"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 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 @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 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,11 +14,12 @@
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["src/**/*.ts"],
"include": ["smart_contracts/**/*.ts"],
"exclude": ["node_modules", "dist", "coverage"]
}
1 change: 1 addition & 0 deletions examples/production_beaker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ python-dotenv = "^1.0.0"

[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712
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 @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
1 change: 1 addition & 0 deletions examples/starter_beaker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ python-dotenv = "^1.0.0"

[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712
algokit-client-generator = "^1.1.3"

[build-system]
requires = ["poetry-core"]
Expand Down
2 changes: 1 addition & 1 deletion examples/starter_beaker/smart_contracts/helpers/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 or "
"Could not generate typed client, requires AlgoKit 2.0.0 or "
"later. Please update AlgoKit"
)
else:
Expand Down
3 changes: 3 additions & 0 deletions template_content/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ python-dotenv = "^1.0.0"

[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2" # Adding explicitly to work around pyteal https://github.com/algorand/pyteal/issues/712
{% 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 @@ -37,7 +37,7 @@ def build(output_dir: Path, app: beaker.Application) -> Path:
if result.returncode:
if "No such command" in result.stdout:
raise Exception(
"Could not generate typed client, requires AlgoKit 1.8.0 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
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"allowSyntheticDefaultImports": true,
"module": "CommonJS",
"moduleResolution": "Node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"include": ["src/**/*.ts"],
"include": ["smart_contracts/**/*.ts"],
"exclude": ["node_modules", "dist", "coverage"]
}

0 comments on commit 65d533a

Please sign in to comment.