I've just tried running pipreqs for my project. It seemed to work fine until the project's CI crashed telling me:
ERROR: ERROR: No matching distribution found for secrets==1.0.2
Pipreqs thought it's the secrets package, while in reality it was secrets standard library.
Removing the 'secrets==1.0.2' manually from requirements.txt fixed the issue.
The package cannot be installed on Python 3.7 and I'm running Python 3.7, so technically it's clear which module I want to import in my code.
Is there a way for pipreqs to solve this issue automatically or will I need to fix it manually upon every requirements.txt regeneration?
I've just tried running pipreqs for my project. It seemed to work fine until the project's CI crashed telling me:
Pipreqs thought it's the secrets package, while in reality it was secrets standard library. Removing the 'secrets==1.0.2' manually from requirements.txt fixed the issue.
The package cannot be installed on Python 3.7 and I'm running Python 3.7, so technically it's clear which module I want to import in my code.
Is there a way for pipreqs to solve this issue automatically or will I need to fix it manually upon every requirements.txt regeneration?