From e7168833fe8dd324184136d1f0ce0d23d360c475 Mon Sep 17 00:00:00 2001 From: "Tobias.Mikula" Date: Tue, 7 Oct 2025 16:53:23 +0200 Subject: [PATCH] Repository upgraded into python 313 --- .github/CODEOWNERS | 2 +- .github/workflows/check_pr_release_notes.yml | 2 +- .github/workflows/release_draft.yml | 2 +- .github/workflows/test.yml | 8 ++++---- DEVELOPER.md | 5 +++++ pyproject.toml | 4 ++-- requirements.txt | 1 + terraform/lambda.tf | 2 +- 8 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 8423567..939832a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @ABMC831 @Zejnilovic @oto-macenauer-absa @petr-pokorny-absa +* @ABMC831 @Zejnilovic @oto-macenauer-absa @petr-pokorny-absa @tmikula-dev diff --git a/.github/workflows/check_pr_release_notes.yml b/.github/workflows/check_pr_release_notes.yml index 38d972f..89c2835 100644 --- a/.github/workflows/check_pr_release_notes.yml +++ b/.github/workflows/check_pr_release_notes.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/setup-python@v5.1.1 with: - python-version: '3.11' + python-version: '3.13' - name: Check presence of release notes in PR description uses: AbsaOSS/release-notes-presence-check@v0.2.1 diff --git a/.github/workflows/release_draft.yml b/.github/workflows/release_draft.yml index 144df59..43c1a6b 100644 --- a/.github/workflows/release_draft.yml +++ b/.github/workflows/release_draft.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-python@v5.1.1 with: - python-version: '3.11' + python-version: '3.13' - name: Check format of received tag id: check-version-tag diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1228bf8..5cfb477 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.13' cache: 'pip' - name: Install dependencies @@ -52,7 +52,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.1.0 with: - python-version: '3.11' + python-version: '3.13' cache: 'pip' - name: Install dependencies @@ -80,7 +80,7 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.13' cache: 'pip' - name: Install Python dependencies @@ -102,7 +102,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5.1.0 with: - python-version: '3.11' + python-version: '3.13' cache: 'pip' - name: Install dependencies diff --git a/DEVELOPER.md b/DEVELOPER.md index df23aca..07e7229 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -16,6 +16,11 @@ git clone https://github.com/AbsaOSS/EventGate.git cd EventGate ``` +## Prerequisites +- Python 3.13 (current required runtime) +- PostgreSQL client dev package + - For local development, you may temporarily switch to the commented `psycopg2-binary==2.9.10` in `requirements.txt`. + ## Set Up Python Environment ```shell python3 -m venv .venv diff --git a/pyproject.toml b/pyproject.toml index 1c721ab..a8b7b2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target-version = ['py311'] +target-version = ['py313'] # force-exclude = '''test''' [tool.coverage.run] @@ -10,7 +10,7 @@ omit = ["tests/*"] check_untyped_defs = true exclude = "tests" ignore_missing_imports = true -python_version = "3.11" +python_version = "3.13" packages = ["src"] explicit_package_bases = true disable_error_code = ["import-untyped"] diff --git a/requirements.txt b/requirements.txt index 36aba72..ac326f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,5 @@ PyJWT==2.10.1 requests==2.32.5 boto3==1.40.25 confluent-kafka==2.11.1 +# psycopg2-binary==2.9.10 # Ideal for local development, but not for long-term production use psycopg2==2.9.10 diff --git a/terraform/lambda.tf b/terraform/lambda.tf index 0eeedfa..5344439 100644 --- a/terraform/lambda.tf +++ b/terraform/lambda.tf @@ -22,7 +22,7 @@ resource "aws_lambda_function" "event_gate_lambda" { role = var.lambda_role_arn architectures = ["x86_64"] timeout = 60 - runtime = "python3.11" + runtime = "python3.13" package_type = var.lambda_package_type s3_bucket = var.lambda_package_type == "Zip" ? var.lambda_src_s3_bucket : null