$ PYTHONPATH=$PWD/yapf python -m yapf -i -r .
$ PYTHONPATH=$PWD/yapf python -m yapf -i $(git diff --name-only @{upstream})
$ python setup.py test
Bump version in setup.py
.
Build source distribution:
$ python setup.py sdist
Check that it looks OK.
Build release:
$ python setup.py sdist bdist_wheel
$ twine upload dist/*
Test in a clean virtualenv that ‘pip install yapf’ works with the new version.
Commit the version bump and add tag with:
$ git tag v$(VERSION_NUM) $ git push --tags