diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8adce86c69f0c..8403063f955ca 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.8.14 + python-version: 3.9.16 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 e3ee487088914..d6c96e5f1b018 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -98,7 +98,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -145,10 +145,10 @@ jobs: - name: Check if antlr definitions are up to date run: | # Installing a version of ant compatible with what we use in development from homebrew (4.11) - # "apt-get install antlr" would install 4.7 which is incompatible with our grammar. + # "apt-get install antlr" would install 4.7 which is incompatible with our grammar. export ANTLR_VERSION=4.11.1 # java version doesn't matter - sudo apt-get install default-jre + sudo apt-get install default-jre mkdir antlr cd antlr curl -o antlr.jar https://www.antlr.org/download/antlr-$ANTLR_VERSION-complete.jar @@ -183,7 +183,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -235,7 +235,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8.14'] + python-version: ['3.9.16'] clickhouse-server-image: ['clickhouse/clickhouse-server:22.8'] segment: ['FOSS', 'EE'] person-on-events: [false, true] @@ -329,7 +329,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -419,7 +419,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - name: Install SAML (python3-saml) dependencies diff --git a/.github/workflows/ci-plugin-server.yml b/.github/workflows/ci-plugin-server.yml index 5ac3ee72e7056..307296b289a04 100644 --- a/.github/workflows/ci-plugin-server.yml +++ b/.github/workflows/ci-plugin-server.yml @@ -99,7 +99,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 @@ -110,6 +110,11 @@ jobs: - uses: syphar/restore-pip-download-cache@v1 if: steps.cache-backend-tests.outputs.cache-hit != 'true' + - name: Install SAML (python3-saml) dependencies + run: | + sudo apt-get update + sudo apt-get install libxml2-dev libxmlsec1-dev libxmlsec1-openssl + - name: Install python dependencies if: steps.cache-backend-tests.outputs.cache-hit != 'true' run: | @@ -181,7 +186,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.8.14 + python-version: 3.9.16 token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }} - uses: syphar/restore-virtualenv@v1 diff --git a/production.Dockerfile b/production.Dockerfile index 65b52c541c154..a92e9dfd79f0d 100644 --- a/production.Dockerfile +++ b/production.Dockerfile @@ -75,7 +75,7 @@ RUN corepack enable && \ # # --------------------------------------------------------- # -FROM python:3.8.14-slim-bullseye AS posthog-build +FROM python:3.9.16-slim-bullseye AS posthog-build WORKDIR /code SHELL ["/bin/bash", "-o", "pipefail", "-c"] @@ -129,7 +129,7 @@ RUN apt-get update && \ # # --------------------------------------------------------- # -FROM python:3.8.14-slim-bullseye +FROM python:3.9.16-slim-bullseye WORKDIR /code SHELL ["/bin/bash", "-o", "pipefail", "-c"] ENV PYTHONUNBUFFERED 1 diff --git a/requirements-dev.in b/requirements-dev.in index 9ce9d83d0d5db..d3096ba4daaec 100644 --- a/requirements-dev.in +++ b/requirements-dev.in @@ -36,7 +36,7 @@ types-pytz==2021.3.2 types-redis==4.3.20 types-requests==2.26.1 isort==5.2.2 -pytest==6.2.2 +pytest==6.2.5 pytest-django==4.1.0 pytest-env==0.6.2 pytest-icdiff==0.5 diff --git a/requirements-dev.txt b/requirements-dev.txt index f632d002d2974..79eb2b73e4a10 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with python 3.8 +# This file is autogenerated by pip-compile with python 3.9 # To update, run: # # pip-compile requirements-dev.in @@ -125,7 +125,6 @@ idna==2.8 importlib-resources==5.10.2 # via # -c requirements.txt - # jsonschema # openapi-spec-validator inflect==5.6.2 # via datamodel-code-generator @@ -229,7 +228,7 @@ pysocks==1.7.1 # via # -c requirements.txt # urllib3 -pytest==6.2.2 +pytest==6.2.5 # via # -r requirements-dev.in # pytest-cov diff --git a/runtime.txt b/runtime.txt index c2fd302483f80..c9cbcea6fb056 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.8.14 +python-3.9.16