Skip to content

Commit c5b0244

Browse files
authored
Add 3.12 to tox (#3616)
1 parent becbe89 commit c5b0244

File tree

26 files changed

+49
-24
lines changed

26 files changed

+49
-24
lines changed

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
jobs:
88
sdk-benchmarks:
99
env:
10-
py311: "3.11"
10+
py312: "3.12"
1111
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-sdk-${{ matrix.os }}
1212
runs-on: self-hosted
1313
strategy:
1414
# Ensures the entire test matrix is run, even if one permutation fails
1515
fail-fast: false
1616
matrix:
17-
python-version: [py311]
17+
python-version: [py312]
1818
os: [ubuntu-20.04, windows-2019]
1919
steps:
2020
- name: Checkout Core Repo @ SHA - ${{ github.sha }}

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ jobs:
3131
py39: 3.9
3232
py310: "3.10"
3333
py311: "3.11"
34+
py312: "3.12"
3435
pypy3: pypy-3.8
3536
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{
3637
matrix.os }}
3738
runs-on: ${{ matrix.os }}
3839
strategy:
3940
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
4041
matrix:
41-
python-version: [py38, py39, py310, py311, pypy3]
42+
python-version: [py38, py39, py310, py311, py312, pypy3]
4243
package:
4344
- "api"
4445
- "sdk"

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repos:
33
rev: 24.3.0
44
hooks:
55
- id: black
6-
language_version: python3.11
6+
language_version: python3.12
77
- repo: https://github.com/pycqa/isort
88
rev: 5.12.0
99
hooks:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
- Add Python 3.12 to tox
11+
([#3616](https://github.com/open-telemetry/opentelemetry-python/pull/3616))
12+
1013
## Version 1.25.0/0.46b0 (2024-05-30)
1114

1215
- Fix class BoundedAttributes to have RLock rather than Lock

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can run `tox` with the following arguments:
5454
under multiple Python versions
5555
- `tox -e docs` to regenerate the API docs
5656
- `tox -e opentelemetry-api` and `tox -e opentelemetry-sdk` to run the API and SDK unit tests
57-
- `tox -e py311-opentelemetry-api` to e.g. run the API unit tests under a specific
57+
- `tox -e py312-opentelemetry-api` to e.g. run the API unit tests under a specific
5858
Python version
5959
- `tox -e spellcheck` to run a spellcheck on all the code
6060
- `tox -e lint` to run lint checks on all code

docs/examples/error_handler/error_handler_0/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.9",
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2526
]
2627
dependencies = [
2728
"opentelemetry-sdk ~= 1.3",

docs/examples/error_handler/error_handler_1/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ classifiers = [
2222
"Programming Language :: Python :: 3.9",
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
25+
"Programming Language :: Python :: 3.12",
2526
]
2627
dependencies = [
2728
"opentelemetry-sdk ~= 1.3",

exporter/opentelemetry-exporter-opencensus/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
2728
"Typing :: Typed",
2829
]
2930
dependencies = [

exporter/opentelemetry-exporter-otlp-proto-common/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
2728
]
2829
dependencies = [
2930
"opentelemetry-proto == 1.26.0.dev",

exporter/opentelemetry-exporter-otlp-proto-grpc/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.9",
2525
"Programming Language :: Python :: 3.10",
2626
"Programming Language :: Python :: 3.11",
27+
"Programming Language :: Python :: 3.12",
2728
]
2829
dependencies = [
2930
"Deprecated >= 1.2.6",

0 commit comments

Comments
 (0)