From 96a2f440acaf94a3f5aa4a635afef6eb115ff242 Mon Sep 17 00:00:00 2001
From: EvaBardou <bardou@teklia.com>
Date: Fri, 15 Dec 2023 11:59:30 +0100
Subject: [PATCH] Add MIT license

---
 LICENSE     | 21 +++++++++++++++++++++
 MANIFEST.in |  1 +
 README.md   |  2 ++
 setup.py    |  2 ++
 4 files changed, 26 insertions(+)
 create mode 100644 LICENSE

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 00000000..66632cb5
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Teklia
+
+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/MANIFEST.in b/MANIFEST.in
index f00cb2ca..c29052a8 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,4 @@
+include LICENSE
 include requirements.txt
 include doc-requirements.txt
 include mlflow-requirements.txt
diff --git a/README.md b/README.md
index 5d50b36c..cc24d3a2 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,8 @@
 
 For more details about this package, make sure to see the documentation available at <https://atr.pages.teklia.com/dan/>.
 
+This is an open-source project, licensed using [the MIT license](https://opensource.org/license/mit/).
+
 ## Development
 
 For development and tests purpose it may be useful to install the project as a editable package with pip.
diff --git a/setup.py b/setup.py
index e6b55285..7ff5de4f 100755
--- a/setup.py
+++ b/setup.py
@@ -54,4 +54,6 @@ setup(
         "docs": parse_requirements("doc-requirements.txt"),
         "mlflow": parse_requirements("mlflow-requirements.txt"),
     },
+    license="MIT",
+    license_files=("LICENSE",),
 )
-- 
GitLab