Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Python 3 to 3.12 #18212

Merged
merged 30 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2d2fcc3
bump py version to 3.12
Kyle-Neale Aug 6, 2024
f09a39a
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Aug 6, 2024
1446c5d
update dbm dev container
Kyle-Neale Aug 7, 2024
12e3e92
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Aug 7, 2024
8fd0064
update builders and build deps
Kyle-Neale Aug 27, 2024
a8486d1
fix merge conflicts
Kyle-Neale Aug 29, 2024
f2c3288
fix python string
Kyle-Neale Aug 29, 2024
ec48acf
Build lxml dependencies for linux x64 (#18467)
alopezz Aug 30, 2024
802c53b
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Aug 30, 2024
29b0797
fix rmq version
iliakur Aug 30, 2024
00057c0
fix gunicorn tests
iliakur Aug 30, 2024
beac1fe
Merge branch 'master' and resolve conflict
iliakur Sep 2, 2024
dd2d172
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 3, 2024
8252ce8
Fix lock file generation
alopezz Aug 30, 2024
ab77031
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 4, 2024
c3aa177
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 4, 2024
3861b95
comment out if clause to force dep resolution
Kyle-Neale Sep 5, 2024
5d8e87f
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 5, 2024
6775848
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 6, 2024
c83fc3f
bump python to 3.12.6
Kyle-Neale Sep 12, 2024
7d47aa1
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 12, 2024
c12fdb4
fix python on Windows sha
Kyle-Neale Sep 12, 2024
2595d18
remove DD_PYTHON2 unbound variable
Kyle-Neale Sep 12, 2024
d729f53
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 13, 2024
9d6b542
fix merge conflicts
Kyle-Neale Sep 16, 2024
9439b7b
fix hatch errors
Kyle-Neale Sep 16, 2024
2511ab6
remove setup.py files
Kyle-Neale Sep 16, 2024
77b904d
Merge branch 'master' into kyleneale/bump_python_312
Kyle-Neale Sep 17, 2024
6e33ab4
fix CI
Kyle-Neale Sep 17, 2024
28b84b1
revert datadog_checks_test_helper
Kyle-Neale Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This dockerfile is used to build the devcontainer environment.
# more info about vscode devcontainer: https://code.visualstudio.com/docs/devcontainers/containers
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y liblz4-dev libunwind-dev ca-certificates curl gnupg
# Docker and docker-compose installation
RUN install -m 0755 -d /etc/apt/keyrings
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/dbm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This dockerfile is used to build the devcontainer environment.
# more info about vscode devcontainer: https://code.visualstudio.com/docs/devcontainers/containers
FROM mcr.microsoft.com/devcontainers/python:1-3.11-bullseye
FROM mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y liblz4-dev libunwind-dev ca-certificates curl gnupg
# Docker and docker-compose installation
RUN install -m 0755 -d /etc/apt/keyrings
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/dbm/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"privileged": true,
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.11"
"version": "2"
Kyle-Neale marked this conversation as resolved.
Show resolved Hide resolved
}
},
"customizations": {
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// When updating it, modify both the base Dockerfile and the devcontainer.json reference.
// Ref: https://github.com/devcontainers/features/blob/562305d37b97d47331d96306ffc2a0a3cce55e64/src/python/install.sh#L10
"ghcr.io/devcontainers/features/python:1": {
"version": "3.11"
"version": "3.12"
}
},

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-ddev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:

env:
APP_NAME: ddev
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
PYOXIDIZER_VERSION: "0.24.0"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:

env:
PYTHONUNBUFFERED: "1"
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
DIRECT_DEPENDENCY_FILE: agent_requirements.in
# https://reproducible-builds.org/specs/source-date-epoch/
SOURCE_DATE_EPOCH: "1580601600"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache-shared-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
os: [ubuntu-22.04, windows-2022]

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compute-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defaults:
shell: bash

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
MATRIX_SCRIPT: "ddev/src/ddev/utils/scripts/ci_matrix.py"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
cache: 'pip'

- name: Upgrade Python packaging tools
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defaults:
shell: bash

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
CHECK_SCRIPT: "ddev/src/ddev/utils/scripts/check_pr.py"

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Upgrade Python packaging tools
run: pip install --disable-pip-version-check --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- name: Upgrade Python packaging tools
run: pip install --disable-pip-version-check --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-hash-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'

- id: files
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-validations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
runs-on: ubuntu-22.04

env:
PYTHON_VERSION: "3.11"
PYTHON_VERSION: "3.12"
TARGET: ${{ github.event_name == 'pull_request' && 'changed' || '' }}

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ jobs:

