- Install requirements:
pip install -r test-requirements.txt(possibly in a virtualenv) - Actually run the tests:
pytest sniffio
- Show what changes yapf wants to make:
yapf -rpd setup.py sniffio - Apply all changes directly to the source tree:
yapf -rpi setup.py sniffio
- Update the version in
sniffio/_version.py - Run
towncrierto 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 tagto tag your version. - Don't forget to
git push --tags.