Skip to content

Commit cd44a1c

Browse files
asottile-sentryandrewshie-sentry
authored andcommitted
Revert "Reapply "ref: upgrade to python 3.13" (#83448)" (#83596)
This reverts commit 42b93a4. <!-- Describe your PR here. -->
1 parent 91a90ca commit cd44a1c

12 files changed

+34
-34
lines changed

.github/actions/setup-sentry/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inputs:
3838
python-version:
3939
description: 'python version to install'
4040
required: false
41-
default: '3.13.1'
41+
default: '3.12.6'
4242
pg-version:
4343
description: 'PostgreSQL version to use'
4444
default: '14'

.github/workflows/backend.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ jobs:
208208
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
209209
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
210210
with:
211-
python-version: 3.13.1
211+
python-version: 3.12.6
212212
cache-dependency-path: requirements-dev-frozen.txt
213213
install-cmd: pip install -q --constraint requirements-dev-frozen.txt pip-tools
214214
- name: check requirements
@@ -301,7 +301,7 @@ jobs:
301301

302302
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
303303
with:
304-
python-version: 3.13.1
304+
python-version: 3.12.6
305305
cache-dependency-path: requirements-dev-frozen.txt
306306
install-cmd: pip install -r requirements-dev-frozen.txt
307307

.github/workflows/development-environment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
3434
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
3535
with:
36-
python-version: 3.13.1
36+
python-version: 3.12.6
3737
cache-dependency-path: |
3838
requirements-dev.txt
3939
requirements-dev-frozen.txt
@@ -52,7 +52,7 @@ jobs:
5252
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5353
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
5454
with:
55-
python-version: 3.13.1
55+
python-version: 3.12.6
5656
cache-dependency-path: |
5757
requirements-dev.txt
5858
requirements-dev-frozen.txt

.github/workflows/pre-commit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171

7272
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
7373
with:
74-
python-version: 3.13.1
74+
python-version: 3.12.6
7575
cache-dependency-path: |
7676
requirements-dev.txt
7777
requirements-dev-frozen.txt

.github/workflows/react-to-product-owners-yml-changes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
1515
with:
16-
python-version: 3.13.1
16+
python-version: 3.12.6
1717

1818
- name: React to product-owners.yml changes
1919
shell: bash

.github/workflows/self-hosted.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
3333
with:
34-
python-version: 3.13.1
34+
python-version: 3.12.6
3535
cache-dependency-path: requirements-dev-frozen.txt
3636
install-cmd: echo
3737

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.1
1+
3.12.6

devenv/config.ini

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minimum_version = 1.13.0
33

44
[venv.sentry]
5-
python = 3.13.1
5+
python = 3.12.6
66
path = .venv
77
requirements = requirements-dev.txt
88
editable =
@@ -11,7 +11,7 @@ editable =
1111
# bins =
1212

1313
[venv.getsentry]
14-
python = 3.13.1
14+
python = 3.12.6
1515
# technically these are conflicting paths but getsentry is special
1616
# and would rather keep devenv config symlinked
1717
path = .venv
@@ -20,15 +20,15 @@ editable = .
2020
# but we'll just install it during sync as it's rarely populated
2121
requirements = sentry-requirements-dev-frozen.txt
2222

23-
[python3.13.1]
24-
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
25-
darwin_x86_64_sha256 = 4c4dafe2d59bb58e8d3ad26af637b7ae9c8141bb79738966752976861bdb103d
26-
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-apple-darwin-install_only.tar.gz
27-
darwin_arm64_sha256 = bbfc96038d0b6922fd783f6eb2c9bf9abb648531d23d236bc1a0c16bdd061944
28-
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
29-
linux_x86_64_sha256 = bb4696825039a2b5dc7fea2c6aeb085c89fd397016b44165ec73b4224ccc83e2
30-
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
31-
linux_arm64_sha256 = d37aef7bdf5c27f7d006918f7cedb31f4ba07c88f61baac4ffbe0bee6d4b5248
23+
[python3.12.6]
24+
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
25+
darwin_x86_64_sha256 = 8c56da91436bee158b0d592aed3393c1fe3da3694ca35950ee1c52935ba8bfd5
26+
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-apple-darwin-install_only.tar.gz
27+
darwin_arm64_sha256 = 899f46eb592fcac4e834c064e4c901e8a4a6b5864e80b18efd2f0b7c3c050584
28+
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
29+
linux_x86_64_sha256 = 68ff386c923c59a33a272bd984b8a33fe8117c56ad7f7552e0c2b21937ee3c0b
30+
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
31+
linux_arm64_sha256 = caac1033f68f69d8978dc8c6b6964cfb9d8a111abc55c03403bd4ece63f331f3
3232

3333
[node]
3434
# upstream (https://nodejs.org/dist/) is not reliable enough so we've mirrored it to GCS
@@ -68,12 +68,12 @@ version = 0.23.2
6868

6969
# kept here only for compatibility with older `devenv`
7070
[python]
71-
version = 3.13.1
72-
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
73-
darwin_x86_64_sha256 = 4c4dafe2d59bb58e8d3ad26af637b7ae9c8141bb79738966752976861bdb103d
74-
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20250106/cpython-3.13.1+20250106-aarch64-apple-darwin-install_only.tar.gz
75-
darwin_arm64_sha256 = bbfc96038d0b6922fd783f6eb2c9bf9abb648531d23d236bc1a0c16bdd061944
76-
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
77-
linux_x86_64_sha256 = bb4696825039a2b5dc7fea2c6aeb085c89fd397016b44165ec73b4224ccc83e2
78-
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
79-
linux_arm64_sha256 = d37aef7bdf5c27f7d006918f7cedb31f4ba07c88f61baac4ffbe0bee6d4b5248
71+
version = 3.12.6
72+
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
73+
darwin_x86_64_sha256 = 8c56da91436bee158b0d592aed3393c1fe3da3694ca35950ee1c52935ba8bfd5
74+
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-aarch64-apple-darwin-install_only.tar.gz
75+
darwin_arm64_sha256 = 899f46eb592fcac4e834c064e4c901e8a4a6b5864e80b18efd2f0b7c3c050584
76+
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
77+
linux_x86_64_sha256 = 68ff386c923c59a33a272bd984b8a33fe8117c56ad7f7552e0c2b21937ee3c0b
78+
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
79+
linux_arm64_sha256 = caac1033f68f69d8978dc8c6b6964cfb9d8a111abc55c03403bd4ece63f331f3

requirements-dev-frozen.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.13
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# make freeze-requirements

requirements-frozen.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with Python 3.13
2+
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
55
# make freeze-requirements

scripts/lib.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ EOF
6363
else
6464
minor=$(echo "${python_version}" | sed 's/[0-9]*\.\([0-9]*\)\.\([0-9]*\)/\1/')
6565
patch=$(echo "${python_version}" | sed 's/[0-9]*\.\([0-9]*\)\.\([0-9]*\)/\2/')
66-
if [ "$minor" -ne 13 ] || [ "$patch" -lt 0 ]; then
66+
if [ "$minor" -ne 12 ] || [ "$patch" -lt 1 ]; then
6767
cat <<EOF
6868
${red}${bold}
6969
ERROR: You're running a virtualenv with Python ${python_version}.
70-
We only support >= 3.13.0, < 3.14.
70+
We only support >= 3.12.1, < 3.13.
7171
Either run "rm -rf ${venv_name} && direnv allow" to
7272
OR set SENTRY_PYTHON_VERSION=${python_version} to an .env file to bypass this check."
7373
EOF

self-hosted/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13.1-slim-bookworm
1+
FROM python:3.12.6-slim-bookworm
22

33
LABEL maintainer="[email protected]"
44
LABEL org.opencontainers.image.title="Sentry"

0 commit comments

Comments
 (0)