Develop and Test nodemcu-uploader ================================= Configure development environment ------- ``` git clone https://github.com/kmpm/nodemcu-uploader cd nodemcu-uploader virtualenv env . env/bin/activate pip install -r test_requirements.txt python setyp.py develop ``` Testing ------- ``` pip install -r test_requirements.txt coverage run setup.py test ``` To run tests that actually communicate with a device you will need to set the __SERIALPORT__ environment variable to the port where you have an device connected. Linux ``` export SERIALPORT=/dev/ttyUSB0 ``` Publishing ---------- * http://peterdowns.com/posts/first-time-with-pypi.html Please make sure to bump the version number in nodemcu_uploader/version.py as well as the testing of that number in tests/misc.py ```bash #test upload python setup.py sdist upload -r pypitest #real upload python setup.py sdist upload -r pypi ```