-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline #22475
[Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline #22475
Conversation
…imorenoh/azure-sdk-for-python into cosmos-remove-python-2-support
-e ../../../tools/azure-devtools | ||
python_version >= '3.6' |
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.
Don't think we need this line
name=name, verbose=verbose) | ||
else: | ||
super().__init__() | ||
super().__init__() |
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.
hmm I wonder why the previous py2 code was passing in keyword params and the py3 code doesn't?
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.
not too sure to be honest, doesn't seem like they were even being set anywhere within the test
sdk/cosmos/azure-cosmos/setup.py
Outdated
with open("README.md", encoding="utf-8") as f: | ||
readme = f.read() | ||
with open("CHANGELOG.md", encoding="utf-8") as f: | ||
changelog = f.read() | ||
|
||
exclude_packages = [ | ||
"tests", | ||
"tests.*", |
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.
What did we need this one for?
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.
good catch, it's also the wrong name for cosmos - we have tests as test
for whatever reason, ill update
/azp run python - cosmos - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
…into merge_patch * 'main' of https://github.com/Azure/azure-sdk-for-python: (72 commits) [tool]update llc-quick-start-tool for py3 only (Azure#22507) [mgmt] update setupy for python3.6 (Azure#22505) [pipeline] Upgrade python version to `python3.8` (Azure#22503) [AutoRelease] t2-synapse-2022-01-11-70733 (Azure#22439) Update tests.md (Azure#22500) disable per Azure#22498 (Azure#22499) [AnomalyDetector] Release 3.0.0b4 (Azure#22191) [translation] update docs to include managed identity option (Azure#22366) add back py3.6 (Azure#22478) Add Python 3.6 support back to Storage packages (Azure#22483) allow Python 3.6 with the sdk (Azure#22456) remove hardcoded subscription ID (Azure#22481) clean up tests/docs (Azure#22480) Increment version for eventhub releases (Azure#22485) [Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline (Azure#22475) Increment version for servicebus releases (Azure#22484) add back py3.6 (Azure#22477) [AutoRelease] t2-datafactory-2022-01-06-31864 (Azure#22362) [AutoRelease] t2-apimanagement-2022-01-06-51326 (Azure#22361) [AutoRelease] t2-netapp-2022-01-12-75881 (Azure#22467) ...
LGTM, thanks for updating this @simorenoh! |
…into add_back_error_message * 'main' of https://github.com/Azure/azure-sdk-for-python: (127 commits) [tool]update llc-quick-start-tool for py3 only (Azure#22507) [mgmt] update setupy for python3.6 (Azure#22505) [pipeline] Upgrade python version to `python3.8` (Azure#22503) [AutoRelease] t2-synapse-2022-01-11-70733 (Azure#22439) Update tests.md (Azure#22500) disable per Azure#22498 (Azure#22499) [AnomalyDetector] Release 3.0.0b4 (Azure#22191) [translation] update docs to include managed identity option (Azure#22366) add back py3.6 (Azure#22478) Add Python 3.6 support back to Storage packages (Azure#22483) allow Python 3.6 with the sdk (Azure#22456) remove hardcoded subscription ID (Azure#22481) clean up tests/docs (Azure#22480) Increment version for eventhub releases (Azure#22485) [Cosmos] Remove support for Python27, set Python36 as minimum, and update cosmos emulator pipeline (Azure#22475) Increment version for servicebus releases (Azure#22484) add back py3.6 (Azure#22477) [AutoRelease] t2-datafactory-2022-01-06-31864 (Azure#22362) [AutoRelease] t2-apimanagement-2022-01-06-51326 (Azure#22361) [AutoRelease] t2-netapp-2022-01-12-75881 (Azure#22467) ...
…date cosmos emulator pipeline (Azure#22475) * removed six package and updated packaging/ documentation to reflect new standards * massive oops, will rotate keys * change 3.7 to 3.6 * pylint * addressed Anna's comments
This PR takes care of updating Cosmos to remove Python27 support and upgrade the minimum version to 3.6 as per current guidelines: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/packaging.md.
It also takes care of updating the cosmos emulator pipeline step to go against 3.6.