Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update python requirements according to NEP 29 #741

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

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 }}

Expand All @@ -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/[email protected]
with:
name: ebp-sbt-pytests-py3.7
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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
Expand Down
Loading