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

{Interactive} Compliant with Python 3.12 #8186

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

ReaNAiveD
Copy link
Member


This checklist is used to make sure that common guidelines for a pull request are followed.

close #8171

Related command

az interactive

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@ReaNAiveD ReaNAiveD self-assigned this Oct 23, 2024
Copy link

azure-client-tools-bot-prd bot commented Oct 23, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

Copy link

Hi @ReaNAiveD,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 23, 2024

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link

github-actions bot commented Oct 23, 2024

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Oct 23, 2024
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Oct 23, 2024
@yonzhan yonzhan requested a review from bebound October 23, 2024 06:58
@@ -73,7 +70,7 @@ def __init__(self, cli_config, style=None):
self.config.write(config_file)
else:
with open(os.path.join(self.config_dir, CONFIG_FILE_NAME), 'r') as config_file:
self.config.readfp(config_file) # pylint: disable=deprecated-method
Copy link
Contributor

Choose a reason for hiding this comment

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

readfp is deprecated since Python 3.2. I guess use it to support Python 2.7.

https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp

Copy link
Member Author

Choose a reason for hiding this comment

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

readfp is deprecated since Python 3.2. I guess use it to support Python 2.7.

https://docs.python.org/3.11/library/configparser.html#configparser.ConfigParser.readfp

I thought we no longer needed to support Python 2?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, it's been EOL for almost five years.

@ReaNAiveD ReaNAiveD merged commit 1d0822d into Azure:main Oct 23, 2024
20 of 21 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ interactive ] : https://dev.azure.com/azclitools/release/_build/results?buildId=199771&view=results

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.

az interactive fails with python 3.12
5 participants