Skip to content

Commit 478445c

Browse files
committed
More items for python 3.8 and 3.9 support
1 parent 9acb5d8 commit 478445c

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/pr-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ jobs:
3838
run: ./e2e-test.sh python36
3939
- name: End to End Resource Packaging Test Python 3.7
4040
run: ./e2e-test.sh python37
41+
- name: End to End Resource Packaging Test Python 3.8
42+
run: ./e2e-test.sh python38
43+
- name: End to End Resource Packaging Test Python 3.9
44+
run: ./e2e-test.sh python39

python/rpdk/python/parser.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
def setup_subparser(subparsers, parents, python_version):
1+
def setup_subparser(subparsers, parents, python_version, python_version_number):
22
parser = subparsers.add_parser(
33
python_version,
4-
description="""This sub command generates IDE and build files for Python {}
5-
""".format(
6-
"3.6" if python_version == "python36" else "3.7"
4+
description=(
5+
"This sub command generates IDE and build files for Python "
6+
"{}".format(python_version_number)
77
),
88
parents=parents,
99
)
@@ -22,16 +22,16 @@ def setup_subparser(subparsers, parents, python_version):
2222

2323

2424
def setup_subparser_python36(subparsers, parents):
25-
return setup_subparser(subparsers, parents, "python36")
25+
return setup_subparser(subparsers, parents, "python36", "3.6")
2626

2727

2828
def setup_subparser_python37(subparsers, parents):
29-
return setup_subparser(subparsers, parents, "python37")
29+
return setup_subparser(subparsers, parents, "python37", "3.7")
3030

3131

3232
def setup_subparser_python38(subparsers, parents):
33-
return setup_subparser(subparsers, parents, "python38")
33+
return setup_subparser(subparsers, parents, "python38", "3.8")
3434

3535

3636
def setup_subparser_python39(subparsers, parents):
37-
return setup_subparser(subparsers, parents, "python39")
37+
return setup_subparser(subparsers, parents, "python39", "3.9")

0 commit comments

Comments
 (0)