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

[Auto release] Use the template to update readme and setup through the packaging_tools #23695

Merged
merged 32 commits into from
Mar 28, 2022
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b1ca1b7
fix auto-ask-check bug
msyyc Jan 28, 2022
a61a9d5
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Feb 16, 2022
5ae58ab
update comment
BigCat20196 Feb 16, 2022
79a3594
update comment
BigCat20196 Feb 16, 2022
7071377
fix bug
BigCat20196 Feb 17, 2022
8f6fe79
Update main.py
BigCat20196 Feb 17, 2022
8d23d87
Update main.py
msyyc Feb 17, 2022
44faa80
Update main.py
msyyc Feb 17, 2022
84768eb
fix changelog format for new service
BigCat20196 Feb 18, 2022
29f9a86
fix check_pprint_name bug
BigCat20196 Feb 18, 2022
5b11c12
Update main.py
msyyc Feb 18, 2022
6b13133
fix check_pprint_name bug
BigCat20196 Feb 18, 2022
03f63af
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Feb 18, 2022
c53585b
Update main.py
msyyc Feb 21, 2022
8a8b3d7
Merge branch 'main' into auto-release-debug
msyyc Feb 21, 2022
90ab52d
Update main.py
msyyc Mar 4, 2022
c124933
test
BigCat20196 Mar 9, 2022
e6f89a2
test
BigCat20196 Mar 9, 2022
76faf36
change to azclibot
BigCat20196 Mar 9, 2022
ffb8635
change to azure
BigCat20196 Mar 9, 2022
53ada77
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 9, 2022
40a0f74
fix push
BigCat20196 Mar 9, 2022
2f6b174
test
BigCat20196 Mar 9, 2022
d5ce826
update
BigCat20196 Mar 9, 2022
79a553e
update
BigCat20196 Mar 9, 2022
ec747f1
test
BigCat20196 Mar 9, 2022
6f51fc8
test
BigCat20196 Mar 9, 2022
7107723
reduction
BigCat20196 Mar 9, 2022
6885266
update main
BigCat20196 Mar 11, 2022
6c9bbbd
delete f
BigCat20196 Mar 11, 2022
21b6c6b
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 28, 2022
c2cb7e4
Update main.py
BigCat20196 Mar 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def prepare_branch(self):
# self.prepare_branch_with_base_branch()

def check_sdk_readme(self):
sdk_readme = str(Path(f'sdk/{self.sdk_folder}/{self.package_name}/README.md'))
sdk_readme = str(Path(f'sdk/{self.sdk_folder}/azure-mgmt-{self.package_name}/README.md'))

def edit_sdk_readme(content: List[str]):
for i in range(0, len(content)):
Expand All @@ -257,6 +257,13 @@ def edit_sdk_setup(content: List[str]):

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):
os.chdir(Path(f'sdk/{self.sdk_folder}'))
print_check(f'python -m packaging_tools --build-conf azure-mgmt-{self.package_name}')
log('packaging_tools --build-conf successfully ')

def check_pprint_name(self):
pprint_name = self.package_name.capitalize()

Expand Down Expand Up @@ -402,7 +409,9 @@ def check_ci_file(self):
self.check_ci_file_proc('azure-mgmt-core>=1.3.0,<2.0.0')

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()
Expand Down