DEVELOP.md 914 B

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

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

#test upload
python setup.py sdist upload -r pypitest

#real upload
python setup.py sdist upload -r pypi