Add support for parsing publiccode.yml as package metadata#4865
Open
kumarasantosh wants to merge 5 commits intoaboutcode-org:developfrom
Open
Add support for parsing publiccode.yml as package metadata#4865kumarasantosh wants to merge 5 commits intoaboutcode-org:developfrom
kumarasantosh wants to merge 5 commits intoaboutcode-org:developfrom
Conversation
When a gemspec uses a Ruby constant for the version field like: s.version = Elasticsearch::API::VERSION s.version = Faraday::VERSION scancode was storing the constant name as the version string. These constants cannot be resolved without executing Ruby code. Add is_ruby_version_constant() to detect Ruby constant expressions (containing :: namespace separator or bare uppercase constant names) and return None for the version instead of storing an unresolvable constant string. Also fixes the download_url and api_data_url which were generating invalid URLs with the constant name embedded. Fixes aboutcode-org#3129 Signed-off-by: kumarasantosh <santosh.pulikond02@gmail.com>
Signed-off-by: kumarasantosh <santosh.pulikond02@gmail.com>
licenses: add IBPP License v1.1 detection - Add ibpp_ref.RULE for reference-style detection - Add ibpp_intro.RULE for header/copyright line detection - Add test data for IBPP interference with passwdqc block Signed-off-by: kumarasantosh <santosh.pulikond02@gmail.com>
Signed-off-by: kumarasantosh <santosh.pulikond02@gmail.com>
…r to parse publiccode.yml files.\npubliccode.yml is a metadata standard for public sector open source\nsoftware. See https://github.com/publiccodeyml/publiccode.yml\n\nResolves aboutcode-org#2851 Signed-off-by: kumarasantosh <santosh.pulikond02@gmail.com>
f3be189 to
ce55547
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new PubliccodeYmlHandler in src/packagedcode/publiccode.py to parse publiccode.yml / publiccode.yaml files and extract them as package metadata.
publiccode.yml is a YAML-based metadata standard for public sector open source software, widely adopted across the EU.
Closes #2851