Hard-code the maintainers information to the helper script (#107)

This commit is contained in:
Dengke Tang
2023-10-16 15:20:42 -07:00
committed by GitHub
parent 5545a4fa31
commit b2db8ca161
5 changed files with 13 additions and 27 deletions
+2 -10
View File
@@ -11,11 +11,6 @@ git_tag = subprocess.run(
parser = argparse.ArgumentParser(description='PECL Package generator')
parser.add_argument("--name", help="Name of the package", required=True)
parser.add_argument(
"--user", help="Username of the package maintainer", required=True)
parser.add_argument(
"--email", help="Email address of the package maintainer", default='[email protected]')
parser.add_argument(
"--version", help="Version number of the package", default=git_tag)
parser.add_argument(
@@ -23,9 +18,6 @@ parser.add_argument(
args = parser.parse_args()
PACKAGE = 'awscrt'
NAME = args.name
USER = args.user
EMAIL = args.email
VERSION = args.version
NOTES = args.notes
@@ -65,8 +57,8 @@ with open(file_with_version, "w") as c_file:
try:
run(['python3', f'{TOOLS_DIR}/prepare_pecl_package_xml.py', '--name', NAME, '--user', USER,
'--email', EMAIL, '--version', VERSION, '--notes', NOTES])
run(['python3', f'{TOOLS_DIR}/prepare_pecl_package_xml.py',
'--version', VERSION, '--notes', NOTES])
except subprocess.CalledProcessError as e:
sys.exit(f'ERROR PROCESSING review package.xml: {e}')