diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18302977b..1aaf0a45f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python3 -m pip install setuptools wheel twine @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python3 -m pip install nox @@ -47,7 +47,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Install dependencies run: | python3 -m pip install nox @@ -66,6 +66,7 @@ jobs: "3.9", "3.10", "3.11", + "3.12", ] es-version: [8.0.0, 8.9.0] @@ -82,7 +83,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Set up Python for Nox - if: matrix.python-version != '3.11' + if: matrix.python-version != '3.12' uses: actions/setup-python@v4 with: python-version: 3 @@ -93,4 +94,4 @@ jobs: run: | nox -rs test-${{ matrix.python-version }} env: - WAIT_FOR_ES: "1" \ No newline at end of file + WAIT_FOR_ES: "1" diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2302702f3..72edf7d82 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3" + python: "3.12" python: install: diff --git a/noxfile.py b/noxfile.py index 5a5880522..da4e6bd61 100644 --- a/noxfile.py +++ b/noxfile.py @@ -35,6 +35,7 @@ "3.9", "3.10", "3.11", + "3.12", ] ) def test(session): @@ -52,7 +53,7 @@ def test(session): session.run("pytest", *argv) -@nox.session() +@nox.session(python="3.12") def format(session): session.install("black~=23.0", "isort") session.run("black", "--target-version=py37", *SOURCE_FILES) @@ -62,7 +63,7 @@ def format(session): lint(session) -@nox.session +@nox.session(python="3.12") def lint(session): session.install("flake8", "black~=23.0", "isort") session.run("black", "--check", "--target-version=py37", *SOURCE_FILES) diff --git a/setup.cfg b/setup.cfg index 673fe8bbc..c306431e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,3 +13,4 @@ filterwarnings = # https://github.com/elastic/elasticsearch-py/issues/2181#issuecomment-1490932964 ignore:The 'body' parameter is deprecated .*:DeprecationWarning ignore:Legacy index templates are deprecated in favor of composable templates.:elasticsearch.exceptions.ElasticsearchWarning + ignore:datetime.datetime.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version..*:DeprecationWarning diff --git a/setup.py b/setup.py index ae3a602ea..fe8caaac1 100644 --- a/setup.py +++ b/setup.py @@ -68,6 +68,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ],