Skip to content

Commit 38982e2

Browse files
authored
Bump Katib Python SDK to 0.19.0 version (#2585)
* Bump Katib Python SDK to 0.19.0 version Signed-off-by: Andrey Velichkevich <[email protected]> * Update version in gen-api Signed-off-by: Andrey Velichkevich <[email protected]> * Fix release script Signed-off-by: Andrey Velichkevich <[email protected]> * Run gen-api directly Signed-off-by: Andrey Velichkevich <[email protected]> --------- Signed-off-by: Andrey Velichkevich <[email protected]>
1 parent ec34033 commit 38982e2

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

api/python_api/kubeflow_katib_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414

1515

16-
__version__ = "0.18.0"
16+
__version__ = "0.19.0"

hack/python-api/gen-api.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ source "${SCRIPT_DIR}/../scripts/container-runtime.sh"
2727
setup_container_runtime
2828

2929
# TODO (andreyvelich): Read this data from the global VERSION file.
30-
API_VERSION="0.18.0"
30+
API_VERSION="0.19.0"
3131
API_OUTPUT_PATH="api/python_api"
3232
PKG_ROOT="${API_OUTPUT_PATH}/kubeflow_katib_api"
3333

scripts/v1beta1/release.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,16 @@ echo -e "\nKatib Python SDK ${sdk_version} has been published\n"
9797
# ------------------ Publish Katib Models for Kubeflow SDK ------------------
9898
echo -e "\nPublishing Katib Python models for Kubeflow SDK, version: ${sdk_version}\n"
9999

100-
# Change version in __init__.py
101-
cd api/python_api
100+
# Change version in gen-api.sh file.
102101
if [[ $(uname) == "Darwin" ]]; then
103-
sed -i '' -e "s@__version__ = \".*\"@__version__ = \"${sdk_version}\"@" kubeflow_katib_api/__init__.py
102+
sed -i '' -e "s@API_VERSION=\".*\"@API_VERSION=\"${sdk_version}\"@" hack/python-api/gen-api.sh
104103
else
105-
sed -i -e "s@__version__ = \".*\"@__version__ = \"${sdk_version}\"@" kubeflow_katib_api/__init__.py
104+
sed -i -e "s@API_VERSION=\".*\"@API_VERSION=\"${sdk_version}\"@" hack/python-api/gen-api.sh
106105
fi
106+
./hack/python-api/gen-api.sh
107+
107108
# Upload Katib models to PyPI.
109+
cd api/python_api
108110
python -m build
109111
twine upload dist/*
110112
rm -r dist/

sdk/python/v1beta1/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
setuptools.setup(
5858
name="kubeflow-katib",
59-
version="0.18.0rc0",
59+
version="0.19.0",
6060
author="Kubeflow Authors",
6161
author_email="[email protected]",
6262
license="Apache License Version 2.0",

0 commit comments

Comments
 (0)