Skip to content

Commit

Permalink
Update main.py (#24878)
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc authored Jun 16, 2022
1 parent f9bf3cf commit 7c5607d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,6 @@ def edit_sdk_readme(content: List[str]):

modify_file(sdk_readme, edit_sdk_readme)

def check_sdk_setup(self):
def edit_sdk_setup(content: List[str]):
for i in range(0, len(content)):
content[i] = content[i].replace('msrestazure>=0.4.32,<2.0.0', 'azure-mgmt-core>=1.3.0,<2.0.0')
content[i] = content[i].replace('azure-mgmt-core>=1.2.0,<2.0.0', 'azure-mgmt-core>=1.3.0,<2.0.0')
content[i] = content[i].replace('msrest>=0.5.0', 'msrest>=0.6.21')

modify_file(str(Path(self.sdk_code_path()) / 'setup.py'), edit_sdk_setup)

# Use the template to update readme and setup by packaging_tools
@return_origin_path
def check_file_with_packaging_tool(self):
Expand Down Expand Up @@ -414,7 +405,6 @@ def check_file(self):
self.check_file_with_packaging_tool()
self.check_pprint_name()
self.check_sdk_readme()
self.check_sdk_setup()
self.check_version()
self.check_changelog_file()
self.check_ci_file()
Expand Down

0 comments on commit 7c5607d

Please sign in to comment.