Do Package Manager stuff

Use the right tool for the job: there are some things that aren't worth re-engineering in Python. Here are some tools in python and javascript that will help your project be more maintainable


In [ ]:
!cd .. && pip install -r requirements-dev.txt
!cd .. && npm install
!cd .. && bower install

Check Style


In [ ]:
!flake8 ../ipythond3sankey/*.py ../*.py
!cd .. && npm run jshint

Transpile JS/CSS


In [ ]:
!cd .. && npm run less

Run Tests


In [ ]:
!cd .. && PYTHONWARNINGS=ignore python setup.py test

Generate READMEs


In [ ]:
!ipython nbconvert README.ipynb --to=rst --stdout > ../README.rst

PyPi: release


In [ ]:
!rm ../dist/ipython-d3-sankey-*.tar.gz
!cd .. && python setup.py sdist
!cd .. && twine upload dist/ipython-d3-sankey-*.tar.gz