Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 797 Bytes

CHEATSHEET.rst

File metadata and controls

42 lines (24 loc) · 797 Bytes

Tips

To run tests

  • Install requirements: pip install -r test-requirements.txt (possibly in a virtualenv)
  • Actually run the tests: pytest trimeter

To run yapf

  • Show what changes yapf wants to make: yapf -rpd setup.py trimeter
  • Apply all changes directly to the source tree: yapf -rpi setup.py trimeter

To make a release

  • Update the version in trimeter/_version.py
  • Run towncrier to collect your release notes.
  • Review your release notes.
  • Check everything in.
  • Double-check it all works, docs build, etc.
  • Build your sdist and wheel: python setup.py sdist bdist_wheel
  • Upload to PyPI: twine upload dist/*
  • Use git tag to tag your version.
  • Don't forget to git push --tags.