Compare commits

...

7 Commits

Author SHA1 Message Date
mbohlool
6c640c69de Release 2.0.0 constants 2017-05-03 11:38:37 -07:00
Mehdy Bohlool
ccc98096bf Merge pull request #205 from bsherman/2.0patch-fix
fix for #187 failure when using RFC 6902 json-patch operation
2017-05-01 11:04:59 -07:00
Benjamin Sherman
e4c5cc7a92 changelog update for #187 2017-04-30 21:16:31 -05:00
Benjamin Sherman
f8f0d89aab fix for #187 failure when using RFC 6902 json-patch operation 2017-04-27 21:08:50 -05:00
mbohlool
f4d943b435 Update versions for 2.0.0b1 release 2017-04-26 15:39:11 -07:00
mbohlool
13f847e70d Merge branch 'master' of github.com:kubernetes-incubator/client-python into release-2.0
Release 2.0.0b1
2017-04-26 15:28:06 -07:00
mbohlool
66ceec4962 Release 2.0.0a 2017-04-05 15:56:22 -07:00
6 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,6 @@
# v2.0.0b2
- Bugfix: support RFC6902 'json-patch' operations #187
# v1.0.1
- Bugfix: urllib3 1.21 fails tests, Excluding version 1.21 from dependencies #197

View File

@ -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.0-snapshot
- Package version: 2.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
## Requirements.

View File

@ -154,8 +154,8 @@ class RESTClientObject(object):
if query_params:
url += '?' + urlencode(query_params)
if headers['Content-Type'] == 'application/json-patch+json':
headers[
'Content-Type'] = 'application/strategic-merge-patch+json'
if not isinstance(body, list):
headers['Content-Type'] = 'application/strategic-merge-patch+json'
request_body = None
if body:
request_body = json.dumps(body)

View File

@ -18,13 +18,13 @@ import sys
KUBERNETES_BRANCH = "release-1.6"
# client version for packaging and releasing.
CLIENT_VERSION = "2.0.0-snapshot"
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 = "3 - Alpha"
DEVELOPMENT_STATUS = "5 - Production/Stable"
# If called directly, return the constant value given

View File

@ -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"

View File

@ -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.0-snapshot"
CLIENT_VERSION = "2.0.0"
PACKAGE_NAME = "kubernetes"
DEVELOPMENT_STATUS = "3 - Alpha"
DEVELOPMENT_STATUS = "5 - Production/Stable"
# To install the library, run the following
#