This is an automated email from the ASF dual-hosted git repository.
yzheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 673dfb170 Fix regtest doc (#2955)
673dfb170 is described below
commit 673dfb17022ea8495fe4161de1bb389fecb1de72
Author: Yong Zheng <[email protected]>
AuthorDate: Sun Nov 2 20:26:48 2025 -0600
Fix regtest doc (#2955)
---
regtests/README.md | 24 ++----------------------
1 file changed, 2 insertions(+), 22 deletions(-)
diff --git a/regtests/README.md b/regtests/README.md
index 884e9b991..ea1dc4d33 100644
--- a/regtests/README.md
+++ b/regtests/README.md
@@ -185,30 +185,10 @@ Other commands are available in the
`regtests/t_spark_sql/src` directory.
## Python Tests
Python tests are based on `pytest`. They rely on a python Polaris client,
which is generated from the openapi spec.
-The client can be generated using two commands:
+The client can be generated using make command:
```shell
-# generate the management api client
-docker run --rm \
- -v ${PWD}:/local openapitools/openapi-generator-cli generate \
- -i /local/spec/polaris-management-service.yml \
- -g python \
- -o /local/client/python
--additional-properties=packageName=polaris.management
--additional-properties=apiNamePrefix=polaris
-
-# generate the iceberg rest client
-docker run --rm \
- -v ${PWD}:/local openapitools/openapi-generator-cli generate \
- -i /local/spec/polaris-catalog-service.yaml \
- -g python \
- -o /local/client/python --additional-properties=packageName=polaris.catalog
--additional-properties=apiNameSuffix=""
--additional-properties=apiNamePrefix=Iceberg
-```
-
-Tests rely on Python 3.9 or higher. `pyenv` can be used to install a current
version and mapped to the local directory
-by using
-
-```shell
-pyenv install 3.9
-pyenv local 3.9
+make client-regenerate
```
Once you've done that, you can run `setup.sh` to generate a python virtual
environment (installed at `~/polaris-venv`)