We're updating our SDK build process to consume openapi/grpc artifacts published into a private gcloud bucket.
Solution
Move openapi python templates from private pinecone-protos repository into the codegen/ directory (reviewers: since these files are just being copied over from elsewhere without modification, they don't need close reviewing)
Add Makefile build commands to regenerate the openapi rest core and install new grpc stubs
Implemented Makefile gcloud CLI commands using a dockerized version of the CLI.
Add build-related directories downloads/ and gen/ to .gitignore so they are not checked in.
Usage
Run these make commands to update the generated parts of the SDK:
make gcloud-auth
make regenerate
Type of Change
[x] Infrastructure change (CI configs, etc)
Test Plan
I have another branch where I've tried running these commands and then executed tests with the updated client. I wanted to keep the size of this diff down to a manageable size so I did not commit those changes. See here https://github.com/pinecone-io/pinecone-python-client/pull/320
Problem
We're updating our SDK build process to consume openapi/grpc artifacts published into a private gcloud bucket.
Solution
pinecone-protos
repository into thecodegen/
directory (reviewers: since these files are just being copied over from elsewhere without modification, they don't need close reviewing)downloads/
andgen/
to.gitignore
so they are not checked in.Usage
Run these make commands to update the generated parts of the SDK:
Type of Change
Test Plan
I have another branch where I've tried running these commands and then executed tests with the updated client. I wanted to keep the size of this diff down to a manageable size so I did not commit those changes. See here https://github.com/pinecone-io/pinecone-python-client/pull/320