From 752ed46ee7358ad4128e0a4f2cffd4cb5928bfea Mon Sep 17 00:00:00 2001 From: Thomas Druez Date: Mon, 23 Nov 2020 18:54:09 +0400 Subject: [PATCH] Add a copy of scan.NOTICE in the app directory #9 This file needs to be available in the "installed" app directory Signed-off-by: Thomas Druez --- MANIFEST.in | 3 ++- scancodeio/__init__.py | 3 +-- scancodeio/scan.NOTICE | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 scancodeio/scan.NOTICE diff --git a/MANIFEST.in b/MANIFEST.in index bcc1abcab..ce2a55e9e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,10 @@ -include apache-2.0.LICENSE +include LICENSE include NOTICE include manage.py include MANIFEST.in include Makefile include *.rst +include scan.NOTICE include setup.py include setup.cfg diff --git a/scancodeio/__init__.py b/scancodeio/__init__.py index 4f2eaacd3..464010dbd 100644 --- a/scancodeio/__init__.py +++ b/scancodeio/__init__.py @@ -32,8 +32,7 @@ __version__ = "1.0.4" -ROOT_DIR = Path(__file__).parent.parent.absolute() -SCAN_NOTICE = (ROOT_DIR / "scan.NOTICE").read_text() +SCAN_NOTICE = Path(__file__).resolve().parent.joinpath("scan.NOTICE").read_text() def get_workspace_location(): diff --git a/scancodeio/scan.NOTICE b/scancodeio/scan.NOTICE new file mode 100644 index 000000000..0e9e81805 --- /dev/null +++ b/scancodeio/scan.NOTICE @@ -0,0 +1,8 @@ +Generated with ScanCode.io and provided on an "AS IS" BASIS, WITHOUT WARRANTIES +OR CONDITIONS OF ANY KIND, either express or implied. +No content created from ScanCode.io should be considered or used as legal advice. +Consult an Attorney for any legal advice. +ScanCode.io is a free software code scanning tool from nexB Inc. and others +licensed under the Apache License version 2.0. +ScanCode is a trademark of nexB Inc. +Visit https://github.com/nexB/scancode.io for support and download.