added change-log update to deployment checklist

This commit is contained in:
Peter Boin 2017-08-15 22:00:13 +10:00
parent eb52cd0551
commit 710b968cd8

View File

@ -16,7 +16,6 @@ Method based on the articles:
Deployment also heavily uses the `./deploy.sh` script in this folder.
At this time, running `./deploy.sh --help` displays:
```
Usage: ./deploy.sh {build|test|and so on ...}
This script is to maintain a consistent method of deployment and testing.
@ -56,7 +55,6 @@ Arguments:
py#: when referenced above means
'py2' for Python 2.7.12
'py3' for Python 3.5.2
```
# PyPi deployment
@ -68,7 +66,6 @@ Arguments:
`cat ~/.pypirc`
```
[distutils]
index-servers =
prod
@ -83,7 +80,6 @@ password=secret
repository=https://test.pypi.org/legacy/
username=FraggaMuffin
password=secret
```
`chmod 600 ~/.pypirc`
@ -91,12 +87,11 @@ password=secret
## Build and Test `sdist` and `wheel`
**Build**
```
./deploy.sh build
```
**Test `sdist`**
```
# Python 2.x
./deploy.sh remkenv py2
./deploy.sh envprereq py2
@ -108,10 +103,9 @@ password=secret
./deploy.sh envprereq py3
./deploy.sh install sdist py3
./deploy.sh test installed py3
```
**Test `wheel`**
```
# Python 2.x
./deploy.sh remkenv py2
./deploy.sh install wheel py2
@ -121,17 +115,17 @@ password=secret
./deploy.sh remkenv py3
./deploy.sh install wheel py3
./deploy.sh test installed py3
```
## Upload to PyPi Test server
```
./deploy.sh deploy test
```
**Test**
```
# Python 2.x
./deploy.sh remkenv py2
./deploy.sh envprereq py2
@ -143,7 +137,6 @@ password=secret
./deploy.sh envprereq py3
./deploy.sh install pypitest py3
./deploy.sh test installed py3
```
have a look at:
https://testpypi.python.org/pypi/pygcode
@ -154,12 +147,10 @@ to make sure it's sane
all good!? sweet :+1: time to upload to 'production'
```
./deploy.sh deploy prod
```
**Test**
```
# Python 2.x
./deploy.sh remkenv py2
./deploy.sh install pypi py2
@ -169,7 +160,6 @@ all good!? sweet :+1: time to upload to 'production'
./deploy.sh remkenv py3
./deploy.sh install pypi py3
./deploy.sh test installed py3
```
have a look at:
https://pypi.python.org/pypi/pygcode
@ -178,15 +168,25 @@ to make sure it's sane
# Deployment in Git
merge deployed branch to `master`, then...
create pull request `develop` -> `master`
## Update change log
update [change log](../dist/README.md)
## Push Release to Git (aka `tag`)
merge `develop` branch to `master`, then...
Switch local to `master` and tag with relevant version
```
git checkout master
git pull
git tag ${version} -m "<change description>"
git push --tags origin master
```
have a look at the [releases page](https://github.com/fragmuffin/pygcode/releases) and it should be there.
edit release and copy relevant content from [change log](../dist/README.md)
tadaaaaaa!... go to sleep; it's probably late