Skip to content

Conversation

@JonoYang
Copy link
Member

As per #759, users are now able to specify custom license URL templates with the new command line option --license-url-template. The user would pass in the URL template as so:

scancode -l --license-url-template "https://example.com/urn:{}" example_directory

where {} is the placeholder for the license key. Also, the field dejacode_url has now been renamed reference_url.

    * Create new argument in `get_licenses()` in `api.py` to pass in a URL template with the default being the current DejaCode URL template
    * Create new CLI option in `cli.py` to get a URL template from the command line and pass it to `get_licenses()`

Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
Signed-off-by: Jonathan "Jono" Yang <jyang@nexb.com>
@codecov
Copy link

codecov bot commented Sep 25, 2017

Codecov Report

Merging #771 into develop will increase coverage by 0.37%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #771      +/-   ##
===========================================
+ Coverage    78.19%   78.57%   +0.37%     
===========================================
  Files           91       91              
  Lines        11265    11267       +2     
===========================================
+ Hits          8809     8853      +44     
+ Misses        2456     2414      -42
Impacted Files Coverage Δ
src/scancode/api.py 74.66% <100%> (+19.99%) ⬆️
src/scancode/cli.py 93.51% <100%> (+1.82%) ⬆️
src/commoncode/fileutils.py 84.61% <0%> (+1.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9cc876e...d5ebfd2. Read the comment docs.

Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Thanks!

@pombredanne pombredanne merged commit d5ebfd2 into develop Sep 30, 2017
@pombredanne pombredanne deleted the 759-licref-url-template branch September 30, 2017 17:55
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.

3 participants