Skip to content

Commit

Permalink
global: add MIT license to all generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaraBi authored and slint committed May 24, 2018
1 parent e916a7d commit 8ee367f
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 3 deletions.
2 changes: 2 additions & 0 deletions {{cookiecutter.project_shortname}}/AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% include 'misc/header.rst' %}

Authors
=======

Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_shortname}}/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% include 'misc/header.rst' %}

Contributing
============

Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_shortname}}/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% include 'misc/header.rst' %}

Installation
============

Expand Down
21 changes: 20 additions & 1 deletion {{cookiecutter.project_shortname}}/LICENSE
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
TODO: Add a license.
MIT License

Copyright (C) {{ cookiecutter.year }} {{ cookiecutter.copyright_holder }}.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions {{cookiecutter.project_shortname}}/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% include 'misc/header.rst' %}

{{ '=' * (cookiecutter.project_name|length + 2) }}
{{ cookiecutter.project_name }}
{{ '=' * (cookiecutter.project_name|length + 2) }}
Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_shortname}}/misc/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
#
# Copyright (C) {{ cookiecutter.year }} {{ cookiecutter.copyright_holder }}.
#
# {{ cookiecutter.project_name }} is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
5 changes: 5 additions & 0 deletions {{cookiecutter.project_shortname}}/misc/header.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
..
Copyright (C) {{ cookiecutter.year }} {{ cookiecutter.copyright_holder }}.
{{ cookiecutter.project_name }} is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
1 change: 1 addition & 0 deletions {{cookiecutter.project_shortname}}/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include 'misc/header.py' %}
[aliases]
test = pytest

Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_shortname}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
description=__doc__,
long_description=readme,
keywords='{{ cookiecutter.project_shortname }} Invenio TODO',
#TODO license='',
license='MIT',
author='{{ cookiecutter.author_name }}',
author_email='{{ cookiecutter.author_email }}',
url='https://github.com/{{ cookiecutter.github_repo }}',
Expand Down Expand Up @@ -105,7 +105,7 @@
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
#TODO 'License :: ',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
Expand Down

0 comments on commit 8ee367f

Please sign in to comment.