Skip to content

There is no template with the other Licence files that nbdev supports #17

@Martin15135215

Description

@Martin15135215

I found it while I tested it here. AnswerDotAI/nbdev#1380

TLDR:

https://github.com/fastai/nbdev/blob/96deb7a03bf2cf79a04e1878f67ce099e434e97f/setup.py#L19-L26

licenses = { 
     'apache2': ('Apache Software License 2.0','OSI Approved :: Apache Software License'), 
     'mit': ('MIT License', 'OSI Approved :: MIT License'), 
     'gpl2': ('GNU General Public License v2', 'OSI Approved :: GNU General Public License v2 (GPLv2)'), 
     'gpl3': ('GNU General Public License v3', 'OSI Approved :: GNU General Public License v3 (GPLv3)'), 
     'agpl3': ('GNU Affero General Public License v3', 'OSI Approved :: GNU Affero General Public License (AGPLv3)'), 
     'bsd3': ('BSD License', 'OSI Approved :: BSD License'), 
 } 

and then

nbdev_new --license gpl3

In the settings.ini, the value for licence was gpl3 however the licence file was still apache2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions