Skip to content

Commit 33f55ff

Browse files
Reapply "ref: upgrade sentry to python 3.12 (#65075)" (#72105)
This reverts commit 889bf3e. now with upgraded `pyuwsgi` \o/ <!-- Describe your PR here. -->
1 parent 86a3e84 commit 33f55ff

File tree

14 files changed

+41
-36
lines changed

14 files changed

+41
-36
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ inputs:
4242
python-version:
4343
description: 'python version to install'
4444
required: false
45-
default: '3.11.8'
45+
default: '3.12.3'
4646
pg-version:
4747
description: 'PostgreSQL version to use'
4848
default: '14'
@@ -83,6 +83,7 @@ runs:
8383
### pytest configuration ###
8484
echo "PY_COLORS=1" >> "$GITHUB_ENV"
8585
echo "PYTEST_ADDOPTS=--reruns=5 --durations=10 --fail-slow=60s" >> $GITHUB_ENV
86+
echo "COVERAGE_CORE=sysmon" >> "$GITHUB_ENV"
8687
8788
### pytest-sentry configuration ###
8889
if [ "$GITHUB_REPOSITORY" = "getsentry/sentry" ]; then

.github/workflows/backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
207207
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
208208
with:
209-
python-version: 3.11.8
209+
python-version: 3.12.3
210210
cache-dependency-path: requirements-dev-frozen.txt
211211
install-cmd: python3 -m tools.hack_pip && pip install -q --constraint requirements-dev-frozen.txt pip-tools
212212
- name: check requirements
@@ -299,7 +299,7 @@ jobs:
299299

300300
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
301301
with:
302-
python-version: 3.11.8
302+
python-version: 3.12.3
303303
cache-dependency-path: requirements-dev-frozen.txt
304304
install-cmd: python3 -m tools.hack_pip && pip install -r requirements-dev-frozen.txt
305305

.github/workflows/development-environment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3434
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
3535
with:
36-
python-version: 3.11.8
36+
python-version: 3.12.3
3737
cache-dependency-path: |
3838
requirements-dev.txt
3939
requirements-dev-frozen.txt
@@ -52,7 +52,7 @@ jobs:
5252
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5353
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
5454
with:
55-
python-version: 3.11.8
55+
python-version: 3.12.3
5656
cache-dependency-path: |
5757
requirements-dev.txt
5858
requirements-dev-frozen.txt

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
5757
with:
58-
python-version: 3.11.8
58+
python-version: 3.12.3
5959
cache-dependency-path: |
6060
requirements-dev.txt
6161
requirements-dev-frozen.txt

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

Lines changed: 1 addition & 1 deletion
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.11.3
16+
python-version: 3.12.3
1717

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

.github/workflows/self-hosted.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
3030
with:
31-
python-version: 3.11.6
31+
python-version: 3.12.3
3232
cache-dependency-path: requirements-dev-frozen.txt
3333
install-cmd: python3 -m tools.hack_pip
3434

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.8
1+
3.12.3

devenv/config.ini

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[venv.sentry]
2-
python = 3.11.8
2+
python = 3.12.3
33
path = .venv
44
requirements = requirements-dev.txt
55
editable =
@@ -8,7 +8,7 @@ editable =
88
# bins =
99

1010
[venv.getsentry]
11-
python = 3.11.8
11+
python = 3.12.3
1212
# technically these are conflicting paths but getsentry is special
1313
# and would rather keep devenv config symlinked
1414
path = .venv
@@ -17,15 +17,15 @@ editable = .
1717
# but we'll just install it during sync as it's rarely populated
1818
requirements = sentry-requirements-dev-frozen.txt
1919

20-
[python3.11.8]
21-
darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-x86_64-apple-darwin-install_only.tar.gz
22-
darwin_x86_64_sha256 = 097f467b0c36706bfec13f199a2eaf924e668f70c6e2bd1f1366806962f7e86e
23-
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-aarch64-apple-darwin-install_only.tar.gz
24-
darwin_arm64_sha256 = 389a51139f5abe071a0d70091ca5df3e7a3dfcfcbe3e0ba6ad85fb4c5638421e
25-
linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-x86_64-unknown-linux-gnu-install_only.tar.gz
26-
linux_x86_64_sha256 = 94e13d0e5ad417035b80580f3e893a72e094b0900d5d64e7e34ab08e95439987
27-
linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-aarch64-unknown-linux-gnu-install_only.tar.gz
28-
linux_arm64_sha256 = 389b9005fb78dd5a6f68df5ea45ab7b30d9a4b3222af96999e94fd20d4ad0c6a
20+
[python3.12.3]
21+
darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
22+
darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
23+
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
24+
darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
25+
linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
26+
linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
27+
linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
28+
linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d
2929

3030
[colima]
3131
darwin_x86_64 = https://github.com/abiosoft/colima/releases/download/v0.6.6/colima-Darwin-x86_64
@@ -41,12 +41,12 @@ version = v0.6.6
4141

4242
# kept here only for compatibility with older `devenv`
4343
[python]
44-
version = 3.11.8
45-
darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-x86_64-apple-darwin-install_only.tar.gz
46-
darwin_x86_64_sha256 = 097f467b0c36706bfec13f199a2eaf924e668f70c6e2bd1f1366806962f7e86e
47-
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-aarch64-apple-darwin-install_only.tar.gz
48-
darwin_arm64_sha256 = 389a51139f5abe071a0d70091ca5df3e7a3dfcfcbe3e0ba6ad85fb4c5638421e
49-
linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-x86_64-unknown-linux-gnu-install_only.tar.gz
50-
linux_x86_64_sha256 = 94e13d0e5ad417035b80580f3e893a72e094b0900d5d64e7e34ab08e95439987
51-
linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240224/cpython-3.11.8+20240224-aarch64-unknown-linux-gnu-install_only.tar.gz
52-
linux_arm64_sha256 = 389b9005fb78dd5a6f68df5ea45ab7b30d9a4b3222af96999e94fd20d4ad0c6a
44+
version = 3.12.3
45+
darwin_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-apple-darwin-install_only.tar.gz
46+
darwin_x86_64_sha256 = c37a22fca8f57d4471e3708de6d13097668c5f160067f264bb2b18f524c890c8
47+
darwin_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-apple-darwin-install_only.tar.gz
48+
darwin_arm64_sha256 = ccc40e5af329ef2af81350db2a88bbd6c17b56676e82d62048c15d548401519e
49+
linux_x86_64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-x86_64-unknown-linux-gnu-install_only.tar.gz
50+
linux_x86_64_sha256 = a73ba777b5d55ca89edef709e6b8521e3f3d4289581f174c8699adfb608d09d6
51+
linux_arm64 = https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz
52+
linux_arm64_sha256 = ec8126de97945e629cca9aedc80a29c4ae2992c9d69f2655e27ae73906ba187d

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ filterwarnings = [
3333
# this warning in protobuf causes a segfault in 3.12+ protocolbuffers/protobuf#15077
3434
"ignore:Type google\\._upb.*",
3535

36+
# TODO: we should fix these, but for now there's a lot
37+
"ignore:datetime.datetime.utcfromtimestamp\\(\\) is deprecated.*",
38+
"ignore:datetime.datetime.utcnow\\(\\) is deprecated.*",
39+
3640
# The following warning filters are for pytest only.
3741
"ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
3842

@@ -42,7 +46,7 @@ filterwarnings = [
4246
looponfailroots = ["src", "tests"]
4347

4448
[tool.mypy]
45-
python_version = "3.11"
49+
python_version = "3.12"
4650
mypy_path = ["fixtures/stubs-for-mypy"]
4751
plugins = [
4852
"pydantic.mypy",

requirements-dev-frozen.txt

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

0 commit comments

Comments
 (0)