@@ -18,8 +18,7 @@ should be on the same branch. To update an existing branch:
18
18
export RELEASE_BRANCH=release-x.x
19
19
git checkout RELEASE_BRANCH
20
20
git fetch upstream
21
- git pull upstream/master
22
- git push origin RELEASE_BRANCH
21
+ git pull upstream master
23
22
```
24
23
25
24
You may need to fix some conflicts. For auto-generated files, you can commit
@@ -46,9 +45,11 @@ need to update:
46
45
CLIENT_VERSION: Client version should follow x.y.zDn where x,y,z are version
47
46
numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
48
47
pre-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
+
50
50
SPEC_VERSION: This would be the kubernetes OpenAPI spec version. It should be
51
51
deprecated after kubernetes/kubernetes #37055 takes effect.
52
+
52
53
DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
53
54
in [ this list] ( https://pypi.python.org/pypi?%3Aaction=list_classifiers ) .
54
55
@@ -106,7 +107,7 @@ python setup.py bdist_wheel --universal
106
107
ls dist/
107
108
```
108
109
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.
110
111
111
112
TODO: We need a dry-run option an some way to test package upload process to pypi.
112
113
@@ -119,13 +120,12 @@ twine upload dist/*
119
120
## Create github release
120
121
121
122
Create 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 ) .
123
124
Click 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.
125
127
126
128
127
- ref: https://packaging.python.org/distributing/
128
-
129
129
## Cleanup
130
130
131
131
``` bash
@@ -134,3 +134,6 @@ rm -rf .release
134
134
```
135
135
136
136
TODO: Convert steps in this document to an (semi-) automated script.
137
+
138
+
139
+ ref: https://packaging.python.org/distributing/
0 commit comments