Setup and run the typeshed-serializer
masterTo set up the environment and run the serializer, follow these steps:
- Generate Protobuf files: Navigate to the
python-frontend/src/main/protobufdirectory and run theprotoccommand to generate the necessary Python output fromsymbols.proto. - Sync dependencies: Use
uv syncto prepare the environment. - Execute the serializer: Run the serializer runner using
uv run.
# 1. Generate protobuf files
cd python-frontend/src/main/protobuf
protoc -I=. --python_out=../../../typeshed_serializer/serializer/proto_out ./symbols.proto
# 2. Sync dependencies
uv sync
# 3. Run the serializer
uv run python runners/serializer_runner.py