forked from mistralai/client-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (29 loc) · 1.42 KB
/
Makefile
File metadata and controls
34 lines (29 loc) · 1.42 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
.PHONY: help generate test-generate update-speakeasy-version check-config
help:
@echo "Available targets:"
@echo " make generate Generate all SDKs (main, Azure, GCP)"
@echo " make test-generate Test SDK generation locally"
@echo " make update-speakeasy-version VERSION=x.y.z Update Speakeasy CLI version"
@echo " make check-config Check gen.yaml against recommended defaults"
@echo ""
@echo "Note: Production SDK generation is done via GitHub Actions:"
@echo " .github/workflows/sdk_generation_mistralai_sdk.yaml"
# Generate all SDKs (main, Azure, GCP)
generate:
speakeasy run -t all
# Test SDK generation locally.
# For production, use GitHub Actions: .github/workflows/sdk_generation_mistralai_sdk.yaml
# This uses the Speakeasy CLI version defined in .speakeasy/workflow.yaml
test-generate:
speakeasy run --skip-versioning
# Check gen.yaml configuration against Speakeasy recommended defaults
check-config:
speakeasy configure generation check
# Update the Speakeasy CLI version (the code generator tool).
# This modifies speakeasyVersion in .speakeasy/workflow.yaml and regenerates the SDK.
# Usage: make update-speakeasy-version VERSION=1.685.0
update-speakeasy-version:
ifndef VERSION
$(error VERSION is required. This is the Speakeasy CLI version (e.g., 1.685.0))
endif
uv run inv update-speakeasy --version "$(VERSION)" --targets "all"