Add functions to extract name/version of filename - #33
Merged
Conversation
get_jar_nv() and get_nupkg_nv() accept a filename of a JAR or nupkg and return a name/version tuple extracted using multiple heuristics Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
JonoYang
force-pushed
the
name-version-from-file
branch
from
April 5, 2022 21:06
5bc7450 to
ae536d2
Compare
Member
|
@pombredanne LGTM! Thanks! |
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* Create copyright statement from holder information Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* This is used for the case where we are starting off a project and have not yet generated requirements files Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* Add --init option to configure.bat
* Update help text in configure and configure.bat
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* Update README.rst Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* Update README.rst with instructions for post-initialization usage Signed-off-by: Jono Yang <jyang@nexb.com>
AyanSinhaMahapatra
pushed a commit
to AyanSinhaMahapatra/commoncode
that referenced
this pull request
Feb 14, 2025
* Replace references to scancode-toolkit repo with links to the skeleton repo
* Remove --python option from configure.bat
Signed-off-by: Jono Yang <jyang@nexb.com>
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.
get_jar_nv() and get_nupkg_nv() accept a filename of a JAR or nupkg
and return a name/version tuple extracted using multiple heuristics
I added this here for now, as there is a versions module.
But in the end it would likely best be in ScanCode packagecode module.
It is designed to be used to collect extra info from package archive filenames
and use this to enrich name/versions returned with ScanCode
--package scans
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com