python-ort 0.4.1__tar.gz → 0.4.3__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.4.1 → python_ort-0.4.3}/PKG-INFO +1 -1
- {python_ort-0.4.1 → python_ort-0.4.3}/pyproject.toml +1 -1
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/package_manager_configuration.py +11 -1
- {python_ort-0.4.1 → python_ort-0.4.3}/LICENSE +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/README.md +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/__init__.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/__init__.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/analyzer_configuration.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/curations.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/license_finding_curation.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/license_finding_curation_reason.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/package_configuration.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/path_exclude.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/path_exclude_reason.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/path_include_reason.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/repository_analyzer_configuration.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/vcsmatcher.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/hash.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/hash_algorithm.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/identifier.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/ort_configuration.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/package_curation.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/package_curation_data.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/repository_configuration.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/resolutions.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/source_code_origin.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/vcsinfo.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/vcsinfo_curation_data.py +0 -0
- {python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/vcstype.py +0 -0
{python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/package_manager_configuration.py
RENAMED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
# SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
class PackageManagerConfiguration(BaseModel):
|
|
@@ -24,3 +26,11 @@ class PackageManagerConfiguration(BaseModel):
|
|
|
24
26
|
description="Custom configuration options for the package manager. See the documentation of the respective"
|
|
25
27
|
"class for available options.",
|
|
26
28
|
)
|
|
29
|
+
|
|
30
|
+
@field_validator("options", mode="before")
|
|
31
|
+
@classmethod
|
|
32
|
+
def convert_to_str(cls, value: Any) -> Any:
|
|
33
|
+
if not isinstance(value, dict):
|
|
34
|
+
return value
|
|
35
|
+
for key, item in value.items():
|
|
36
|
+
return {k: str(v).lower() if not isinstance(v, str) else v for k, v in value.items()}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/license_finding_curation_reason.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_ort-0.4.1 → python_ort-0.4.3}/src/ort/models/config/repository_analyzer_configuration.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
|