Skip to content

chore(cli): v2 python init templates have incorrect constructs version#17333

Merged
mergify[bot] merged 2 commits intomasterfrom
njlynch/fix-v2-init-templates
Nov 4, 2021
Merged

chore(cli): v2 python init templates have incorrect constructs version#17333
mergify[bot] merged 2 commits intomasterfrom
njlynch/fix-v2-init-templates

Conversation

@njlynch
Copy link
Contributor

@njlynch njlynch commented Nov 4, 2021

The init templates were modified as part of #17062. One change was for the 'app'
and 'sample-app' templates to use 'requirements.txt' instead of 'setup.py'. In
that conversion, a quirk of the %constructsversion% replacement was lost; that
replacement inserts the version comparison >= itself, so having it in the
requirements.txt results in a broken specifier.

This was caught in the forward-merge to v2, where there are additional tests
verfying the constructs versions.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The init templates were modified as part of #17062. One change was for the 'app'
and 'sample-app' templates to use 'requirements.txt' instead of 'setup.py'. In
that conversion, a quirk of the `%constructsversion%` replacement was lost; that
replacement inserts the version comparison `>=` itself, so having it in the
requirements.txt results in a broken specifier.

This was caught in the forward-merge to v2, where there are additional tests
verfying the constructs versions.
@njlynch njlynch requested review from a team and corymhall November 4, 2021 11:20
@njlynch njlynch self-assigned this Nov 4, 2021
@gitpod-io
Copy link

gitpod-io bot commented Nov 4, 2021

@github-actions github-actions bot added the aws-cdk-lib Related to the aws-cdk-lib package label Nov 4, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Nov 4, 2021
@njlynch njlynch changed the title fix: v2 python init templates have incorrect constructs version fix(cli): v2 python init templates have incorrect constructs version Nov 4, 2021
@njlynch njlynch changed the title fix(cli): v2 python init templates have incorrect constructs version chore(cli): v2 python init templates have incorrect constructs version Nov 4, 2021
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Nov 4, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 4, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: a6add6c
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit ea779aa into master Nov 4, 2021
@mergify mergify bot deleted the njlynch/fix-v2-init-templates branch November 4, 2021 13:40
@mergify
Copy link
Contributor

mergify bot commented Nov 4, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
aws#17333)

The init templates were modified as part of aws#17062. One change was for the 'app'
and 'sample-app' templates to use 'requirements.txt' instead of 'setup.py'. In
that conversion, a quirk of the `%constructsversion%` replacement was lost; that
replacement inserts the version comparison `>=` itself, so having it in the
requirements.txt results in a broken specifier.

This was caught in the forward-merge to v2, where there are additional tests
verfying the constructs versions.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aws-cdk-lib Related to the aws-cdk-lib package contribution/core This is a PR that came from AWS. package/tools Related to AWS CDK Tools or CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants