-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,18 @@ | |
<channel>pecl.php.net</channel> | ||
<summary>AWS Common Runtime PHP bindings</summary> | ||
<description>AWS Common Runtime provides a set of low level tools as network protocols and authentication used by the AWSSDK for PHP to provide high level API to access AWS services.</description> | ||
<lead> | ||
<name>{{{NAME}}}</name> | ||
<user>{{{USER}}}</user> | ||
<email>{{{EMAIL}}}</email> | ||
<lead> | ||
<name>Dengke Tang</name> | ||
<user>dengket</user> | ||
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
<lead> | ||
<name>Dmitriy Musatkin</name> | ||
<user>musatkd</user> | ||
<email>[email protected]</email> | ||
<active>yes</active> | ||
</lead> | ||
</lead> | ||
<date>{{{TODAY}}}</date> | ||
<version> | ||
<release>{{{VERSION}}}</release> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,12 @@ | |
|
||
parser = argparse.ArgumentParser( | ||
description="Generate package.xml file for a release bundle.") | ||
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", required=True) | ||
parser.add_argument( | ||
"--notes", help="Release notes for the package", default='New release') | ||
args = parser.parse_args() | ||
|
||
|
||
name = args.name | ||
user = args.user | ||
email = args.email | ||
version = args.version | ||
notes = args.notes | ||
|
||
|
@@ -105,9 +96,6 @@ def process_dir(dir_name, f): | |
with open(os.path.join(tools_dir, "package.xml-template_pre"), 'r') as f: | ||
template_pre = f.read() | ||
|
||
template_pre = re.sub(r"{{{NAME}}}", name, template_pre) | ||
template_pre = re.sub(r"{{{USER}}}", user, template_pre) | ||
template_pre = re.sub(r"{{{EMAIL}}}", email, template_pre) | ||
template_pre = re.sub(r"{{{TODAY}}}", today, template_pre) | ||
template_pre = re.sub(r"{{{VERSION}}}", version, template_pre) | ||
template_pre = re.sub(r"{{{NOTES}}}", notes, template_pre) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,13 @@ | |
|
||
|
||
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( | ||
"--notes", help="Release notes for the package", default='New release') | ||
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 @@ def run(args): | |
|
||
|
||
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}') | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters