www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Fetching licensing info for all dependencies of a DUB project

reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
Hello folks,

Are there any tools that exist to help prepare a report of all 
the different software licenses used by dependencies of a DUB 
project?  (This should cover all pulled in dependencies, not just 
direct dependencies.)

Thanks and best wishes,

     -- Joe
May 12 2020
parent reply Paul Backus <snarwin gmail.com> writes:
On Tuesday, 12 May 2020 at 12:44:11 UTC, Joseph Rushton Wakeling 
wrote:
 Hello folks,

 Are there any tools that exist to help prepare a report of all 
 the different software licenses used by dependencies of a DUB 
 project?  (This should cover all pulled in dependencies, not 
 just direct dependencies.)

 Thanks and best wishes,

     -- Joe
You should be able to get this information from the JSON output of `dub describe`.
May 12 2020
parent reply Joseph Rushton Wakeling <joseph.wakeling webdrake.net> writes:
On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:
 You should be able to get this information from the JSON output 
 of `dub describe`.
Cool, thanks. Much appreciated :-) Has anyone created any tools to condense that into a licensing report? No worries if not, just curious.
May 12 2020
parent reply Paul Backus <snarwin gmail.com> writes:
On Tuesday, 12 May 2020 at 13:08:01 UTC, Joseph Rushton Wakeling 
wrote:
 On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:
 You should be able to get this information from the JSON 
 output of `dub describe`.
Cool, thanks. Much appreciated :-) Has anyone created any tools to condense that into a licensing report? No worries if not, just curious.
Not that I know of. If you end up making one yourself, it might be worth posting in the Announce forum.
May 12 2020
parent reply =?UTF-8?Q?Christian_K=c3=b6stlin?= <christian.koestlin gmail.com> writes:
On 2020-05-12 15:23, Paul Backus wrote:
 On Tuesday, 12 May 2020 at 13:08:01 UTC, Joseph Rushton Wakeling wrote:
 On Tuesday, 12 May 2020 at 12:59:14 UTC, Paul Backus wrote:
 You should be able to get this information from the JSON output of 
 `dub describe`.
Cool, thanks.  Much appreciated :-) Has anyone created any tools to condense that into a licensing report?  No worries if not, just curious.
Not that I know of. If you end up making one yourself, it might be worth posting in the Announce forum.
Hi all, I played around with the idea and came up with a small dub package, that is not (yet) uploaded to the dub registry. Source is available at https://github.com/gizmomogwai/packageinfo, feedback very welcome. Kind regards, Christian
Jun 27 2022
parent reply Guillaume Piolat <first.last gmail.com> writes:
On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote:
 I played around with the idea and came up with a small dub 
 package, that is not (yet) uploaded to the dub registry.
 Source is available at 
 https://github.com/gizmomogwai/packageinfo, feedback very 
 welcome.
I've done something similar not for licences but for code amount, to extract from a DUB project: - DUB packages used by project - source files used by project - and their LOC count This is a D forums exclusive: https://pastebin.com/RFbFCgR2 Keep your debt in check!
Jun 28 2022
parent =?UTF-8?Q?Christian_K=c3=b6stlin?= <christian.koestlin gmail.com> writes:
On 2022-06-28 14:34, Guillaume Piolat wrote:
 On Monday, 27 June 2022 at 21:36:31 UTC, Christian Köstlin wrote:
 I played around with the idea and came up with a small dub package, 
 that is not (yet) uploaded to the dub registry.
 Source is available at https://github.com/gizmomogwai/packageinfo, 
 feedback very welcome.
I've done something similar not for licences but for code amount, to extract from a DUB project:  - DUB packages used by project  - source files used by project  - and their LOC count This is a D forums exclusive: https://pastebin.com/RFbFCgR2 Keep your debt in check!
Interesting ... there is also dscanner that can count lines of code. in another toy project of mine I create a dependency dot graph, might be good to collect all those things together ... there is also https://github.com/funkwerk/cogito that collect another metric of projects.
Jun 29 2022