python-ort 0.1.3__py3-none-any.whl → 0.2.0__py3-none-any.whl

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.
@@ -24,9 +24,9 @@ class OrtAnalyzerConfigurations(BaseModel):
24
24
  model_config = ConfigDict(
25
25
  extra="forbid",
26
26
  )
27
- allow_dynamic_versions: bool | None = Field(None, alias="allowDynamicVersions")
28
- enabled_package_managers: list[OrtPackageManagers] | None = Field(None, alias="enabledPackageManagers")
29
- disabled_package_managers: list[OrtPackageManagers] | None = Field(None, alias="disabledPackageManagers")
30
- package_managers: OrtPackageManagerConfigurations | None = Field(None, alias="packageManagers")
31
- sw360_configuration: Sw360Configuration | None = Field(None, alias="sw360Configuration")
32
- skip_excluded: bool | None = Field(None, alias="skipExcluded")
27
+ allow_dynamic_versions: bool | None = Field(None)
28
+ enabled_package_managers: list[OrtPackageManagers] | None = Field(None)
29
+ disabled_package_managers: list[OrtPackageManagers] | None = Field(None)
30
+ package_managers: OrtPackageManagerConfigurations | None = Field(None)
31
+ sw360_configuration: Sw360Configuration | None = Field(None)
32
+ skip_excluded: bool | None = Field(None)
@@ -9,6 +9,7 @@ from pydantic import BaseModel, Field, RootModel
9
9
 
10
10
  from .analyzer_configurations import OrtAnalyzerConfigurations
11
11
  from .package_managers import OrtPackageManagerConfigurations, PackageManagerConfigs
12
+ from .source_code_origin import SourceCodeOrigin
12
13
 
13
14
 
14
15
  class OrtRepositoryConfigurationLicenseChoicesPackageLicenseChoiceLicenseChoice(BaseModel):
@@ -310,18 +311,20 @@ CurationsSchemaCurationsSchemaItemCurationsSourceArtifact = CurationsSchemaCurat
310
311
 
311
312
  class CurationsSchemaCurationsSchemaItemCurations(BaseModel):
312
313
  comment: str | None = None
314
+ purl: str | None = None
315
+ cpe: str | None = None
313
316
  authors: list[str] | None = None
314
317
  concluded_license: str | None = None
315
- cpe: str | None = None
316
- declared_license_mapping: dict[str, Any] | None = None
317
318
  description: str | None = None
318
319
  homepage_url: str | None = None
319
- purl: str | None = None
320
320
  binary_artifact: CurationsSchemaCurationsSchemaItemCurationsBinaryArtifact | None = None
321
321
  source_artifact: CurationsSchemaCurationsSchemaItemCurationsSourceArtifact | None = None
322
322
  vcs: VcsMatcher | None = None
323
323
  is_metadata_only: bool | None = None
324
324
  is_modified: bool | None = None
325
+ declared_license_mapping: dict[str, Any] = Field(default_factory=dict)
326
+ source_code_origins: list[SourceCodeOrigin] | None = None
327
+ labels: dict[str, str] = Field(default_factory=dict)
325
328
 
326
329
 
327
330
  class CurationsSchemaCurationsSchemaItem(BaseModel):
@@ -372,23 +375,32 @@ class OrtRepositoryConfiguration(BaseModel):
372
375
  Each field corresponds to a specific aspect of the repository's configuration.
