diff --git a/.github/actions/setup-sentry/action.yml b/.github/actions/setup-sentry/action.yml index dcadf92597cda9..374f583b2cdd88 100644 --- a/.github/actions/setup-sentry/action.yml +++ b/.github/actions/setup-sentry/action.yml @@ -38,7 +38,7 @@ inputs: python-version: description: 'python version to install' required: false - default: '3.13.1' + default: '3.12.6' pg-version: description: 'PostgreSQL version to use' default: '14' diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 1e8a0c45c9bf83..2ec381aa97831c 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -208,7 +208,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: requirements-dev-frozen.txt install-cmd: pip install -q --constraint requirements-dev-frozen.txt pip-tools - name: check requirements @@ -301,7 +301,7 @@ jobs: - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: requirements-dev-frozen.txt install-cmd: pip install -r requirements-dev-frozen.txt diff --git a/.github/workflows/development-environment.yml b/.github/workflows/development-environment.yml index df3da52d360e50..60e431419786be 100644 --- a/.github/workflows/development-environment.yml +++ b/.github/workflows/development-environment.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: | requirements-dev.txt requirements-dev-frozen.txt @@ -52,7 +52,7 @@ jobs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: | requirements-dev.txt requirements-dev-frozen.txt diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 35de467dc715c7..bb04fbc502ce4c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -71,7 +71,7 @@ jobs: - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: | requirements-dev.txt requirements-dev-frozen.txt diff --git a/.github/workflows/react-to-product-owners-yml-changes.yml b/.github/workflows/react-to-product-owners-yml-changes.yml index 2ec486ac5a702b..ed86a93cefb0c6 100644 --- a/.github/workflows/react-to-product-owners-yml-changes.yml +++ b/.github/workflows/react-to-product-owners-yml-changes.yml @@ -13,7 +13,7 @@ jobs: - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 - name: React to product-owners.yml changes shell: bash diff --git a/.github/workflows/self-hosted.yml b/.github/workflows/self-hosted.yml index 5b58cf84604187..d218104b912e1c 100644 --- a/.github/workflows/self-hosted.yml +++ b/.github/workflows/self-hosted.yml @@ -31,7 +31,7 @@ jobs: - uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0 with: - python-version: 3.13.1 + python-version: 3.12.6 cache-dependency-path: requirements-dev-frozen.txt install-cmd: echo diff --git a/.python-version b/.python-version index c10780c628ad54..35f236d6e56f79 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.13.1 +3.12.6 diff --git a/devenv/config.ini b/devenv/config.ini index 22e5e63a31db91..56980c710105d0 100644 --- a/devenv/config.ini +++ b/devenv/config.ini @@ -2,7 +2,7 @@ minimum_version = 1.13.0 [venv.sentry] -python = 3.13.1 +python = 3.12.6 path = .venv requirements = requirements-dev.txt editable = @@ -11,7 +11,7 @@ editable = # bins = [venv.getsentry] -python = 3.13.1 +python = 3.12.6 # technically these are conflicting paths but getsentry is special # and would rather keep devenv config symlinked path = .venv @@ -20,15 +20,15 @@ editable = . # but we'll just install it during sync as it's rarely populated requirements = sentry-requirements-dev-frozen.txt -[python3.13.1] -darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-x86_64-apple-darwin-install_only.tar.gz -darwin_x86_64_sha256 = 4c4dafe2d59bb58e8d3ad26af637b7ae9c8141bb79738966752976861bdb103d -darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-apple-darwin-install_only.tar.gz -darwin_arm64_sha256 = bbfc96038d0b6922fd783f6eb2c9bf9abb648531d23d236bc1a0c16bdd061944 -linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-x86_64-unknown-linux-gnu-install_only.tar.gz -linux_x86_64_sha256 = bb4696825039a2b5dc7fea2c6aeb085c89fd397016b44165ec73b4224ccc83e2 -linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-unknown-linux-gnu-install_only.tar.gz -linux_arm64_sha256 = d37aef7bdf5c27f7d006918f7cedb31f4ba07c88f61baac4ffbe0bee6d4b5248 +[python3.12.6] +darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64-apple-darwin-install_only.tar.gz +darwin_x86_64_sha256 = 8c56da91436bee158b0d592aed3393c1fe3da3694ca35950ee1c52935ba8bfd5 +darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-apple-darwin-install_only.tar.gz +darwin_arm64_sha256 = 899f46eb592fcac4e834c064e4c901e8a4a6b5864e80b18efd2f0b7c3c050584 +linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64-unknown-linux-gnu-install_only.tar.gz +linux_x86_64_sha256 = 68ff386c923c59a33a272bd984b8a33fe8117c56ad7f7552e0c2b21937ee3c0b +linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-unknown-linux-gnu-install_only.tar.gz +linux_arm64_sha256 = caac1033f68f69d8978dc8c6b6964cfb9d8a111abc55c03403bd4ece63f331f3 [node] # upstream (https://nodejs.org/dist/) is not reliable enough so we've mirrored it to GCS @@ -68,12 +68,12 @@ version = 0.23.2 # kept here only for compatibility with older `devenv` [python] -version = 3.13.1 -darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-x86_64-apple-darwin-install_only.tar.gz -darwin_x86_64_sha256 = 4c4dafe2d59bb58e8d3ad26af637b7ae9c8141bb79738966752976861bdb103d -darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-apple-darwin-install_only.tar.gz -darwin_arm64_sha256 = bbfc96038d0b6922fd783f6eb2c9bf9abb648531d23d236bc1a0c16bdd061944 -linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-x86_64-unknown-linux-gnu-install_only.tar.gz -linux_x86_64_sha256 = bb4696825039a2b5dc7fea2c6aeb085c89fd397016b44165ec73b4224ccc83e2 -linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-unknown-linux-gnu-install_only.tar.gz -linux_arm64_sha256 = d37aef7bdf5c27f7d006918f7cedb31f4ba07c88f61baac4ffbe0bee6d4b5248 +version = 3.12.6 +darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64-apple-darwin-install_only.tar.gz +darwin_x86_64_sha256 = 8c56da91436bee158b0d592aed3393c1fe3da3694ca35950ee1c52935ba8bfd5 +darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-apple-darwin-install_only.tar.gz +darwin_arm64_sha256 = 899f46eb592fcac4e834c064e4c901e8a4a6b5864e80b18efd2f0b7c3c050584 +linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64-unknown-linux-gnu-install_only.tar.gz +linux_x86_64_sha256 = 68ff386c923c59a33a272bd984b8a33fe8117c56ad7f7552e0c2b21937ee3c0b +linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-unknown-linux-gnu-install_only.tar.gz +linux_arm64_sha256 = caac1033f68f69d8978dc8c6b6964cfb9d8a111abc55c03403bd4ece63f331f3 diff --git a/requirements-dev-frozen.txt b/requirements-dev-frozen.txt index a05d8b2b5c20bb..65c2bc428e405f 100644 --- a/requirements-dev-frozen.txt +++ b/requirements-dev-frozen.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.13 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make freeze-requirements diff --git a/requirements-frozen.txt b/requirements-frozen.txt index 39ed502df9cb0b..7ef1b806ee91f0 100644 --- a/requirements-frozen.txt +++ b/requirements-frozen.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.13 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # make freeze-requirements diff --git a/scripts/lib.sh b/scripts/lib.sh index b8d054bea45d6c..09fea300436ed4 100755 --- a/scripts/lib.sh +++ b/scripts/lib.sh @@ -63,11 +63,11 @@ EOF else minor=$(echo "${python_version}" | sed 's/[0-9]*\.\([0-9]*\)\.\([0-9]*\)/\1/') patch=$(echo "${python_version}" | sed 's/[0-9]*\.\([0-9]*\)\.\([0-9]*\)/\2/') - if [ "$minor" -ne 13 ] || [ "$patch" -lt 0 ]; then + if [ "$minor" -ne 12 ] || [ "$patch" -lt 1 ]; then cat <= 3.13.0, < 3.14. + We only support >= 3.12.1, < 3.13. Either run "rm -rf ${venv_name} && direnv allow" to OR set SENTRY_PYTHON_VERSION=${python_version} to an .env file to bypass this check." EOF diff --git a/self-hosted/Dockerfile b/self-hosted/Dockerfile index 8ce254848f9d7d..b02b646d9dfb2a 100644 --- a/self-hosted/Dockerfile +++ b/self-hosted/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.13.1-slim-bookworm +FROM python:3.12.6-slim-bookworm LABEL maintainer="oss@sentry.io" LABEL org.opencontainers.image.title="Sentry"