From fe2cdc18d9ffc5cb0e6a33ec7c186ff7e968b620 Mon Sep 17 00:00:00 2001 From: Vedant Bhayani Date: Fri, 9 Oct 2026 12:17:25 +0530 Subject: [PATCH] Update CHEATSHEET.rst with modern commands - replace test-requirements.txt with pip install -e .[test], remove setup.py from yapf, use python -m build --- CHEATSHEET.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/CHEATSHEET.rst b/CHEATSHEET.rst index 133b89f..6175926 100644 --- a/CHEATSHEET.rst +++ b/CHEATSHEET.rst @@ -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`` @@ -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 @@ -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``. \ No newline at end of file