Skip to content

Commit 0e94780

Browse files
authored
Add support for Python 3.12 (#1680)
1 parent 82418c0 commit 0e94780

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "3.11"
15+
python-version: "3.12"
1616
- name: Install dependencies
1717
run: |
1818
python3 -m pip install setuptools wheel twine
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Python
3333
uses: actions/setup-python@v4
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.12"
3636
- name: Install dependencies
3737
run: |
3838
python3 -m pip install nox
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Python
4848
uses: actions/setup-python@v4
4949
with:
50-
python-version: "3.11"
50+
python-version: "3.12"
5151
- name: Install dependencies
5252
run: |
5353
python3 -m pip install nox
@@ -66,6 +66,7 @@ jobs:
6666
"3.9",
6767
"3.10",
6868
"3.11",
69+
"3.12",
6970
]
7071
es-version: [8.0.0, 8.9.0]
7172

@@ -82,7 +83,7 @@ jobs:
8283
with:
8384
python-version: ${{ matrix.python-version }}
8485
- name: Set up Python for Nox
85-
if: matrix.python-version != '3.11'
86+
if: matrix.python-version != '3.12'
8687
uses: actions/setup-python@v4
8788
with:
8889
python-version: 3
@@ -93,4 +94,4 @@ jobs:
9394
run: |
9495
nox -rs test-${{ matrix.python-version }}
9596
env:
96-
WAIT_FOR_ES: "1"
97+
WAIT_FOR_ES: "1"

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3"
6+
python: "3.12"
77

88
python:
99
install:

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"3.9",
3636
"3.10",
3737
"3.11",
38+
"3.12",
3839
]
3940
)
4041
def test(session):
@@ -52,7 +53,7 @@ def test(session):
5253
session.run("pytest", *argv)
5354

5455

55-
@nox.session()
56+
@nox.session(python="3.12")
5657
def format(session):
5758
session.install("black~=23.0", "isort")
5859
session.run("black", "--target-version=py37", *SOURCE_FILES)
@@ -62,7 +63,7 @@ def format(session):
6263
lint(session)
6364

6465

65-
@nox.session
66+
@nox.session(python="3.12")
6667
def lint(session):
6768
session.install("flake8", "black~=23.0", "isort")
6869
session.run("black", "--check", "--target-version=py37", *SOURCE_FILES)

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ filterwarnings =
1313
# https://github.com/elastic/elasticsearch-py/issues/2181#issuecomment-1490932964
1414
ignore:The 'body' parameter is deprecated .*:DeprecationWarning
1515
ignore:Legacy index templates are deprecated in favor of composable templates.:elasticsearch.exceptions.ElasticsearchWarning
16+
ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version..*:DeprecationWarning

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"Programming Language :: Python :: 3.9",
6969
"Programming Language :: Python :: 3.10",
7070
"Programming Language :: Python :: 3.11",
71+
"Programming Language :: Python :: 3.12",
7172
"Programming Language :: Python :: Implementation :: CPython",
7273
"Programming Language :: Python :: Implementation :: PyPy",
7374
],

0 commit comments

Comments
 (0)