373
376
  """
374
377
 
375
- analyzer: OrtAnalyzerConfigurations | None = None
378
+ analyzer: OrtAnalyzerConfigurations | None = Field(
379
+ None,
380
+ description="Define Analyzer specific options",
381
+ )
376
382
  includes: OrtRepositoryConfigurationIncludes | None = Field(
377
- None, description="Defines which parts of a repository should be included."
383
+ None,
384
+ description="Defines which parts of a repository should be included.",
378
385
  )
379
386
  excludes: OrtRepositoryConfigurationExcludes | None = Field(
380
- None, description="Defines which parts of a repository should be excluded."
387
+ None,
388
+ description="Defines which parts of a repository should be excluded.",
381
389
  )
382
390
  resolutions: ResolutionsSchema | None = None
383
391
  curations: OrtRepositoryConfigurationCurations | OrtRepositoryConfigurationCurations1 | None = Field(
384
- None, description="Curations for artifacts in a repository."
392
+ None,
393
+ description="Curations for artifacts in a repository.",
385
394
  )
386
395
  package_configurations: list[OrtPackageManagerConfigurations] | None = Field(
387
- None, description="A configuration for a specific package and provenance."
396
+ None,
397
+ description="A configuration for a specific package and provenance.",
388
398
  )
389
399
  license_choices: OrtRepositoryConfigurationLicenseChoices | None = Field(
390
- None, description="A configuration to select a license from a multi-licensed package."
400
+ None,
401
+ description="A configuration to select a license from a multi-licensed package.",
391
402
  )
392
403
  snippet_choices: list[OrtRepositoryConfigurationSnippetChoice] | None = Field(
393
- None, description="A configuration to select a snippet from a package with multiple snippet findings."
404
+ None,
405
+ description="A configuration to select a snippet from a package with multiple snippet findings.",
394
406
  )
@@ -0,0 +1,9 @@
1
+ # SPDX-FileCopyrightText: 2025 Helio Chissini de Castro <heliocastro@gmail.com>
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ from enum import Enum
5
+
6
+
7
+ class SourceCodeOrigin(Enum):
8
+ vcs = "VCS"
9
+ artifact = "ARTIFACT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-ort
3
- Version: 0.1.3
3
+ Version: 0.2.0
4
4
  Summary: A Python Ort model serialization library
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
14
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
15
- Requires-Dist: pydantic>=2.11.10
15
+ Requires-Dist: pydantic>=2.12.4
16
16
  Requires-Dist: pyyaml>=6.0.3
17
17
  Requires-Python: >=3.10
18
18
  Description-Content-Type: text/markdown
@@ -0,0 +1,12 @@
1
+ ort/__init__.py,sha256=zcprYB56Hw3PI0JFvvThPkb1a9Ymdeg_2GvhPI3LbRM,659
2
+ ort/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ ort/models/analyzer_configurations.py,sha256=ImPwLffbNiQ04xeD9EgHBwIvs4tGBbqEwK_TXtceil8,1154
4
+ ort/models/ort_configuration.py,sha256=eleVGknw7grLOTaPOZbI2_HrD9KoEhRFEGyqg25mVws,10975
5
+ ort/models/package_managers.py,sha256=qyShJ-IOQZFWOPmvylj413vVNMjBZ0xPlXtHU8V68Uk,1364
6
+ ort/models/repository_configuration.py,sha256=qqb_HA-rKYQmnZdMUlN_sxbmSbefxFpdRGheNXkdXjQ,13581
7
+ ort/models/resolutions.py,sha256=3OuCC9yYMu5Ovt2UD04ms9zJuWBXtBDjof-8fRzErlw,3423
8
+ ort/models/source_code_origin.py,sha256=gyEQaR4AjrWDDpDwEO8RHAHyFmnZK3plZzbvWf5o9do,208
9
+ python_ort-0.2.0.dist-info/licenses/LICENSE,sha256=koFhbHMglt1BNVuMKdBBlrQcgQsWLgo4pZW6cCtyGvA,1081
10
+ python_ort-0.2.0.dist-info/WHEEL,sha256=5w2T7AS2mz1-rW9CNagNYWRCaB0iQqBMYLwKdlgiR4Q,78
11
+ python_ort-0.2.0.dist-info/METADATA,sha256=Oo1TdfoKl55sw0a4cdD30v8V6fbesrd6cPwNBeheBA0,829
12
+ python_ort-0.2.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.8.24
2
+ Generator: uv 0.9.7
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,11 +0,0 @@
1
- ort/__init__.py,sha256=zcprYB56Hw3PI0JFvvThPkb1a9Ymdeg_2GvhPI3LbRM,659
2
- ort/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- ort/models/analyzer_configurations.py,sha256=r4Lo2z60AfxBqrtl4vwOKpFxIYfSIw6E-EuzqOm1HHw,1324
4
- ort/models/ort_configuration.py,sha256=eleVGknw7grLOTaPOZbI2_HrD9KoEhRFEGyqg25mVws,10975
5
- ort/models/package_managers.py,sha256=qyShJ-IOQZFWOPmvylj413vVNMjBZ0xPlXtHU8V68Uk,1364
6
- ort/models/repository_configuration.py,sha256=xEcXzY6BALsg5ig_YdgJ_h4v_Btjt6x6nRgpI7GpDoI,13265
7
- ort/models/resolutions.py,sha256=3OuCC9yYMu5Ovt2UD04ms9zJuWBXtBDjof-8fRzErlw,3423
8
- python_ort-0.1.3.dist-info/licenses/LICENSE,sha256=koFhbHMglt1BNVuMKdBBlrQcgQsWLgo4pZW6cCtyGvA,1081
9
- python_ort-0.1.3.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
10
- python_ort-0.1.3.dist-info/METADATA,sha256=Yin-cuJu6rv5IYHR8ToHdz02kd6HAnplWQ4O_pUxSbw,830
11
- python_ort-0.1.3.dist-info/RECORD,,