-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated model after licensing changes in spec
Signed-off-by: Holger Frydrych <[email protected]>
- Loading branch information
1 parent
9364581
commit e866f96
Showing
21 changed files
with
1,956 additions
and
1,920 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/spdx_tools/spdx3/new_model/expanded_licensing/custom_license.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# This file was auto-generated by dev/gen_python_model_from_spec.py | ||
# Do not manually edit! | ||
# flake8: noqa | ||
|
||
from beartype.typing import Optional | ||
|
||
from spdx_tools.common.typing.dataclass_with_properties import dataclass_with_properties | ||
from spdx_tools.common.typing.type_checks import check_types_and_set_values | ||
|
||
from ..expanded_licensing.license import License | ||
|
||
|
||
@dataclass_with_properties | ||
class CustomLicense(License): | ||
""" | ||
A CustomLicense represents a License that is not listed on the SPDX License List at https://spdx.org/licenses, and | ||
is therefore defined by an SPDX data creator. | ||
""" | ||
|
||
def __init__( | ||
self, | ||
license_text: str, | ||
is_osi_approved: Optional[bool] = None, | ||
is_fsf_libre: Optional[bool] = None, | ||
standard_license_header: Optional[str] = None, | ||
standard_license_template: Optional[str] = None, | ||
is_deprecated_license_id: Optional[bool] = None, | ||
obsoleted_by: Optional[str] = None, | ||
): | ||
check_types_and_set_values(self, locals()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# This file was auto-generated by dev/gen_python_model_from_spec.py | ||
# Do not manually edit! | ||
# flake8: noqa | ||
|
||
from .any_license_info import AnyLicenseInfo | ||
from .license_expression import LicenseExpression | ||
from .simple_licensing_text import SimpleLicensingText |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters