We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0facd95 commit e610897Copy full SHA for e610897
1 file changed
src/somesy/pyproject/models.py
@@ -122,8 +122,8 @@ class License(BaseModel):
122
123
model_config = dict(validate_assignment=True)
124
125
- file: Optional[Path]
126
- text: Optional[LicenseEnum]
+ file: Optional[Path] = None
+ text: Optional[LicenseEnum] = None
127
128
@model_validator(mode="before")
129
@classmethod
@@ -161,7 +161,7 @@ class SetuptoolsConfig(BaseModel):
161
]
162
description: str
163
readme: Optional[Union[Path, List[Path], File]] = None
164
- license: Optional[Union[LicenseEnum, List[LicenseEnum]]] = Field(
+ license: Optional[License] = Field(
165
None, description="An SPDX license identifier."
166
)
167
authors: Optional[List[STPerson]] = None
0 commit comments