Skip to content

Commit

Permalink
deployer(fix): fix lambda update + update python (#8184)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo authored Feb 9, 2023
1 parent 278eec7 commit 8fc70ce
Show file tree
Hide file tree
Showing 9 changed files with 601 additions and 543 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.10"

- name: Install Python poetry
uses: snok/install-poetry@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id: setup-python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.10"

- name: Load cached venv
id: cached-poetry-dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.10"

- name: Install Python poetry
uses: snok/install-poetry@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.10"

- name: Install Python poetry
uses: snok/install-poetry@v1
Expand Down
673 changes: 365 additions & 308 deletions deployer/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/mdn/yari"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.10"
click = "^8.1.3"
boto3 = "^1.26.64"
python-decouple = "^3.7"
Expand Down
2 changes: 1 addition & 1 deletion deployer/src/deployer/update_lambda_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def deploy(updated_functions: list, distribution_id, dry_run=False):

if arn.endswith(version):
# update_function_code() returns FunctionArn with version.
prefix = arn.replace(version, "")
prefix = arn.removesuffix(version)
else:
# get_function() returns FunctionArn without version.
prefix = arn + ":"
Expand Down
457 changes: 229 additions & 228 deletions testing/integration/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion testing/integration/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repository = "https://github.com/mdn/yari"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.10"
pytest = "^7.2.1"
pytest-base-url = "^2.0.0"
pytest-rerunfailures = "^11.0"
Expand Down

0 comments on commit 8fc70ce

Please sign in to comment.