Description¶
Finds the Python packages the deposit’s code imports. When the deposit has no .py or .ipynb files, it removes any old outputs and exits.
Installs the scanner requirements from
tools/requirements-scanner.txt.Runs
pipreqs --scan-notebooks, writinggenerated/requirements-generated.txt(an author’s ownrequirements.txtis never touched) andgenerated/python-scanner.log.Runs
tools/filter_requirements.pyto compare the scan with the author’srequirements.txt, writinggenerated/python-deps.csvand.md, and the report notegenerated/software-warnings-python.md.
Usage¶
./automations/15_run_python_scanner.sh <projectID>Environment Variables¶
SkipProcessing- Whenyes, the script exits immediately.ProcessPython- Whenno, the script exits immediately.pythonbin- Python command to use (default:python3).