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

Escape import names for python #12447

Merged
merged 1 commit into from Mar 16, 2023
Merged

Escape import names for python #12447

merged 1 commit into from Mar 16, 2023

Conversation

Frassle
Copy link
Member

@Frassle Frassle commented Mar 16, 2023

Description

Part of pulumi/pulumi-terraform-bridge#896

Adds a test that reserved words in schemas and PCL are handled correctly by python codegen.

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Service API version

@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2023-03-16)

Bug Fixes

  • [programgen/python] Fix handling of reserved words in imports.
    #12447

@Frassle
Copy link
Member Author

Frassle commented Mar 16, 2023

bors merge

bors bot added a commit that referenced this pull request Mar 16, 2023
12447: Escape import names for python r=Frassle a=Frassle



<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Part of pulumi/pulumi-terraform-bridge#896

Adds a test that reserved words in schemas and PCL are handled correctly by python codegen.

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Fraser Waters <fraser@pulumi.com>
@bors
Copy link
Contributor

bors bot commented Mar 16, 2023

Build failed:

@Frassle
Copy link
Member Author

Frassle commented Mar 16, 2023

node setup failed

bors retry

@bors
Copy link
Contributor

bors bot commented Mar 16, 2023

Build succeeded:

@bors bors bot merged commit 8148831 into master Mar 16, 2023
44 of 50 checks passed
@bors bors bot deleted the fraser/pythonReservedWords branch March 16, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants