From 8029a111b73023452f8fa45550ed12adf2046944 Mon Sep 17 00:00:00 2001 From: Mike Grima Date: Fri, 5 Apr 2024 15:15:35 -0400 Subject: [PATCH] Upgraded to Python 3.12 --- .github/workflows/python.yml | 2 +- Dockerfile | 2 +- pyproject.toml | 1 + tests/starfleet_included_plugins/iam/test_schemas.py | 1 + tox.ini | 2 +- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 7ca1efd..326fc3d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: python-version: - - "3.10" + - "3.12" steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/Dockerfile b/Dockerfile index 5790ecd..2595030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Sample Starfleet Dockerfile for building ECR Lambda functions -FROM public.ecr.aws/lambda/python:3.10 +FROM public.ecr.aws/lambda/python:3.12 ENV LAMBDA_TASK_ROOT=/var/runtime diff --git a/pyproject.toml b/pyproject.toml index c3391ec..b35007d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,7 @@ tests = [ "mkdocs-material==9.5.16", "cfn-lint>=0.77", "checkov>=2.3", + "setuptools==69.2.0" ] [tool.pytest.ini_options] diff --git a/tests/starfleet_included_plugins/iam/test_schemas.py b/tests/starfleet_included_plugins/iam/test_schemas.py index ce5fb6b..cf2f280 100644 --- a/tests/starfleet_included_plugins/iam/test_schemas.py +++ b/tests/starfleet_included_plugins/iam/test_schemas.py @@ -213,6 +213,7 @@ def test_nested_forbidden_fields() -> None: def test_include_exclude_account_logic(test_index: AccountIndexInstance) -> None: """This tests that the nested include/exclude account logic is working properly.""" + # pylint: disable=no-member from starfleet.worker_ships.plugins.iam.schemas import IambicTemplateTypes, IamRoleWorkerShipPayloadTemplate, render_iambic_template payload = """ diff --git a/tox.ini b/tox.ini index 2e13d96..6ab0a14 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ requires = tox>=4.2 env_list = - py310 + py312 lint no_package = true