mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-17 17:47:12 +00:00
Hard-code the maintainers information to the helper script (#107)
This commit is contained in:
@@ -181,5 +181,5 @@ jobs:
|
||||
|
||||
- name: Test PECL package build
|
||||
run: |
|
||||
python3 dev-scripts/prepare_pecl_release.py --name aws-crt --user aws-crt --version 1.0.0
|
||||
python3 dev-scripts/prepare_pecl_release.py --version 1.0.0
|
||||
sudo pecl install awscrt-1.0.0.tgz
|
||||
|
||||
@@ -5,9 +5,15 @@
|
||||
<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>
|
||||
<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>
|
||||
<date>{{{TODAY}}}</date>
|
||||
|
||||
@@ -6,21 +6,12 @@ from datetime import datetime
|
||||
|
||||
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)
|
||||
|
||||
@@ -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}')
|
||||
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
#define AWS_PHP_AT_LEAST_7 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_0)
|
||||
#define AWS_PHP_AT_LEAST_7_2 (ZEND_EXTENSION_API_NO >= AWS_PHP_EXTENSION_API_7_2)
|
||||
|
||||
#define PHP_AWSCRT_VERSION "1.2.2"
|
||||
#define PHP_AWSCRT_VERSION "1.2.3"
|
||||
|
||||
ZEND_BEGIN_MODULE_GLOBALS(awscrt)
|
||||
long log_level;
|
||||
|
||||
Reference in New Issue
Block a user