Skip to content

Commit

Permalink
Remove third party src (nomos)
Browse files Browse the repository at this point in the history
  • Loading branch information
dd-jy committed Feb 20, 2025
1 parent 816af95 commit 17febcb
Show file tree
Hide file tree
Showing 51 changed files with 7 additions and 37,118 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Apply override to all files in the directory
tests/** linguist-vendored
src/fosslight_dependency/third_party/** linguist-vendored
12 changes: 4 additions & 8 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,14 @@ Files: setup.cfg
Copyright: 2021 LG Electronics
License: Apache-2.0

Files: .gitignore
Files: requirements.txt
Copyright: 2021 LG Electronics
License: Apache-2.0
License: LicenseRef-3rd_party_licenses

Files: src/fosslight_dependency/third_party/askalono/*
Copyright: 2018 Amazon.com, Inc. or its affiliates.
Files: .gitignore
Copyright: 2021 LG Electronics
License: Apache-2.0

Files: src/fosslight_dependency/third_party/nomos/*
Copyright: 2006-2009 Hewlett-Packard Development Company, L.P.
License: LicenseRef-3rd_party_licenses

Files: tests/test_gradle/*
Copyright: 2017-2021 Google LLC.
License: Apache-2.0
Expand Down
9 changes: 2 additions & 7 deletions src/fosslight_dependency/_package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@

logger = logging.getLogger(constant.LOGGER_NAME)

# binary url to check license text
_license_scanner_linux = os.path.join('third_party', 'nomos', 'nomossa')
_license_scanner_macos = os.path.join('third_party', 'askalono', 'askalono_macos')
_license_scanner_windows = os.path.join('third_party', 'askalono', 'askalono.exe')

gradle_config = ['runtimeClasspath', 'runtime']
android_config = ['releaseRuntimeClasspath']

ASKALONO_THRESHOLD = 0.7

class PackageManager:
input_package_list_file = []
Expand Down Expand Up @@ -350,7 +345,7 @@ def check_license_name(license_txt, is_filepath=False):
license_content = license_txt

detect_askalono = identify(license_content)
if detect_askalono.score > 0.7:
if detect_askalono.score > ASKALONO_THRESHOLD:
license_name = detect_askalono.name
return license_name

Expand Down
202 changes: 0 additions & 202 deletions src/fosslight_dependency/third_party/askalono/LICENSE

This file was deleted.

10 changes: 0 additions & 10 deletions src/fosslight_dependency/third_party/askalono/NOTICE

This file was deleted.

6 changes: 0 additions & 6 deletions src/fosslight_dependency/third_party/askalono/README.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 17febcb

Please sign in to comment.