Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pipelines as plugins #91

Closed
tdruez opened this issue Feb 9, 2021 · 0 comments
Closed

Add Pipelines as plugins #91

tdruez opened this issue Feb 9, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tdruez
Copy link
Contributor

tdruez commented Feb 9, 2021

Until now pipelines have been plain Python scripts living a specific Python module. To improve modularity, pipelines should be installable instead as Python packages that one can add to a scancode.io installation.
A simple design is to use setuptools entry points as way for a Python package to signal it is contributing a pipeline.

@tdruez tdruez added this to the 1.1 milestone Feb 9, 2021
@tdruez tdruez self-assigned this Feb 9, 2021
tdruez added a commit that referenced this issue Feb 9, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 9, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 12, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 12, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 12, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
@pombredanne pombredanne changed the title Add Pipelines as plugging Add Pipelines as plugins Feb 13, 2021
@pombredanne pombredanne added the enhancement New feature or request label Feb 13, 2021
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Apply that convention everywhere

Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
Signed-off-by: Thomas Druez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 15, 2021
* Replace pipeline loading using the importlib_metadata entry_points #91

Signed-off-by: Thomas Druez <tdruez@nexb.com>

* Add a register_pipeline method to simplify registration #91

Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez tdruez closed this as completed Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants