I'm using PyMuPDF in a Flask application and also in some standalone scripts. I'm trying to update my requirements.txt to include the proper PyMuPDF package I'm using but using the Context Action in Pycharm, the Sync requirements.txt option in the Tools menu, and running pipreq
do not update my requirements.txt at all. (Fitz is the package to import for PyMuPDF)
I can manually add it, but it doesn't do away with the warning on in Pycharm, and there's also an option in Pycharm to remove any unused requirements. I don't want someone to accidentally do that. I don't think this is a Pycharm or pipreq problem, but something with PyMuPDF.
What needs to be updated in PyMuPDF's code to handle this properly? Or is there anything I can do to support it in my code?