From 6c640c69de3e199436c4f20f480578fbc14c481b Mon Sep 17 00:00:00 2001 From: mbohlool Date: Wed, 3 May 2017 11:38:37 -0700 Subject: [PATCH] Release 2.0.0 constants --- kubernetes/README.md | 2 +- scripts/constants.py | 4 ++-- scripts/update-client.sh | 2 +- setup.py | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kubernetes/README.md b/kubernetes/README.md index b9de8345a..68c7c5540 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -4,7 +4,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1.6.3 -- Package version: 2.0.0b1 +- Package version: 2.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/scripts/constants.py b/scripts/constants.py index ab6635c78..9c3ca7925 100644 --- a/scripts/constants.py +++ b/scripts/constants.py @@ -18,13 +18,13 @@ import sys KUBERNETES_BRANCH = "release-1.6" # client version for packaging and releasing. -CLIENT_VERSION = "2.0.0b1" +CLIENT_VERSION = "2.0.0" # Name of the release package PACKAGE_NAME = "kubernetes" # Stage of development, mainly used in setup.py's classifiers. -DEVELOPMENT_STATUS = "4 - Beta" +DEVELOPMENT_STATUS = "5 - Production/Stable" # If called directly, return the constant value given diff --git a/scripts/update-client.sh b/scripts/update-client.sh index 7453839ce..1d6dfe4cc 100755 --- a/scripts/update-client.sh +++ b/scripts/update-client.sh @@ -60,7 +60,7 @@ find "${CLIENT_ROOT}/" -type f -name \*.md -exec sed -i 's/kubernetes.client-pyt echo "--- updating version information..." sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.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" +sed -i'' "s,^DEVELOPMENT_STATUS = .*,DEVELOPMENT_STATUS = \\\"${DEVELOPMENT_STATUS}\\\"," "${SCRIPT_ROOT}/../setup.py" sed -i'' "/^configuration = Configuration()$/d" "${CLIENT_ROOT}/client/__init__.py" sed -i'' "/^from .configuration import Configuration$/d" "${CLIENT_ROOT}/client/__init__.py" sed -i '${/^$/d;}' "${CLIENT_ROOT}/client/__init__.py" diff --git a/setup.py b/setup.py index f68351663..b70023cde 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,9 @@ from setuptools import find_packages, setup # Do not edit these constants. They will be updated automatically # by scripts/update-client.sh. -CLIENT_VERSION = "2.0.0b1" +CLIENT_VERSION = "2.0.0" PACKAGE_NAME = "kubernetes" -DEVELOPMENT_STATUS = "4 - Beta" +DEVELOPMENT_STATUS = "5 - Production/Stable" # To install the library, run the following #