-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Install custom licenses using wheels #2994
Comments
Let me try to put a use case:
A possible case could be a collection of licenses in another language, say in German, or a collection of proprietary licenses. |
So what functionality does this feature actually need to provide? Should I assume that the licenses have already been installed?
|
In this case, not sure. There could be two designs:
That's the most likely scenario. A good example of this would be the "path providers" plugins that provide a path to a binary for instance:
with an extension point defined here: and used in there: |
This seems like the simplest approach to me since then we could just add the licenses contributed by the plugins to the index once, and then after caching the index, we continue using that file until we need to add new licenses. I'll go with this unless there are any objections.
It looks like each plugin class implements its own
Does this sound right? |
@KevinJi22 this sounds right 👍 |
@pombredanne I see two paths forward:
Any thoughts on which is best? |
@KevinJi22 Part of me is not sold on creating a different entry point for external licenses just yet. I would go with the first approach you listed and mandate that custom licenses start with a common prefix, like |
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This allows users to use licenses that they install via wheels in license scans. It also adds a sample package containing an external license that can be used to manually verify expected behavior. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
This was added, see https://scancode-toolkit.readthedocs.io/en/latest/how-to-guides/install_new_license_plugin.html |
This will enable users to install custom licenses using wheels during license detection.
The text was updated successfully, but these errors were encountered: