Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.04 KB

CONTRIBUTING.md

File metadata and controls

44 lines (30 loc) · 1.04 KB

Setting up the Development Environment

  1. Git clone the repository
git clone https://github.com/webdjoe/pyvesync
  1. Create and activate a separate python virtual environment for pyvesync
# Create a new venv
python3 -m venv pyvesync-venv
# Activate the venv
source pyvesync-venv/bin/activate
  1. Install pyvesync in the venv
pip3 install -e pyvesync/

If the above steps were executed successfully, you should now have:

  • Code directory pyvesync(which we cloned from github)
  • Python venv directory pyvesync (all the dependencies/libraries are contained here)

Any change in the code will now be directly reflected and can be tested. To deactivate the python venv, simply run deactivate.

Testing Python with Tox

Install tox, navigate to the pyvesync repository which contains the tox.ini file, and run tox as follows:

pip install tox
cd pyvesync
tox

Ensure new devices are Integrated in Tests

If you integrate a new device, please read the testing README to ensure that your device is tested.