Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 925 Bytes

DEVELOPMENT.rst

File metadata and controls

41 lines (24 loc) · 925 Bytes

During development

  1. To develop, in the top directory of the respository use:

    python setup.py develop
    
  2. With the Arduino plugged, test changes using:

    python -m pytest -v
    python -m pytest --cov=tclab tests/
    

Note that pytest -v fails because the root file is not included in the search path.

After making changes

  1. Change the version number in tclab/version.py.

  2. Check the distribution:

    python setup.py check
    
  3. Push changes through to the master branch on Github.

  4. Create and push tag for the version number:

    git tag vX.Y.Z
    git push --tags
    

Uploading to PyPI

  1. Build the distribution:

    python setup.py sdist bdist_wheel
    
  2. Upload (also see the Python Packaging User Guide:

    twine upload dist/*