models
Pyproject models.
STPerson ¶
Bases: BaseModel
Person model for PEP 621 [project] metadata.
Source code in src/somesy/pyproject/models.py
50 51 52 53 54 55 56 57 58 59 60 61 | |
__str__ ¶
__str__()
Return string representation of STPerson.
Source code in src/somesy/pyproject/models.py
56 57 58 59 60 61 | |
License ¶
Bases: BaseModel
License model for PEP 621 [project] metadata.
Source code in src/somesy/pyproject/models.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
validate_xor
classmethod
¶
validate_xor(values)
Validate that only one of file or text is set.
Source code in src/somesy/pyproject/models.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
PoetryConfig ¶
Bases: BaseModel
Poetry configuration model.
Source code in src/somesy/pyproject/models.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 | |
validate_required_unless_dynamic ¶
validate_required_unless_dynamic()
Validate that version and description are present unless listed in dynamic.
Source code in src/somesy/pyproject/models.py
119 120 121 122 | |
validate_version
classmethod
¶
validate_version(v)
Validate version using PEP 440.
Source code in src/somesy/pyproject/models.py
155 156 157 158 159 | |
validate_email_format
classmethod
¶
validate_email_format(v)
Validate person format, raise on invalid emails and drop duplicate persons.
Source code in src/somesy/pyproject/models.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | |
validate_readme
classmethod
¶
validate_readme(v)
Validate readme file(s) by checking whether files exist.
Source code in src/somesy/pyproject/models.py
183 184 185 186 187 188 189 190 191 192 193 | |
ContentTypeEnum ¶
Bases: Enum
Content type enum for the PEP 621 readme file field.
Source code in src/somesy/pyproject/models.py
196 197 198 199 200 201 | |
File ¶
Bases: BaseModel
File model for PEP 621 [project] metadata.
Source code in src/somesy/pyproject/models.py
204 205 206 207 208 | |
URLs ¶
Bases: BaseModel
URLs model for PEP 621 [project] metadata.
Source code in src/somesy/pyproject/models.py
211 212 213 214 215 216 217 | |
Pep621Config ¶
Bases: BaseModel
PEP 621 [project] input model, as written by uv, hatchling, flit, PDM, setuptools and Poetry 2.x.
Required fields are name, and version and description unless listed as dynamic.
Source code in src/somesy/pyproject/models.py
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
validate_required_unless_dynamic ¶
validate_required_unless_dynamic()
Validate that version and description are present unless listed in dynamic.
Source code in src/somesy/pyproject/models.py
241 242 243 244 | |
validate_version
classmethod
¶
validate_version(v)
Validate version using PEP 440.
Source code in src/somesy/pyproject/models.py
256 257 258 259 260 | |
validate_readme
classmethod
¶
validate_readme(v)
Validate readme file(s) by checking whether files exist.
Source code in src/somesy/pyproject/models.py
262 263 264 265 266 267 268 269 270 271 272 273 274 275 | |
validate_email_format
classmethod
¶
validate_email_format(v)
Validate email format.
Source code in src/somesy/pyproject/models.py
277 278 279 280 281 282 283 284 | |