@@ -18,8 +18,7 @@ should be on the same branch. To update an existing branch:
1818export RELEASE_BRANCH=release-x.x
1919git checkout RELEASE_BRANCH
2020git fetch upstream
21- git pull upstream/master
22- git push origin RELEASE_BRANCH
21+ git pull upstream master
2322```
2423
2524You may need to fix some conflicts. For auto-generated files, you can commit
@@ -46,9 +45,11 @@ need to update:
4645CLIENT_VERSION: Client version should follow x.y.zDn where x,y,z are version
4746numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
4847pre-release number. For a final release, "Dn" part should be omitted. Examples:
49- 1.0.0a1, 2.0.1b2, 1.5.1
48+ 1.0.0a1, 2.0.1b2, 1.5.1.
49+
5050SPEC_VERSION: This would be the kubernetes OpenAPI spec version. It should be
5151deprecated after kubernetes/kubernetes #37055 takes effect.
52+
5253DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
5354in [ this list] ( https://pypi.python.org/pypi?%3Aaction=list_classifiers ) .
5455
@@ -106,7 +107,7 @@ python setup.py bdist_wheel --universal
106107ls dist/
107108```
108109
109- You should see two files in dist folder. kubernetes* .whl and kubernetes* .tar.gz.
110+ You should see two files in dist folder. kubernetes\ * .whl and kubernetes\ * .tar.gz.
110111
111112TODO: We need a dry-run option an some way to test package upload process to pypi.
112113
@@ -119,13 +120,12 @@ twine upload dist/*
119120## Create github release
120121
121122Create a gihub release by starting from
122- [ this page(https://github.com/kubernetes-incubator/client-python/releases ).
123+ [ this page] ( https://github.com/kubernetes-incubator/client-python/releases ) .
123124Click Deaft new release button. Name the tag the same as CLIENT_VERSION. Change
124- the target branch to "release-x.y"
125+ the target branch to "release-x.y". If the release is a pre-release, check the
126+ ` This is a pre-release ` option.
125127
126128
127- ref: https://packaging.python.org/distributing/
128-
129129## Cleanup
130130
131131``` bash
@@ -134,3 +134,6 @@ rm -rf .release
134134```
135135
136136TODO: Convert steps in this document to an (semi-) automated script.
137+
138+
139+ ref: https://packaging.python.org/distributing/
0 commit comments