From fad6645764c10ce9ffcecf2adbb521705324b047 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Fri, 29 Sep 2023 21:41:33 +0100 Subject: [PATCH 1/8] chore: update to python 3.11 --- .github/actions/run-backend-tests/action.yml | 2 +- .github/workflows/benchmark.yml | 2 +- .github/workflows/ci-backend.yml | 8 ++-- .github/workflows/ci-plugin-server.yml | 4 +- .run/Celery.run.xml | 1 + .run/PostHog.run.xml | 4 +- posthog/clickhouse/client/escape.py | 1 + production-unit.Dockerfile | 2 +- production.Dockerfile | 4 +- pyproject.toml | 2 +- requirements-dev.txt | 40 +------------------- requirements.in | 5 ++- requirements.txt | 20 +++++----- 13 files changed, 33 insertions(+), 62 deletions(-) diff --git a/.github/actions/run-backend-tests/action.yml b/.github/actions/run-backend-tests/action.yml index edd36992a6614..c742d87dde90d 100644 --- a/.github/actions/run-backend-tests/action.yml +++ b/.github/actions/run-backend-tests/action.yml @@ -6,7 +6,7 @@ name: Run Django tests inputs: python-version: required: true - description: Python version, e.g. 3.10.10 + description: Python version, e.g. 3.11.4 clickhouse-server-image: required: true description: ClickHouse server image tag, e.g. clickhouse/clickhouse-server:latest diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 191b481a045d2..eff3bfb7dc8e8 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -54,7 +54,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index f80300fca0a56..3290e5ec8fd73 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -103,7 +103,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -181,7 +181,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -237,7 +237,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10.10'] + python-version: ['3.11.4'] clickhouse-server-image: ['clickhouse/clickhouse-server:23.6.1.1524'] segment: ['FOSS', 'EE'] person-on-events: [false, true] @@ -325,7 +325,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index 81aa5cf4cd81f..b51a25c42ad92 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -117,7 +117,7 @@ jobs: if: needs.changes.outputs.plugin-server == 'true' uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -215,7 +215,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.10.10 + python-version: 3.11.4 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 diff --git a/.run/Celery.run.xml b/.run/Celery.run.xml index 82f170a5fa381..fc1702472e518 100644 --- a/.run/Celery.run.xml +++ b/.run/Celery.run.xml @@ -12,6 +12,7 @@