Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update release.md #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions devel/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ should be on the same branch. To update an existing branch:
export RELEASE_BRANCH=release-x.x
git checkout RELEASE_BRANCH
git fetch upstream
git pull upstream/master
git push origin RELEASE_BRANCH
git pull upstream master
```

You may need to fix some conflicts. For auto-generated files, you can commit
Expand All @@ -46,9 +45,11 @@ need to update:
CLIENT_VERSION: Client version should follow x.y.zDn where x,y,z are version
numbers (integers) and D is one of "a" for alpha or "b" for beta and n is the
pre-release number. For a final release, "Dn" part should be omitted. Examples:
1.0.0a1, 2.0.1b2, 1.5.1
1.0.0a1, 2.0.1b2, 1.5.1.

SPEC_VERSION: This would be the kubernetes OpenAPI spec version. It should be
deprecated after kubernetes/kubernetes#37055 takes effect.

DEVELOPMENT_STATUS: Update it to one of the values of "Development Status"
in [this list](https://pypi.python.org/pypi?%3Aaction=list_classifiers).

Expand Down Expand Up @@ -106,7 +107,7 @@ python setup.py bdist_wheel --universal
ls dist/
```

You should see two files in dist folder. kubernetes*.whl and kubernetes*.tar.gz.
You should see two files in dist folder. kubernetes\*.whl and kubernetes\*.tar.gz.

TODO: We need a dry-run option an some way to test package upload process to pypi.

Expand All @@ -119,13 +120,12 @@ twine upload dist/*
## Create github release

Create a gihub release by starting from
[this page(https://github.com/kubernetes-incubator/client-python/releases).
[this page](https://github.com/kubernetes-incubator/client-python/releases).
Click Deaft new release button. Name the tag the same as CLIENT_VERSION. Change
the target branch to "release-x.y"
the target branch to "release-x.y". If the release is a pre-release, check the
`This is a pre-release` option.


ref: https://packaging.python.org/distributing/

## Cleanup

```bash
Expand All @@ -134,3 +134,6 @@ rm -rf .release
```

TODO: Convert steps in this document to an (semi-) automated script.


ref: https://packaging.python.org/distributing/