Skip to content

Commit 614eafb

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

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

.github/workflows/pr-ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ name: CloudFormation Python Plugin CI
66
on: [push, pull_request]
77

88
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python: [3.6, 3.7, 3.8, 3.9]
14+
steps:
15+
- name: Set up Python ${{ matrix.python }}
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: ${{ matrix.python }}
919
os_build:
1020
env:
1121
AWS_DEFAULT_REGION: us-east-1
@@ -38,3 +48,7 @@ jobs:
3848
run: ./e2e-test.sh python36
3949
- name: End to End Resource Packaging Test Python 3.7
4050
run: ./e2e-test.sh python37
51+
- name: End to End Resource Packaging Test Python 3.8
52+
run: ./e2e-test.sh python38
53+
- name: End to End Resource Packaging Test Python 3.9
54+
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)