Files
e2b-dev--e2b/packages/python-sdk/Makefile
T
Jakub Novák 706ebd9af8 Fix generating files with docker (#829)
# Description

Fixes an issue in generating files in Docker. There has been an
incompatibility of `buf` (version `29.5`) and `protoc-gen-es` (version
`2.2.2`).

I updated `protoc-gen-es@` to `2.6.2`

Also refactored the code a little so it's easier to read
Added a CI pipeline job to check all files are properly generated
2025-07-28 13:47:26 +02:00

26 lines
614 B
Makefile

generate-api:
python ./../../spec/remove_extra_tags.py sandboxes
openapi-python-client generate --output-path e2b/api/api --overwrite --path ../../spec/openapi_generated.yml
rm -rf e2b/api/client
mv e2b/api/api/e2b_api_client e2b/api/client
rm -rf e2b/api/api
black .
generate-envd:
if [ ! -f "/go/bin/protoc-gen-connect-python" ]; then \
$(MAKE) -C packages/connect-python build; \
fi
cd ./../../spec/envd && buf generate --template buf-python.gen.yaml
black .
generate: generate-api generate-envd
./scripts/fix-python-pb.sh
black .
init:
pip install openapi-python-client
lint:
ruff check .