mirror of
https://git.mirrors.martin98.com/https://github.com/petaflot/pygcode
synced 2025-07-28 03:42:03 +08:00
deployment notes (git-side)
This commit is contained in:
parent
928e9bc7f0
commit
8fcb4af6f6
@ -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/<envname>/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/<envname>/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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user