scanoss 1.13.0__tar.gz → 1.14.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scanoss-1.13.0/src/scanoss.egg-info → scanoss-1.14.0}/PKG-INFO +2 -1
- {scanoss-1.13.0 → scanoss-1.14.0}/setup.cfg +1 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/__init__.py +1 -1
- scanoss-1.14.0/src/scanoss/data/build_date.txt +1 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scanner.py +5 -4
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/spdxlite.py +5 -4
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/winnowing.py +1 -1
- {scanoss-1.13.0 → scanoss-1.14.0/src/scanoss.egg-info}/PKG-INFO +2 -1
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss.egg-info/requires.txt +1 -0
- scanoss-1.13.0/src/scanoss/data/build_date.txt +0 -1
- {scanoss-1.13.0 → scanoss-1.14.0}/LICENSE +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/PACKAGE.md +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/README.md +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/pyproject.toml +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/options/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/options/annotations_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/options/annotations_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/options/openapiv2_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/protoc_gen_swagger/options/openapiv2_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/common/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/common/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/common/v2/scanoss_common_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/common/v2/scanoss_common_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/components/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/components/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/components/v2/scanoss_components_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/scanning/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/scanning/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/scanning/v2/scanoss_scanning_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/semgrep/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/semgrep/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/vulnerabilities/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/vulnerabilities/v2/__init__.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/cli.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/components.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/csvoutput.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/cyclonedx.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/data/spdx-exceptions.json +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/data/spdx-licenses.json +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/filecount.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scancodedeps.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scanossapi.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scanossbase.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scanossgrpc.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/scantype.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/threadeddependencies.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/threadedscanning.py +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss.egg-info/SOURCES.txt +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss.egg-info/dependency_links.txt +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss.egg-info/entry_points.txt +0 -0
- {scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scanoss
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.14.0
|
|
4
4
|
Summary: Simple Python library to leverage the SCANOSS APIs
|
|
5
5
|
Home-page: https://scanoss.com
|
|
6
6
|
Author: SCANOSS
|
|
@@ -25,6 +25,7 @@ Requires-Dist: protobuf>3.19.1
|
|
|
25
25
|
Requires-Dist: pypac
|
|
26
26
|
Requires-Dist: pyOpenSSL
|
|
27
27
|
Requires-Dist: google-api-core
|
|
28
|
+
Requires-Dist: importlib_resources
|
|
28
29
|
Provides-Extra: fast-winnowing
|
|
29
30
|
Requires-Dist: scanoss_winnowing>=0.5.0; extra == "fast-winnowing"
|
|
30
31
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
date: 20240829161941, utime: 1724948381
|
|
@@ -25,7 +25,7 @@ import json
|
|
|
25
25
|
import os
|
|
26
26
|
import sys
|
|
27
27
|
import datetime
|
|
28
|
-
import
|
|
28
|
+
import importlib_resources
|
|
29
29
|
|
|
30
30
|
from progress.bar import Bar
|
|
31
31
|
from progress.spinner import Spinner
|
|
@@ -270,9 +270,10 @@ class Scanner(ScanossBase):
|
|
|
270
270
|
"""
|
|
271
271
|
data = None
|
|
272
272
|
try:
|
|
273
|
-
f_name =
|
|
274
|
-
with
|
|
275
|
-
|
|
273
|
+
f_name = importlib_resources.files(__name__) / 'data/build_date.txt'
|
|
274
|
+
with importlib_resources.as_file(f_name) as f:
|
|
275
|
+
with open(f, 'r', encoding='utf-8') as file:
|
|
276
|
+
data = file.read().rstrip()
|
|
276
277
|
except Exception as e:
|
|
277
278
|
Scanner.print_stderr(f'Warning: Problem loading build time details: {e}')
|
|
278
279
|
if not data or len(data) == 0:
|
|
@@ -28,7 +28,7 @@ import hashlib
|
|
|
28
28
|
import datetime
|
|
29
29
|
import getpass
|
|
30
30
|
import re
|
|
31
|
-
import
|
|
31
|
+
import importlib_resources
|
|
32
32
|
|
|
33
33
|
from . import __version__
|
|
34
34
|
|
|
@@ -300,9 +300,10 @@ class SpdxLite:
|
|
|
300
300
|
:return: True if successful, False otherwise
|
|
301
301
|
"""
|
|
302
302
|
try:
|
|
303
|
-
f_name =
|
|
304
|
-
with
|
|
305
|
-
|
|
303
|
+
f_name = importlib_resources.files(__name__) / filename
|
|
304
|
+
with importlib_resources.as_file(f_name) as f:
|
|
305
|
+
with open(f, 'r', encoding='utf-8') as file:
|
|
306
|
+
data = json.load(file)
|
|
306
307
|
except Exception as e:
|
|
307
308
|
self.print_stderr(f'ERROR: Problem parsing SPDX license input JSON: {e}')
|
|
308
309
|
return False
|
|
@@ -307,7 +307,7 @@ class Winnowing(ScanossBase):
|
|
|
307
307
|
return ''
|
|
308
308
|
# Print file line
|
|
309
309
|
content_length = len(contents)
|
|
310
|
-
wfp_filename = file
|
|
310
|
+
wfp_filename = repr(file).strip("'") # return a utf-8 compatible version of the filename
|
|
311
311
|
if self.obfuscate: # hide the real size of the file and its name, but keep the suffix
|
|
312
312
|
wfp_filename = f'{self.ob_count}{pathlib.Path(file).suffix}'
|
|
313
313
|
self.ob_count = self.ob_count + 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: scanoss
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.14.0
|
|
4
4
|
Summary: Simple Python library to leverage the SCANOSS APIs
|
|
5
5
|
Home-page: https://scanoss.com
|
|
6
6
|
Author: SCANOSS
|
|
@@ -25,6 +25,7 @@ Requires-Dist: protobuf>3.19.1
|
|
|
25
25
|
Requires-Dist: pypac
|
|
26
26
|
Requires-Dist: pyOpenSSL
|
|
27
27
|
Requires-Dist: google-api-core
|
|
28
|
+
Requires-Dist: importlib_resources
|
|
28
29
|
Provides-Extra: fast-winnowing
|
|
29
30
|
Requires-Dist: scanoss_winnowing>=0.5.0; extra == "fast-winnowing"
|
|
30
31
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
date: 20240605132032, utime: 1717593632
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/components/v2/scanoss_components_pb2_grpc.py
RENAMED
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py
RENAMED
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py
RENAMED
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scanoss-1.13.0 → scanoss-1.14.0}/src/scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|