From 8fcb4af6f698ebfc32f9e50f4aa571deb27f1a09 Mon Sep 17 00:00:00 2001 From: Peter Boin Date: Tue, 18 Jul 2017 23:19:10 +1000 Subject: [PATCH] deployment notes (git-side) --- deployment.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/deployment.md b/deployment.md index fb7b164..da9d063 100644 --- a/deployment.md +++ b/deployment.md @@ -8,13 +8,15 @@ Method based on the articles: * https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ -## Pre-requisites +## PyPi deployment + +### Pre-requisites ``` pip install -U "pip>=1.4" "setuptools>=0.9" "wheel>=0.21" twine ``` -## PyPi rc +### PyPi rc `cat ~/.pypirc` @@ -38,14 +40,14 @@ password=secret `chmod 600 ~/.pypirc` -## Building +### Building ``` rm -rf build/ python setup.py sdist bdist_wheel ``` -### Test Build (sdist) +#### Test Build (sdist) **Python 2.x** @@ -75,14 +77,14 @@ $WORKON_HOME/35-test/bin/python >>> pygcode.Line('g1 x2 y3 m3 s1000 f100').block.gcodes # or whatever ``` -### Test Build (wheel) +#### Test Build (wheel) similar to above, but the `pip` call references `pygcode-0.1.0-py2.py3-none-any.whl` instead make sure to `rmvirtualenv` to ensure `pygcode` is uninstalled from virtual environment -## Upload to PyPi Test server +### Upload to PyPi Test server `twine upload -r test dist/pygcode-0.1.0*` @@ -91,7 +93,7 @@ Then another round of testing, where `pip` call is: `$WORKON_HOME//bin/pip install -i https://testpypi.python.org/pypi pygcode` -## Upload to PyPy server +### Upload to PyPy server all good!? sweet :+1: time to upload to 'production' @@ -100,3 +102,14 @@ all good!? sweet :+1: time to upload to 'production' and final tests with simply: `$WORKON_HOME//bin/pip install pygcode` + +## Deployment in Git + +after merging to `master` + +``` +git tag 0.1.0 -m "Initial version" +git push --tags origin master +``` + +tadaaaaaa!