Automation

Nothing too fancy here.

Run tests


In [ ]:
!python setup.py test

Check code style


In [3]:
!flake8

Generate README.md from README.ipynb


In [5]:
!jupyter nbconvert README.ipynb --to=markdown


[NbConvertApp] Converting notebook README.ipynb to markdown
[NbConvertApp] Writing 2013 bytes to README.md

Test Release for PyPi


In [ ]:
!python setup.py register -r pypitest
!python setup.py sdist
!python setup.py bdist_wheel
!python setup.py sdist upload -r pypitest
!python setup.py bdist_wheel upload -r pypitest

Cut a real release for PyPi


In [ ]:
!python setup.py register -r pypi
!python setup.py sdist
!python setup.py bdist_wheel
!python setup.py sdist upload -r pypi
!python setup.py bdist_wheel upload -r pypi