Skip to content

Commit 4d8c2e5

Browse files
committed
fix(model): Adjust config licence_choices attribute
Signed-off-by: Helio Chissini de Castro <helio.chissini.de.castro@cariad.technology>
1 parent 0065615 commit 4d8c2e5

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "uv_build"
44

55
[project]
66
name = "python-ort"
7-
version = "0.8.2"
7+
version = "0.8.3"
88
description = "A Python Ort model serialization library"
99
readme = "README.md"
1010
license = "MIT"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ class PackageLicenseChoice(BaseModel):
1818
...,
1919
description="Package ID",
2020
)
21-
license_choice: list[SpdxLicenseChoice] = Field(
21+
license_choices: list[SpdxLicenseChoice] = Field(
2222
default_factory=list,
2323
description="List of spdx license",
2424
)
2525

2626

27-
class LicenseChoice(BaseModel):
27+
class LicenseChoices(BaseModel):
2828
"""
2929
[SpdxLicenseChoice]s that are applied to all packages in the repository. As the [SpdxLicenseChoice] is applied to
3030
each package that offers this license as a choice, [SpdxLicenseChoice.given] can not be null. This helps only

src/ort/models/config/repository_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .curations import Curations
88
from .excludes import Excludes
99
from .includes import Includes
10-
from .license_choice import LicenseChoice
10+
from .license_choices import LicenseChoices
1111
from .package_configuration import PackageConfiguration
1212
from .repository_analyzer_configuration import RepositoryAnalyzerConfiguration
1313
from .resolutions import Resolutions
@@ -56,7 +56,7 @@ class RepositoryConfiguration(BaseModel):
5656
default_factory=list,
5757
description="A configuration for a specific package and provenance.",
5858
)
59-
license_choices: LicenseChoice | None = Field(
59+
license_choices: LicenseChoices | None = Field(
6060
None,
6161
description="A configuration to select a license from a multi-licensed package.",
6262
)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)