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 #23434

Closed
wants to merge 86 commits into from
Closed
Changes from 29 commits
Commits
Show all changes
86 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
164e960
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-python …
BigCat20196 Mar 17, 2022
ac2f9e0
test
BigCat20196 Mar 17, 2022
6ed1348
revoke
BigCat20196 Mar 17, 2022
6e6d69e
test(change rest branch)
BigCat20196 Mar 17, 2022
9419f11
test
BigCat20196 Mar 17, 2022
96bb9a3
test
BigCat20196 Mar 18, 2022
247224d
test
BigCat20196 Mar 22, 2022
3031843
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Mar 22, 2022
baf973f
test
BigCat20196 Mar 22, 2022
c1d7c57
test
BigCat20196 Mar 22, 2022
8480e50
test
BigCat20196 Mar 22, 2022
34d802a
test
BigCat20196 Mar 22, 2022
f4c0f63
test
BigCat20196 Mar 23, 2022
3044e8f
test
BigCat20196 Mar 23, 2022
388e8ca
test
BigCat20196 Mar 23, 2022
175d237
test
BigCat20196 Mar 23, 2022
5e3b856
test
BigCat20196 Mar 23, 2022
0a901ef
test
BigCat20196 Mar 23, 2022
b49882b
test
BigCat20196 Mar 23, 2022
4b263a6
test
BigCat20196 Mar 23, 2022
efbdae9
test
BigCat20196 Mar 23, 2022
8ab6c9a
test
BigCat20196 Mar 23, 2022
78f609e
test
BigCat20196 Mar 23, 2022
bc67be4
test
BigCat20196 Mar 23, 2022
3106a70
test
BigCat20196 Mar 23, 2022
a76690e
test
BigCat20196 Mar 23, 2022
84ad7c4
test
BigCat20196 Mar 24, 2022
295641d
test
BigCat20196 Mar 24, 2022
f852b38
test
BigCat20196 Mar 24, 2022
ee7893e
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 24, 2022
e26375c
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 24, 2022
d1dae79
test
BigCat20196 Mar 24, 2022
5baba68
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Mar 24, 2022
f1060c1
test
BigCat20196 Mar 25, 2022
367fd9f
test
BigCat20196 Mar 25, 2022
75f2b5d
test
BigCat20196 Mar 25, 2022
ed3f34f
test
BigCat20196 Mar 25, 2022
3ab5308
test
BigCat20196 Mar 25, 2022
9f0b8da
test
BigCat20196 Mar 25, 2022
375ccd5
test
BigCat20196 Mar 25, 2022
e378ec8
test
BigCat20196 Mar 25, 2022
86225ad
test
BigCat20196 Mar 25, 2022
45938b9
test
BigCat20196 Mar 25, 2022
5c25421
test
BigCat20196 Mar 25, 2022
63939d4
test
BigCat20196 Mar 25, 2022
849ea9f
test
BigCat20196 Mar 25, 2022
f00bc56
test
BigCat20196 Mar 25, 2022
dbf6a6e
test
BigCat20196 Mar 25, 2022
f88fe18
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 25, 2022
bb26d2c
Update PythonSdkLiveTest.yml for Azure Pipelines
BigCat20196 Mar 25, 2022
24080e7
test
BigCat20196 Mar 25, 2022
ae733a5
Merge branch 'auto-release-debug' of https://github.com/msyyc/azure-s…
BigCat20196 Mar 25, 2022
8628f19
test
BigCat20196 Mar 25, 2022
5e72f8b
test
BigCat20196 Mar 25, 2022
debf2fa
test
BigCat20196 Mar 25, 2022
c9c9790
test
BigCat20196 Mar 25, 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(f' packaging_tools --build-conf successfully ')
BigCat20196 marked this conversation as resolved.
Show resolved Hide resolved

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