Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions CHEATSHEET.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tips
To run tests
------------

* Install requirements: ``pip install -r test-requirements.txt``
* Install requirements: ``pip install -e ".[test]"``
(possibly in a virtualenv)

* Actually run the tests: ``pytest sniffio``
Expand All @@ -13,11 +13,9 @@ To run tests
To run yapf
-----------

* Show what changes yapf wants to make: ``yapf -rpd setup.py
sniffio``
* Show what changes yapf wants to make: ``yapf -rpd sniffio``

* Apply all changes directly to the source tree: ``yapf -rpi setup.py
sniffio``
* Apply all changes directly to the source tree: ``yapf -rpi sniffio``


To make a release
Expand All @@ -33,10 +31,10 @@ To make a release

* Double-check it all works, docs build, etc.

* Build your sdist and wheel: ``python setup.py sdist bdist_wheel``
* Build your sdist and wheel: ``python -m build``

* Upload to PyPI: ``twine upload dist/*``

* Use ``git tag`` to tag your version.

* Don't forget to ``git push --tags``.
* Don't forget to ``git push --tags``.
Loading