-
Notifications
You must be signed in to change notification settings - Fork 9
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
More licensing fun: Automated correction edition #58
Conversation
…reak currently working license experessions
nice work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w00t!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit, licenses
(plural) is slightly more descriptive ;)
pyproject.toml
Outdated
@@ -3,14 +3,11 @@ requires = ["setuptools>=61.0"] | |||
build-backend = "setuptools.build_meta" | |||
|
|||
[tool.setuptools] | |||
package-dir = {"" = "conda_recipe_manager"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line caused it to error looking for conda_recipe_manager.tests
as if the top level directory was what you got when "import conda_recipe_manager"
|
||
[tool.setuptools.package-data] | ||
"conda_recipe_manager" = ["py.typed", "*.json"] | ||
exclude = ["tests"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exclude prevents it from packaging "import tests" as a new top-level Python module when this is installed.
py.typed and *.json appear to be included in the wheel without the package-data configuration.
I think we're just getting started...
This comes out of discussions had in #45, #55, #57 and in Slack.
This PR introduces a new
SpdxUtils
library that provides a more advanced mechanism for correcting SPDX licenses than the simple patch-table introduced in #55From local testing, this PR reduces the number of SPDX errors from
rattler-build
in theanaconda_recipes_01
test recipe set from ~160 (prior to #55) to 25.This work is far from perfect, but I think it is a "good enough" solution for the time being. We'll learn and improve our approach with this starting point.