Skip to content

Add functions to extract name/version of filename - #33

Merged
JonoYang merged 1 commit into
mainfrom
name-version-from-file
Apr 5, 2022
Merged

Add functions to extract name/version of filename#33
JonoYang merged 1 commit into
mainfrom
name-version-from-file

Conversation

@pombredanne

Copy link
Copy Markdown
Member

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

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
JonoYang force-pushed the name-version-from-file branch from 5bc7450 to ae536d2 Compare April 5, 2022 21:06
@JonoYang
JonoYang merged commit 3743b62 into main Apr 5, 2022
@JonoYang

JonoYang commented Apr 5, 2022

Copy link
Copy Markdown
Member

@pombredanne LGTM! Thanks!

@JonoYang
JonoYang deleted the name-version-from-file branch April 5, 2022 21:20
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants