In development often additional packages are needed which I have installed in my venv, which are not needed in production contrary to other packages I also installed in my venv. What's the cleanest way to produce a requirements.txt which does have all the requirements except the once I only need in development (like mypy or autopep8)
This answer shows how to do it but the method is very cumbersome.