-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore(gae): rename regions in standard/storage/appengine-client/main.py #13055
chore(gae): rename regions in standard/storage/appengine-client/main.py #13055
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @eapl-gemugami and reviewers,
I'm currently reviewing this pull request and will provide feedback shortly. In the meantime, here's a summary to help everyone get up to speed:
This pull request, "chore(gae): rename regions in standard/storage/appengine-client/main.py", aims to rename regions in the main.py
file within the Google App Engine standard environment storage client sample. The changes address several internal issues (b/347350771, b/347350870, b/347349966, b/347350558, b/347350538, b/347350224, b/347350515).
Here's a breakdown of the changes:
appengine/standard/storage/appengine-client/main.py
: This file has undergone several modifications. The primary changes involve renaming various comment markers throughout the file. For example:# [START sample]
is renamed to# [START gae_storage_sample]
(line 17)# [START imports]
is renamed to# [START gae_storage_imports]
(line 20)# [START retries]
and# [END retries]
are removed (lines 30-36)# [START get_default_bucket]
is renamed to# [START gae_storage_get_default_bucket]
(line 42)# [END get_default_bucket]
is renamed to# [END gae_storage_get_default_bucket]
(line 52)# [START write]
is renamed to# [START gae_storage_write]
(line 82)# [END write]
is renamed to# [END gae_storage_write]
(line 98)# [START read]
is renamed to# [START gae_storage_read]
(line 104)# [END read]
is renamed to# [END gae_storage_read]
(line 112)# [START list_bucket]
is renamed to# [START gae_storage_list_bucket]
(line 129)# [END list_bucket]
is renamed to# [END gae_storage_list_bucket]
(line 151)# [START delete_files]
and# [END delete_files]
are removed (lines 165-176)# [END sample]
is renamed to# [END gae_storage_sample]
(line 180)
appengine/standard/storage/appengine-client/requirements-test.txt
: This file has been updated to add support for Python 3, including addingpytest==8.3.2
,WebTest==3.0.1
, andsix==1.16.0
(lines 4-7).
The author has indicated that all tests and lint checks have passed.
I'll be back soon with a more detailed review.
Small changes, big impact,
Code flows like a gentle stream,
Bugs swim away now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change renames regions in the provided file. It also updates the requirements-test.txt file to add missing dependencies and support Python 3. Overall, the changes are well-structured and address the specified issues.
@code-review-assist review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request renames regions in main.py
and updates dependencies in requirements-test.txt
to add support for Python 3. These changes are well-organized and easy to understand. The commit message and PR description clearly explain the purpose and context of the changes. The updated dependencies in requirements-test.txt
ensure that tests are run for both Python 2 and Python 3, which is a good practice. Here are a few minor suggestions for improvement based on PEP 8, the Google Python Style Guide, and general Python best practices:
I've applied the change, but the request is not being updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love to see the updates for Python 3!
…py (#13055) * chore(gae): add support for Python 3 to requirements-test.txt * chore(gae): rename regions in appengine-client/main.py * chore(gae): fix typo in region tag
Description
Fixes Internal:
b/347350771
b/347350870
b/347349966
b/347350558
b/347350538
b/347350224
b/347350515
Checklist
nox -s py-3.12
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)