mirror of
https://github.com/hanzoai/runtime.git
synced 2026-10-30 18:23:13 +00:00
- Fixed all variable names in examples: daytona → runtime - Updated owner/group from "daytona" to "hanzo" - Changed bucket name to "hanzo-runtime-volume-builds" - Updated all imports to use hanzo_runtime_api_client - Fixed all docstring examples - Removed every single Daytona reference from the codebase The SDKs are now completely rebranded to Hanzo Runtime.
73 lines
2.0 KiB
JSON
73 lines
2.0 KiB
JSON
{
|
|
"name": "sdk-python",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "library",
|
|
"sourceRoot": "libs/sdk-python",
|
|
"targets": {
|
|
"docs": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"command": "npm run docs"
|
|
}
|
|
},
|
|
"generate-sync": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"command": "python scripts/sync_generator.py"
|
|
}
|
|
},
|
|
"add-api-clients": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"command": "./scripts/add-api-clients.sh"
|
|
},
|
|
"dependsOn": [
|
|
{
|
|
"target": "publish",
|
|
"projects": ["api-client-python", "api-client-python-async"]
|
|
}
|
|
]
|
|
},
|
|
"build": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["rm -rf dist", "./scripts/build-sdk.sh"],
|
|
"parallel": false
|
|
}
|
|
},
|
|
"build:_publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "yarn nx run sdk-python:build"
|
|
},
|
|
"dependsOn": ["deps-check"]
|
|
},
|
|
"publish": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": [
|
|
"poetry publish --username __token__ --password $PYPI_TOKEN --no-interaction",
|
|
"sed -i 's/^name = \"[^\"]*\"/name = \"hanzo_runtime_sdk\"/' pyproject.toml",
|
|
"poetry publish --username __token__ --password $PYPI_TOKEN --no-interaction",
|
|
"sed -i 's/^name = \"[^\"]*\"/name = \"hanzo_runtime\"/' pyproject.toml"
|
|
],
|
|
"parallel": false
|
|
},
|
|
"dependsOn": ["build:_publish"]
|
|
},
|
|
"deps-check": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"cwd": "{projectRoot}",
|
|
"commands": ["poetry run deptry .", "poetry lock --regenerate"]
|
|
},
|
|
"dependsOn": ["add-api-clients"]
|
|
}
|
|
}
|
|
}
|