From a3e2f931e0fd58e7ea773de5a0af72ba5271975e Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Mon, 9 Aug 2021 17:36:27 -0500 Subject: [PATCH 1/2] [packaging] Include license in PyPi packages The MIT license requires that a copy of the license is distributed with the software. Add the license to the template and also add it to the manifest file. Fixes: azure/azure-sdk-for-python#20183 Signed-off-by: Major Hayden --- .../packaging_tools/templates/LICENSE.txt | 21 +++++++++++++++++++ .../packaging_tools/templates/MANIFEST.in | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt diff --git a/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt b/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt new file mode 100644 index 000000000000..dc1cf39d1359 --- /dev/null +++ b/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Microsoft + +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/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in b/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in index 986ca26c2f51..b67a47a42802 100644 --- a/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in +++ b/tools/azure-sdk-tools/packaging_tools/templates/MANIFEST.in @@ -3,4 +3,4 @@ include *.md {%- for init_name in init_names %} include {{ init_name }} {%- endfor %} - +include LICENSE.txt From 3f4d7668213f36da22ffe9a17c19082def32df3f Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Thu, 14 Oct 2021 16:24:50 -0700 Subject: [PATCH 2/2] Update tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com> --- tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt b/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt index dc1cf39d1359..2d3163745319 100644 --- a/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt +++ b/tools/azure-sdk-tools/packaging_tools/templates/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal