Skip to content

Commit fefaaf6

Browse files
committed
chore(workflow): force trim the description for packaging
1 parent b299af2 commit fefaaf6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

projenrc/type-package.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export class CloudFormationTypeProject extends Component {
9292

9393
new License(project, { spdx });
9494

95-
const description = options.type.Description ?? `Constructs for ${typeName}`;
95+
// Force trim the description to keep the char limit as per core-metadata specification for python packaging
96+
// Ref: https://packaging.python.org/en/latest/specifications/core-metadata/#summary
97+
const description: string = options.type.Description ? options.type.Description.slice(0, 512) : `Constructs for ${typeName}`;
98+
9699
const npmName = `${npmScope}/${typeNameKebab}`;
97100

98101
new Readme(project, {

0 commit comments

Comments
 (0)