env:
FORCE_COLOR: "1"
PYTHON_VERSION: "${{ inputs.python-version || '3.11' }}"
PYTHON_FILTER: "${{ (inputs.test-py2 && !inputs.test-py3) && '2.7' || (!inputs.test-py2 && inputs.test-py3) && (inputs.python-version || '3.11') || '' }}"
PYTHON_VERSION: "${{ inputs.python-version || '3.12' }}"
PYTHON_FILTER: "${{ (inputs.test-py2 && !inputs.test-py3) && '2.7' || (!inputs.test-py2 && inputs.test-py3) && (inputs.python-version || '3.12') || '' }}"
SKIP_ENV_NAME: "${{ (inputs.test-py2 && !inputs.test-py3) && 'py3.*' || (!inputs.test-py2 && inputs.test-py3) && 'py2.*' || '' }}"
# Windows E2E requires Windows containers
DDEV_E2E_AGENT: "${{ inputs.platform == 'windows' && (inputs.agent-image-windows || 'datadog/agent-dev:master-py3-win-servercore') || inputs.agent-image }}"
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/tagger/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use a separate image to build ddev from source so the final image doesn't need git
FROM python:3.11 AS ddev-python
FROM python:3.12 AS ddev-python
COPY . /home
RUN python -m pip install build
RUN python -m build -s ./home/ddev
Expand Down
1 change: 1 addition & 0 deletions active_directory/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion active_directory/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ platforms = [
]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]
2 changes: 1 addition & 1 deletion active_directory/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion active_directory/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def parse_pyproject_array(name):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.active_directory'],
Expand Down
1 change: 1 addition & 0 deletions activemq/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
4 changes: 2 additions & 2 deletions activemq/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["3.11"]
python = ["3.12"]
version = ["2.15.0"]
compose-file = ["artemis.yaml"]

[[envs.default.matrix]]
python = ["3.11"]
python = ["3.12"]
version = ["5.15.9"]
compose-file = ["activemq.yaml"]

Expand Down
2 changes: 1 addition & 1 deletion activemq/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion activemq/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parse_pyproject_array(name):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.activemq'],
Expand Down
1 change: 1 addition & 0 deletions activemq_xml/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion activemq_xml/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]
version = ["5.11.1"]

[envs.default.overrides]
Expand Down
2 changes: 1 addition & 1 deletion activemq_xml/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion activemq_xml/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def parse_pyproject_array(name):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.activemq_xml'],
Expand Down
1 change: 1 addition & 0 deletions aerospike/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion aerospike/hatch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mypy-args = [
]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]
version = ["4", "5.0", "5.3", "5.6"]

[envs.default.overrides]
Expand Down
2 changes: 1 addition & 1 deletion aerospike/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion aerospike/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def parse_pyproject_array(name):
'Topic :: System :: Monitoring',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.aerospike'],
Expand Down
1 change: 1 addition & 0 deletions airflow/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion airflow/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["3.11"]
python = ["3.12"]
version = ["2.1", "2.6"]

[envs.default.overrides]
Expand Down
2 changes: 1 addition & 1 deletion airflow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
1 change: 1 addition & 0 deletions amazon_msk/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion amazon_msk/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]

[envs.default.env-vars]
DDEV_SKIP_GENERIC_TAGS_CHECK = "true"
2 changes: 1 addition & 1 deletion amazon_msk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion amazon_msk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def parse_pyproject_array(name):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.amazon_msk'],
Expand Down
1 change: 1 addition & 0 deletions ambari/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion ambari/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]
2 changes: 1 addition & 1 deletion ambari/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion ambari/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def parse_pyproject_array(name):
'Topic :: System :: Monitoring',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.ambari'],
Expand Down
1 change: 1 addition & 0 deletions apache/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion apache/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["2.7", "3.11"]
python = ["2.7", "3.12"]
version = ["2.4.27"]

[envs.default.overrides]
Expand Down
2 changes: 1 addition & 1 deletion apache/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
2 changes: 1 addition & 1 deletion apache/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def parse_pyproject_array(name):
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
# The package we're going to ship
packages=['datadog_checks.apache'],
Expand Down
1 change: 1 addition & 0 deletions arangodb/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
2 changes: 1 addition & 1 deletion arangodb/hatch.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[env.collectors.datadog-checks]

[[envs.default.matrix]]
python = ["3.11"]
python = ["3.12"]
version = ["3.8"]

[envs.default.overrides]
Expand Down
2 changes: 1 addition & 1 deletion arangodb/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Monitoring",
"Private :: Do Not Upload",
]
Expand Down
1 change: 1 addition & 0 deletions argo_rollouts/changelog.d/18207.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump the python version from 3.11 to 3.12
Loading
Loading