Skip to content

Regenerate the client and fix the build#8

Merged
wkozlik merged 5 commits intografeas:masterfrom
nyc:fix-build
Feb 16, 2021
Merged

Regenerate the client and fix the build#8
wkozlik merged 5 commits intografeas:masterfrom
nyc:fix-build

Conversation

@nyc
Copy link
Copy Markdown
Contributor

@nyc nyc commented Feb 9, 2021

Changes

Most of the changes in this PR are auto-generated changes as the result of re-running swagger-codegen with a newer version of the tool and a newer version of the proto. NOTE: This is a potentially breaking change for any users of this library as some methods have changed. The explicit changes I made are below:

  • Update the CircleCI Python image to 3.8.7 to fix the build.
  • Add a script and config file for making it easier to regenerate the client in the future.

Why

This PR was originally intended to fix the CI build which was failing due to a long-existing issue in setuptools (see pypa/setuptools#498). Since the issue seems to have been resolved by newer versions of setuptools, I updated the Python image version used in the CI pipeline to a newer one. This revealed an issue where the generated client code was using async as a keyword param, which is invalid syntax in Python 3.7+ because it is a language keyword. Thus, I regenerated the client code using the newest version of the proto and the current stable version of swagger-codegen v2. Since it took a bit of work to figure out the right parameters to use to regenerate the client in the correct way, I added a script and config file to make this easier in the future.

nyc added 3 commits February 9, 2021 20:21
This is regenerated using a newer version of swagger-codegen that fixes
an issue where the `async` keyword was being used as a keyword param,
which is incompatible with Python 3.7+ where `async` is a language
keyword.
@nyc nyc changed the title Try updating the Python in the build container Regenerate the client and fix the build Feb 9, 2021
@nyc nyc marked this pull request as ready for review February 9, 2021 22:03
@nyc nyc requested a review from wkozlik February 9, 2021 22:03
Copy link
Copy Markdown
Contributor

@wkozlik wkozlik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.

@wkozlik wkozlik merged commit 78c04be into grafeas:master Feb 16, 2021
@nyc nyc deleted the fix-build branch February 16, 2021 18:02
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.

2 participants