-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontext.py
More file actions
131 lines (127 loc) · 6.33 KB
/
context.py
File metadata and controls
131 lines (127 loc) · 6.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# adapted from https://github.com/copier-org/copier-template-extensions#context-hook-extension
from typing import Any
from typing import override
from copier_template_extensions import ContextHook
class ContextUpdater(ContextHook):
update = False
@override
def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
# These are duplicated in the install-ci-tooling.py script in this repository
context["uv_version"] = "0.10.12"
context["pre_commit_version"] = "4.5.1"
# These also in pyproject.toml
context["copier_version"] = "==9.14.0"
context["copier_template_extensions_version"] = "==0.3.3"
#######
context["pnpm_version"] = "10.33.0"
# These are duplicated in the pyproject.toml of this repository
context["pyright_version"] = ">=1.1.408"
context["pytest_version"] = ">=9.0.2"
context["pytest_randomly_version"] = ">=4.0.1"
context["pytest_cov_version"] = ">=7.1.0"
context["ty_version"] = ">=0.0.23"
#######
context["sphinx_version"] = "9.0.4"
context["pulumi_version"] = ">=3.228.0"
context["pulumi_aws_version"] = ">=7.23.0"
context["pulumi_aws_native_version"] = ">=1.59.0"
context["pulumi_command_version"] = ">=1.2.1"
context["pulumi_github_version"] = ">=6.12.1"
context["pulumi_okta_version"] = ">=6.4.0"
context["boto3_version"] = ">=1.42.53"
context["ephemeral_pulumi_deploy_version"] = ">=0.0.6"
context["pydantic_version"] = ">=2.12.5"
context["pyinstaller_version"] = ">=6.19.0"
context["setuptools_version"] = "80.7.1"
context["strawberry_graphql_version"] = ">=0.298.0"
context["fastapi_version"] = ">=0.135.1"
context["fastapi_offline_version"] = ">=1.7.4"
context["uvicorn_version"] = ">=0.42.0"
context["lab_auto_pulumi_version"] = ">=0.1.18"
context["ariadne_codegen_version"] = ">=0.17.0"
context["pytest_mock_version"] = ">=3.15.1"
context["uuid_utils_version"] = ">=0.14.0"
context["syrupy_version"] = ">=5.1.0"
context["structlog_version"] = ">=25.5.0"
context["httpx_version"] = ">=0.28.1"
context["python_kiota_bundle_version"] = ">=1.9.10"
context["vcrpy_version"] = ">=8.1.1"
context["pytest_recording_version"] = ">=0.13.4"
context["pytest_asyncio_version"] = ">=1.3.0"
context["pytest_reserial_version"] = ">=0.6.0"
context["python_faker_version"] = ">=40.4.0"
#######
context["default_node_version"] = "24.11.1"
context["nuxt_ui_version"] = "^4.6.0"
context["nuxt_version"] = (
"~4.3.1" # some weird funkiness with Nuxt v4.4.2 and MagicString. trying to bump to Vitest v4 is possibly the answer, but initial attempt at that failed
)
context["nuxt_icon_version"] = "^2.2.1"
context["typescript_version"] = "^5.9.3"
context["playwright_version"] = "^1.58.2"
context["vue_version"] = "^3.5.30"
context["vue_tsc_version"] = "^3.2.4"
context["vue_devtools_api_version"] = "^8.1.0"
context["vue_router_version"] = "^5.0.3"
context["dotenv_cli_version"] = "^11.0.0"
context["faker_version"] = "^10.4.0"
context["vitest_version"] = "^3.2.4"
context["eslint_version"] = "~9.38.0"
context["nuxt_eslint_version"] = "^1.15.1"
context["zod_version"] = "^4.3.6"
context["zod_from_json_schema_version"] = "^0.5.1"
context["nuxt_apollo_version"] = "5.0.0-alpha.15"
context["graphql_codegen_cli_version"] = "^6.2.1"
context["graphql_codegen_typescript_version"] = "^5.0.7"
context["graphql_tools_mock_version"] = "^9.1.0"
context["tailwindcss_version"] = "^4.2.0"
context["iconify_vue_version"] = "^5.0.0"
context["iconify_json_lucide_version"] = "^1.2.71"
context["nuxt_fonts_version"] = "^0.14.0"
context["nuxtjs_color_mode_version"] = "^3.5.2"
context["vue_test_utils_version"] = "^2.4.6"
context["nuxt_test_utils_version"] = "3.19.1"
context["vue_eslint_parser_version"] = "^10.4.0"
context["happy_dom_version"] = "^20.8.4"
context["node_kiota_bundle_version"] = "1.0.0-preview.100"
#######
# These are duplicated in the CI files for this repository
context["gha_checkout"] = "v6.0.2"
context["gha_setup_python"] = "v6.2.0"
context["gha_cache"] = "v5.0.3"
context["gha_linux_runner"] = "ubuntu-24.04"
#######
context["gha_upload_artifact"] = "v7.0.0"
context["gha_download_artifact"] = "v8.0.0"
context["gha_github_script"] = "v7.0.1"
context["gha_setup_buildx"] = "v3.11.1"
context["buildx_version"] = "v0.27.0"
context["gha_docker_build_push"] = "v6.18.0"
context["gha_configure_aws_credentials"] = "v6.0.0"
context["gha_amazon_ecr_login"] = "v2.0.2"
context["gha_setup_node"] = "v6.3.0"
context["gha_action_gh_release"] = "v2.2.1"
context["gha_mutex"] = "1ebad517141198e08d47cf72f3c0975316620a65 # v1.0.0-alpha.10"
context["gha_pypi_publish"] = "v1.13.0"
context["gha_sleep"] = "v2.0.3"
context["gha_windows_runner"] = "windows-2025"
context["gha_short_timeout_minutes"] = "2"
context["gha_medium_timeout_minutes"] = "8"
context["gha_long_timeout_minutes"] = "15"
context["gha_xlong_timeout_minutes"] = "45"
#######
context["debian_release_name"] = "trixie"
context["alpine_image_version"] = "3.23"
context["nginx_image_version"] = "1.29.4"
#######
context["kiota_cli_version"] = "1.30.0"
# These also in the tests/data.yml files in this repository and in copier.yaml
context["py312_version"] = "3.12.7" # ReadTheDocs does not yet support 3.12.8
context["py313_version"] = "3.13.9"
context["py314_version"] = "3.14.0"
#######
# Kludge to allow for the same docker-compose file in child and grandchild templates
context["aws_region_for_stack"] = "us-east-1"
# Kludge to be able to stop symlinked jinja files from being updated in child templates when the variable is really meant for the instantiated grandchild template
context["is_child_of_copier_base_template"] = True
return context