From 83f8d1b9e3499ac7e10ab216fdb946e193fb8407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Wed, 2 Oct 2024 04:40:48 -0700 Subject: [PATCH] MAINT: adding python 3.13 to CI and classifiers (#635) * MAINT: adding python 3.13 to CI and classifiers * TMP: using pandas nightly wheel for python 3.13 * TMP: using pyarrows nightly wheel for python 3.13 --- .github/workflows/tests.yml | 8 +++++++- pyproject.toml | 1 + tox.ini | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 60961efd..b44ad7fe 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] sphinx: [">=5,<9"] # Newest Sphinx (any) myst-parser: [">=1,<3"] # Newest MyST Parser (any) include: @@ -52,10 +52,16 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: pip - name: Install myst-nb with Sphinx ${{ matrix.sphinx }} + shell: bash run: | pip install --upgrade pip + # Temporary: for python 3.13 we need the nightly pyarrow wheels + if [[ ${{ matrix.python-version }} == '3.13' ]] ; then + PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pip install --pre pyarrow + fi pip install --upgrade "Sphinx${{ matrix.sphinx }}" "myst-parser${{ matrix.myst-parser }}" -e .[testing] - name: Run pytest diff --git a/pyproject.toml b/pyproject.toml index 8db6ec81..6a62fa0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,6 +20,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", diff --git a/tox.ini b/tox.ini index 58f141a4..ed46aa30 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ envlist = py311-sphinx7 [testenv] usedevelop = true -[testenv:py{39,310,311,312}-sphinx{5,6,7,8}] +[testenv:py{39,310,311,312,313}-sphinx{5,6,7,8}] extras = testing deps = sphinx5: sphinx>=5,<6