python-ort 0.8.13__tar.gz → 0.8.16__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.
- {python_ort-0.8.13 → python_ort-0.8.16}/PKG-INFO +2 -2
- {python_ort-0.8.13 → python_ort-0.8.16}/pyproject.toml +6 -6
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/advisor_details.py +10 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/advisor_result.py +10 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/scan_storage_configuration.py +2 -2
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/identifier.py +5 -1
- {python_ort-0.8.13 → python_ort-0.8.16}/LICENSE +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/README.md +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/advisor_capability.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/advisor_run.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/advisor_summary.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/analyzer_result.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/analyzer_run.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/base_run.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/advisor_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/analyzer_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/curations.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/excludes.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/file_archiver_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/file_list_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/file_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/http_file_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/includes.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/issue_resolution.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/issue_resolution_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/license_choices.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/license_finding_curation.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/license_finding_curation_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/local_file_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/package_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/package_manager_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/path_exclude.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/path_exclude_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/path_include.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/path_include_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/postgres_connection.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/provenance_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/repository_analyzer_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/repository_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/resolutions.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/rule_violation_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/rule_violation_resolution.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/s3_file_storage_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/scanner_configuration.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/scope_exclude.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/scope_exclude_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/snippet_choice.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/snippet_choice_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/snippet_choices.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/snippet_provenance.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/vcsmatcher.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/vulnerability_resolution.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/vulnerability_resolution_reason.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/copyright_finding.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/defect.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/dependency_graph.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/dependency_graph_edge.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/dependency_graph_node.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/dependency_reference.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/evaluator_run.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/file_list.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/hash.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/issue.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/license_finding.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/license_source.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/ort_result.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/package.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/package_curation.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/package_curation_data.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/package_linkage.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/package_reference.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/project.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/provenance.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/provenance_resolution_result.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/remote_artifact.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/repository.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/resolutions.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/root_dependency_index.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/rule_violation.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/scan_result.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/scan_summary.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/scanner_details.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/scanner_run.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/scope.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/severity.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/snippet.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/snippet_finding.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/source_code_origin.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/text_location.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vcsinfo.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vcsinfo_curation_data.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vcstype.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/cvss2_rating.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/cvss3_rating.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/cvss4_rating.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/vulnerability.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/vulnerability_reference.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/severity.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/types/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/types/purl_type.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/environment.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/processed_declared_license.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/spdx/__init__.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/spdx/spdx_expression.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/spdx/spdx_license_choice.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/validated_enum.py +0 -0
- {python_ort-0.8.13 → python_ort-0.8.16}/src/ort/utils/yaml_loader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-ort
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.16
|
|
4
4
|
Summary: A Python Ort model serialization library
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
15
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
16
16
|
Requires-Dist: license-expression>=30.4.4
|
|
17
17
|
Requires-Dist: packageurl-python>=0.17.6
|
|
18
|
-
Requires-Dist: pydantic>=2.13.
|
|
18
|
+
Requires-Dist: pydantic>=2.13.4
|
|
19
19
|
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown
|
|
21
21
|
|
|
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-ort"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.16"
|
|
8
8
|
description = "A Python Ort model serialization library"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -13,7 +13,7 @@ requires-python = ">=3.10"
|
|
|
13
13
|
dependencies = [
|
|
14
14
|
"license-expression>=30.4.4",
|
|
15
15
|
"packageurl-python>=0.17.6",
|
|
16
|
-
"pydantic>=2.13.
|
|
16
|
+
"pydantic>=2.13.4",
|
|
17
17
|
]
|
|
18
18
|
classifiers = [
|
|
19
19
|
"Development Status :: 4 - Beta",
|
|
@@ -36,12 +36,12 @@ module-root = "src"
|
|
|
36
36
|
|
|
37
37
|
[dependency-groups]
|
|
38
38
|
dev = [
|
|
39
|
-
"datamodel-code-generator[http]>=0.
|
|
39
|
+
"datamodel-code-generator[http]>=0.57.0",
|
|
40
40
|
"pytest>=9.0.3",
|
|
41
41
|
"rich>=15.0.0",
|
|
42
|
-
"ruff>=0.15.
|
|
43
|
-
"ty>=0.0.
|
|
44
|
-
"types-pyyaml>=6.0.12.
|
|
42
|
+
"ruff>=0.15.12",
|
|
43
|
+
"ty>=0.0.35",
|
|
44
|
+
"types-pyyaml>=6.0.12.20260510",
|
|
45
45
|
]
|
|
46
46
|
|
|
47
47
|
[tool.pytest.ini_options]
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
from pydantic import BaseModel, ConfigDict, Field
|
|
6
6
|
|
|
7
|
+
from ort.models import AdvisorCapability
|
|
8
|
+
|
|
7
9
|
|
|
8
10
|
class AdvisorDetails(BaseModel):
|
|
9
11
|
"""
|
|
@@ -16,3 +18,11 @@ class AdvisorDetails(BaseModel):
|
|
|
16
18
|
)
|
|
17
19
|
|
|
18
20
|
name: str = Field(description="The name of the used advisor.")
|
|
21
|
+
capabilities: set[AdvisorCapability] | None = Field(
|
|
22
|
+
default=None,
|
|
23
|
+
repr=False,
|
|
24
|
+
exclude=True,
|
|
25
|
+
deprecated=True,
|
|
26
|
+
description="The capabilities of the used advisor. This property indicates, which kind of findings"
|
|
27
|
+
"are retrieved by the advisor.",
|
|
28
|
+
)
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
4
|
from pydantic import BaseModel, ConfigDict, Field
|
|
5
|
+
from typing_extensions import deprecated
|
|
5
6
|
|
|
6
7
|
from ort.models.vulnerabilities import Vulnerability
|
|
7
8
|
|
|
8
9
|
from .advisor_details import AdvisorDetails
|
|
9
10
|
from .advisor_summary import AdvisorSummary
|
|
11
|
+
from .defect import Defect
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
class AdvisorResult(BaseModel):
|
|
@@ -34,3 +36,11 @@ class AdvisorResult(BaseModel):
|
|
|
34
36
|
default_factory=list,
|
|
35
37
|
description="The vulnerabilities.",
|
|
36
38
|
)
|
|
39
|
+
|
|
40
|
+
defects: list[Defect] = Field(
|
|
41
|
+
default_factory=list,
|
|
42
|
+
repr=False,
|
|
43
|
+
exclude=True,
|
|
44
|
+
deprecated=deprecated("Deprecated field."),
|
|
45
|
+
description="The defects.",
|
|
46
|
+
)
|
|
@@ -64,7 +64,7 @@ class FileBasedStorageConfiguration(ScanStorageConfiguration):
|
|
|
64
64
|
)
|
|
65
65
|
ort_type: StorageType = Field(
|
|
66
66
|
alias="type",
|
|
67
|
-
default=
|
|
67
|
+
default=StorageType.PROVENANCE_BASED,
|
|
68
68
|
description=("The way that scan results are stored, defaults to StorageType.PROVENANCE_BASED."),
|
|
69
69
|
)
|
|
70
70
|
|
|
@@ -79,6 +79,6 @@ class PostgresStorageConfiguration(ScanStorageConfiguration):
|
|
|
79
79
|
)
|
|
80
80
|
ort_type: StorageType = Field(
|
|
81
81
|
alias="type",
|
|
82
|
-
default=
|
|
82
|
+
default=StorageType.PROVENANCE_BASED,
|
|
83
83
|
description=("The way that scan results are stored, defaults to StorageType.PROVENANCE_BASED."),
|
|
84
84
|
)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
from typing import Any
|
|
6
6
|
|
|
7
|
-
from pydantic import BaseModel, ConfigDict, Field, model_validator
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field, model_serializer, model_validator
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class Identifier(BaseModel):
|
|
@@ -65,3 +65,7 @@ class Identifier(BaseModel):
|
|
|
65
65
|
|
|
66
66
|
def __str__(self) -> str:
|
|
67
67
|
return ":".join([self.orttype, self.namespace, self.name, self.version])
|
|
68
|
+
|
|
69
|
+
@model_serializer(mode="plain")
|
|
70
|
+
def serialize(self) -> str:
|
|
71
|
+
return str(self)
|
|
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
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/file_archiver_configuration.py
RENAMED
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/file_list_storage_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/http_file_storage_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/license_finding_curation_reason.py
RENAMED
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/local_file_storage_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/package_manager_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/provenance_storage_configuration.py
RENAMED
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/repository_analyzer_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/s3_file_storage_configuration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/snippet/snippet_choice_reason.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/config/vulnerability_resolution_reason.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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.8.13 → python_ort-0.8.16}/src/ort/models/vulnerabilities/vulnerability_reference.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
|