I am following the tutorial here to package a python project into a wheel package. I am using setup.cfg to do the build. I was able to do
python -m build --wheel
to create the wheel package. However, I'd like to automatically clean up the unwanted folders "build/" and "xxx.egg-info" after I get the wheel package in "dist/". I did a lot of search but the only answers I found were for using setup.py (e.g. here). I wonder if there's any way to do the cleanup with setup.cfg as well?