Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Python init template does not work in directory with '-' #15939

Merged
merged 5 commits into from
Aug 19, 2021

Conversation

Pearcekieser
Copy link
Contributor

fixes #15938

Pytest error after init sample-app on directory "aws-data-pipeline"

E     File "C:\Users\<...>\aws-data-pipeline\tests\unit\test_aws_data_pipe
E       from aws-data-pipeline.aws_data_pipeline_stack import AwsDataPipelineStack
E               ^
E   SyntaxError: invalid syntax

See #15938 for detials

I was having trouble getting the aws-cdk build and tests running in my dev env. I think its some issues trying to build the code on windows. Do you have any recommendations on how to best add a test for this change?


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

@gitpod-io
Copy link

gitpod-io bot commented Aug 8, 2021

@mergify
Copy link
Contributor

mergify bot commented Aug 8, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@Pearcekieser Pearcekieser changed the title fix(aws-cdk) use %name.PythonModule% in unit test for python sample-app template fix(aws-cdk): use %name.PythonModule% in unit test for python sample-app template Aug 8, 2021
@Pearcekieser
Copy link
Contributor Author

Added a test based off the example in similar commit a85da79

@Pearcekieser Pearcekieser changed the title fix(aws-cdk): use %name.PythonModule% in unit test for python sample-app template fix(cli): use %name.PythonModule% in unit test for python sample-app template Aug 11, 2021
@peterwoodworth peterwoodworth added package/tools Related to AWS CDK Tools or CLI effort/small Small work item – less than a day of effort labels Aug 11, 2021
@rix0rrr rix0rrr changed the title fix(cli): use %name.PythonModule% in unit test for python sample-app template fix(cli): Python init template does not work in directory with '-' Aug 19, 2021
@mergify
Copy link
Contributor

mergify bot commented Aug 19, 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: 777b65b
  • 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 3b2c790 into aws:master Aug 19, 2021
@mergify
Copy link
Contributor

mergify bot commented Aug 19, 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).

rix0rrr added a commit that referenced this pull request Aug 19, 2021
mergify bot pushed a commit that referenced this pull request Aug 19, 2021
… tests (#16134)

Erroneously added in #15939

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
smguggen pushed a commit to smguggen/aws-cdk that referenced this pull request Aug 24, 2021
…ws#15939)

fixes aws#15938

Pytest error after init sample-app on directory "aws-data-pipeline"

```
E     File "C:\Users\<...>\aws-data-pipeline\tests\unit\test_aws_data_pipe
E       from aws-data-pipeline.aws_data_pipeline_stack import AwsDataPipelineStack
E               ^
E   SyntaxError: invalid syntax
```

See aws#15938 for detials

I was having trouble getting the aws-cdk build and tests running in my dev env.  I think its some issues trying to build the code on windows.  Do you have any recommendations on how to best add a test for this change?

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
smguggen pushed a commit to smguggen/aws-cdk that referenced this pull request Aug 24, 2021
… tests (aws#16134)

Erroneously added in aws#15939

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…ws#15939)

fixes aws#15938

Pytest error after init sample-app on directory "aws-data-pipeline"

```
E     File "C:\Users\<...>\aws-data-pipeline\tests\unit\test_aws_data_pipe
E       from aws-data-pipeline.aws_data_pipeline_stack import AwsDataPipelineStack
E               ^
E   SyntaxError: invalid syntax
```

See aws#15938 for detials

I was having trouble getting the aws-cdk build and tests running in my dev env.  I think its some issues trying to build the code on windows.  Do you have any recommendations on how to best add a test for this change?

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
… tests (aws#16134)

Erroneously added in aws#15939

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Sep 6, 2021
…ws#15939)

fixes aws#15938

Pytest error after init sample-app on directory "aws-data-pipeline"

```
E     File "C:\Users\<...>\aws-data-pipeline\tests\unit\test_aws_data_pipe
E       from aws-data-pipeline.aws_data_pipeline_stack import AwsDataPipelineStack
E               ^
E   SyntaxError: invalid syntax
```

See aws#15938 for detials

I was having trouble getting the aws-cdk build and tests running in my dev env.  I think its some issues trying to build the code on windows.  Do you have any recommendations on how to best add a test for this change?

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Sep 6, 2021
… tests (aws#16134)

Erroneously added in aws#15939

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
…ws#15939)

fixes aws#15938

Pytest error after init sample-app on directory "aws-data-pipeline"

```
E     File "C:\Users\<...>\aws-data-pipeline\tests\unit\test_aws_data_pipe
E       from aws-data-pipeline.aws_data_pipeline_stack import AwsDataPipelineStack
E               ^
E   SyntaxError: invalid syntax
```

See aws#15938 for detials

I was having trouble getting the aws-cdk build and tests running in my dev env.  I think its some issues trying to build the code on windows.  Do you have any recommendations on how to best add a test for this change?

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
… tests (aws#16134)

Erroneously added in aws#15939

----

*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
effort/small Small work item – less than a day of effort package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(aws-cdk): cdk init sample-app pytest fails on name with '-'
4 participants