From 13361549aa8b10bcadfad05b539aee239247caf1 Mon Sep 17 00:00:00 2001 From: Joshua Whitley Date: Sat, 28 Jul 2018 21:36:46 -0500 Subject: [PATCH 1/2] Adding MIT license templates. --- ament_copyright/ament_copyright/licenses.py | 1 + .../template/mit_contributing.txt | 3 +++ .../ament_copyright/template/mit_header.txt | 20 +++++++++++++++++++ .../ament_copyright/template/mit_license.txt | 19 ++++++++++++++++++ ament_copyright/setup.py | 1 + 5 files changed, 44 insertions(+) create mode 100644 ament_copyright/ament_copyright/template/mit_contributing.txt create mode 100644 ament_copyright/ament_copyright/template/mit_header.txt create mode 100644 ament_copyright/ament_copyright/template/mit_license.txt diff --git a/ament_copyright/ament_copyright/licenses.py b/ament_copyright/ament_copyright/licenses.py index 697dd111..05bd5488 100644 --- a/ament_copyright/ament_copyright/licenses.py +++ b/ament_copyright/ament_copyright/licenses.py @@ -39,3 +39,4 @@ def read_license_data(path, name, prefix): apache2 = read_license_data(TEMPLATE_DIRECTORY, 'Apache License, Version 2.0', 'apache2') bsd2 = read_license_data(TEMPLATE_DIRECTORY, 'BSD License 2.0', 'bsd2') +mit = read_license_data(TEMPLATE_DIRECTORY, 'MIT License', 'mit') diff --git a/ament_copyright/ament_copyright/template/mit_contributing.txt b/ament_copyright/ament_copyright/template/mit_contributing.txt new file mode 100644 index 00000000..9eee72fe --- /dev/null +++ b/ament_copyright/ament_copyright/template/mit_contributing.txt @@ -0,0 +1,3 @@ +Any contribution that you make to this repository will +be under the MIT license, as dictated by that +[license](https://opensource.org/licenses/MIT). diff --git a/ament_copyright/ament_copyright/template/mit_header.txt b/ament_copyright/ament_copyright/template/mit_header.txt new file mode 100644 index 00000000..228f3beb --- /dev/null +++ b/ament_copyright/ament_copyright/template/mit_header.txt @@ -0,0 +1,20 @@ +{copyright} +All rights reserved. + +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. diff --git a/ament_copyright/ament_copyright/template/mit_license.txt b/ament_copyright/ament_copyright/template/mit_license.txt new file mode 100644 index 00000000..14a7e25e --- /dev/null +++ b/ament_copyright/ament_copyright/template/mit_license.txt @@ -0,0 +1,19 @@ +All rights reserved. + +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. diff --git a/ament_copyright/setup.py b/ament_copyright/setup.py index d50a007d..33550d28 100644 --- a/ament_copyright/setup.py +++ b/ament_copyright/setup.py @@ -35,6 +35,7 @@ 'ament_copyright.license': [ 'apache2 = ament_copyright.licenses:apache2', 'bsd2 = ament_copyright.licenses:bsd2', + 'mit = ament_copyright.licenses:mit', ], 'console_scripts': [ 'ament_copyright = ament_copyright.main:main', From f56bef27c7ee3e2676a4a13d817861a630ef0fe2 Mon Sep 17 00:00:00 2001 From: Joshua Whitley Date: Sat, 28 Jul 2018 21:47:10 -0500 Subject: [PATCH 2/2] Ommitting 'All Rights Reserved' not in actual license. --- ament_copyright/ament_copyright/template/mit_header.txt | 1 - ament_copyright/ament_copyright/template/mit_license.txt | 2 -- 2 files changed, 3 deletions(-) diff --git a/ament_copyright/ament_copyright/template/mit_header.txt b/ament_copyright/ament_copyright/template/mit_header.txt index 228f3beb..88abfb0f 100644 --- a/ament_copyright/ament_copyright/template/mit_header.txt +++ b/ament_copyright/ament_copyright/template/mit_header.txt @@ -1,5 +1,4 @@ {copyright} -All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/ament_copyright/ament_copyright/template/mit_license.txt b/ament_copyright/ament_copyright/template/mit_license.txt index 14a7e25e..30e8e2ec 100644 --- a/ament_copyright/ament_copyright/template/mit_license.txt +++ b/ament_copyright/ament_copyright/template/mit_license.txt @@ -1,5 +1,3 @@ -All rights reserved. - 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