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

[Python] Automatically generate stubs #2576

Merged
merged 15 commits into from
Apr 17, 2023
Merged

[Python] Automatically generate stubs #2576

merged 15 commits into from
Apr 17, 2023

Conversation

crisidev
Copy link
Contributor

Motivation and Context

We want to automatically generate stubs in the codegen diff to ensure they can be reviewed and have a simple way to generate and include the stubs inside the Maturin wheel.

Description

The Python example has been moved to the examples folder and refactored. The refactoring
ensures the script stubgen.py is included in the codegeneration of the SDK crate. The script is later used to generate stubs automatically during testing and can be used by customers to add their own stubs before the Maturin build


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ed. The refactoring

ensures the script stubgen.py is included in the codegeneration of the SDK crate.
The script is later used to generate stubs automatically during testing and can be used
by customers to add their own stubs before the Maturin build
@crisidev crisidev marked this pull request as ready for review April 13, 2023 15:12
@crisidev crisidev requested review from a team as code owners April 13, 2023 15:12
@crisidev
Copy link
Contributor Author

Closes: #2489

@crisidev
Copy link
Contributor Author

Note this PR will not generate a proper diff since I changed the tool to also diff the python stubs. Once this is merged, the proper diff will start to be generated from next PR.

@crisidev crisidev added needs-sdk-review needs-server-review python-server Python server SDK refactoring Changes that do not affect our users, mostly focused on maintainability labels Apr 13, 2023
examples/python/README.md Outdated Show resolved Hide resolved
rust-runtime/aws-smithy-http-server-python/src/tls.rs Outdated Show resolved Hide resolved
tools/ci-scripts/codegen-diff/diff_lib.py Outdated Show resolved Hide resolved
crisidev and others added 2 commits April 17, 2023 12:59
Co-authored-by: Burak <unexge@gmail.com>
@crisidev crisidev enabled auto-merge April 17, 2023 15:55
@crisidev crisidev added this pull request to the merge queue Apr 17, 2023
Merged via the queue into main with commit a2d37ad Apr 17, 2023
@crisidev crisidev deleted the oxipy-autogen-stubs branch April 17, 2023 16:44
unexge added a commit that referenced this pull request Apr 24, 2023
## Motivation and Context
We want to automatically generate stubs in the codegen diff to ensure
they can be reviewed and have a simple way to generate and include the
stubs inside the Maturin wheel.

## Description
The Python example has been moved to the `examples` folder and
refactored. The refactoring
ensures the script `stubgen.py` is included in the codegeneration of the
SDK crate. The script is later used to generate stubs automatically
during testing and can be used by customers to add their own stubs
before the Maturin build

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

---------

Signed-off-by: Bigo <1781140+crisidev@users.noreply.github.com>
Co-authored-by: Burak <unexge@gmail.com>
rcoh pushed a commit that referenced this pull request Apr 24, 2023
## Motivation and Context
We want to automatically generate stubs in the codegen diff to ensure
they can be reviewed and have a simple way to generate and include the
stubs inside the Maturin wheel.

## Description
The Python example has been moved to the `examples` folder and
refactored. The refactoring
ensures the script `stubgen.py` is included in the codegeneration of the
SDK crate. The script is later used to generate stubs automatically
during testing and can be used by customers to add their own stubs
before the Maturin build

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

---------

Signed-off-by: Bigo <1781140+crisidev@users.noreply.github.com>
Co-authored-by: Burak <unexge@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python-server Python server SDK refactoring Changes that do not affect our users, mostly focused on maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants