File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -185,30 +185,10 @@ Other commands are available in the `regtests/t_spark_sql/src` directory.
185185## Python Tests
186186
187187Python tests are based on ` pytest ` . They rely on a python Polaris client, which is generated from the openapi spec.
188- The client can be generated using two commands :
188+ The client can be generated using make command :
189189
190190``` shell
191- # generate the management api client
192- docker run --rm \
193- -v ${PWD} :/local openapitools/openapi-generator-cli generate \
194- -i /local/spec/polaris-management-service.yml \
195- -g python \
196- -o /local/client/python --additional-properties=packageName=polaris.management --additional-properties=apiNamePrefix=polaris
197-
198- # generate the iceberg rest client
199- docker run --rm \
200- -v ${PWD} :/local openapitools/openapi-generator-cli generate \
201- -i /local/spec/polaris-catalog-service.yaml \
202- -g python \
203- -o /local/client/python --additional-properties=packageName=polaris.catalog --additional-properties=apiNameSuffix=" " --additional-properties=apiNamePrefix=Iceberg
204- ```
205-
206- Tests rely on Python 3.9 or higher. ` pyenv ` can be used to install a current version and mapped to the local directory
207- by using
208-
209- ``` shell
210- pyenv install 3.9
211- pyenv local 3.9
191+ make client-regenerate
212192```
213193
214194Once you've done that, you can run ` setup.sh ` to generate a python virtual environment (installed at ` ~/polaris-venv ` )
You can’t perform that action at this time.
0 commit comments