-
Notifications
You must be signed in to change notification settings - Fork 1
Handler Python
Valentin Chatelain edited this page May 18, 2017
·
2 revisions
className: GoM.Core.FSAnalyzer.PythonProjectHandler
This class inherits from BaseProjectFolderHandler
, its goal is to analyze a folder containing a python package and create a new Project
with the project's dependencies.
A python packages store its dependencies in a setup.py
file, it's a regular python script that installs the package and the needed dependencies.
Sniff: This method analyze the root folder given in the constructor and determine the project's type, the Sniff method can call another Handler to dispatch the work.
Read: The Read method calls a Python setup file parser to get the project's dependencies, it then creates a new Project
with the project's dependencies and return it.