From a247b777c4a7e9ae4400cf8e49af6b3ce884fc8e Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Thu, 7 Mar 2024 20:28:10 -0800 Subject: [PATCH] add make clean --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1235e12e..f8ec1c4e 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,10 @@ build: test: pytest tests/ --ignore=tests/integration/fork/ --ignore=tests/integration/network/ -# note: for pypi upload, -# rm -r titanoboa.egg-info/ dist/ -# python -m build -# twine upload dist/* +clean: + @find . -name '*.pyc' -exec rm -f {} + + @find . -name '*.pyo' -exec rm -f {} + + @find . -name '*~' -exec rm -f {} + + @find . -name '__pycache__' -exec rmdir {} + + +# note: for pypi upload, see pypi-publish.sh