From 249754e7a050083ecaa3cb844a90dcdfc93d9b8d Mon Sep 17 00:00:00 2001 From: Anton Akhmerov Date: Sat, 3 Jun 2023 13:38:49 +0200 Subject: [PATCH] update python requirements according to NEP 29 --- .github/workflows/publish.yml | 4 ++-- .github/workflows/tests.yml | 12 ++++++------ pyproject.toml | 2 +- tox.ini | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86c9a67f..296971f9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,10 +16,10 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Build package run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9d3f9019..5de740a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,24 +19,24 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - uses: pre-commit/action@v3.0.0 tests: strategy: matrix: os: [ubuntu-latest] - python-version: [3.7, 3.8, 3.9] + python-version: ["3.9", "3.10", "3.11"] # Only test the latest major release of Sphinx because otherwise we need to # keep multiple versions of regression tests on file and this creates lots of # noise in the tests. sphinx: [">=6,<7"] include: - os: windows-latest - python-version: 3.9 + python-version: 3.11 sphinx: ">=6,<7" - os: macos-latest - python-version: 3.9 + python-version: 3.11 sphinx: ">=6,<7" runs-on: ${{ matrix.os }} @@ -60,7 +60,7 @@ jobs: # Only upload to codecov on pull requests so that we don't trigger rate limit blocks - name: Upload to Codecov - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.7 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request' + if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 && github.repository == 'executablebooks/sphinx-book-theme' && github.event_name == 'pull_request' uses: codecov/codecov-action@v3.1.1 with: name: ebp-sbt-pytests-py3.7 @@ -77,7 +77,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.7' + python-version: '3.9' cache: "pip" cache-dependency-path: "pyproject.toml" - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index 66eff4d0..09197a80 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ description = "A clean book theme for scientific explanations and documentation dynamic = ["version"] readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.9" dependencies = [ "sphinx>=4,<7", "pydata-sphinx-theme>=0.13.3", diff --git a/tox.ini b/tox.ini index 05371885..026da5db 100644 --- a/tox.ini +++ b/tox.ini @@ -11,13 +11,13 @@ # then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete` [tox] -envlist = py39-sphinx6 +envlist = py311-sphinx6 [testenv] usedevelop=true passenv = TERM # To make terminal coloring / other variables pass through -[testenv:py{37,38,39}-pre-commit] +[testenv:py{39,310,311}-pre-commit] extras = code_style commands = pre-commit run {posargs} @@ -43,7 +43,7 @@ deps = commands = stb serve docs --open-browser -[testenv:py{37,38,39}-sphinx{5,6}] +[testenv:py{39,310,311}-sphinx{5,6}] extras = test deps = sphinx5: sphinx>=5,<6