Skip to content

Commit

Permalink
Add a copy of scan.NOTICE in the app directory #9
Browse files Browse the repository at this point in the history
This file needs to be available in the "installed" app directory

Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Nov 23, 2020
1 parent e772ba1 commit 752ed46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions scancodeio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
8 changes: 8 additions & 0 deletions scancodeio/scan.NOTICE
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 752ed46

Please sign in to comment.