diff --git a/kubernetes/__init__.py b/kubernetes/__init__.py index 0b613223f5..993c4e735b 100644 --- a/kubernetes/__init__.py +++ b/kubernetes/__init__.py @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +__project__ = 'kubernetes' +# The version is auto-updated. Please do not edit. +__version__ = "3.0.0-snapshot" + import kubernetes.client import kubernetes.config import kubernetes.watch diff --git a/scripts/update-client.sh b/scripts/update-client.sh index 7b8927bf50..6e02f50192 100755 --- a/scripts/update-client.sh +++ b/scripts/update-client.sh @@ -62,6 +62,7 @@ mv "${CLIENT_ROOT}/swagger.json" "${SCRIPT_ROOT}/swagger.json" echo ">>> updating version information..." sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py" +sed -i'' "s/^__version__ = .*/__version__ = \\\"${CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py" sed -i'' "s/^PACKAGE_NAME = .*/PACKAGE_NAME = \\\"${PACKAGE_NAME}\\\"/" "${SCRIPT_ROOT}/../setup.py" sed -i'' "s,^DEVELOPMENT_STATUS = .*,DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STATUS}\\\"," "${SCRIPT_ROOT}/../setup.py" echo ">>> Done."