Skip to content

Commit

Permalink
Add testing for Py 3.13, Sphinx 8, drop Sphinx 4, py 3.7 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Nov 21, 2024
1 parent e960e39 commit 2da7219
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 22 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
create:
tags:
- '*'
push:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9
- name: Black
run: |
pip install black
Expand All @@ -25,20 +20,22 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.10']
sphinx-version: ['4.*', '5.*', '6.*', '7.*']
include:
- python-version: '3.7'
sphinx-version: '3'
- python-version: '3.7'
sphinx-version: '2'
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy3.10']
sphinx-version: ['5.*', '6.*', '7.*', '8.*']
exclude:
- python-version: '3.8'
sphinx-version: '8.*'
- python-version: '3.9'
sphinx-version: '8.*'
- python-version: '3.13'
sphinx-version: '5.*'
name: "Test Extension - Python(${{ matrix.python-version }}), Sphinx(${{ matrix.sphinx-version }})"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -63,7 +60,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
url="https://github.com/wpilibsuite/sphinxext-remoteliteralinclude",
install_requires=[
"sphinx>=4.3;python_version>='3.10'",
"jinja2<3;python_version<'3.8'",
"MarkupSafe<=2.0.1;python_version<'3.8'",
"six",
],
packages=["sphinxext"],
Expand All @@ -42,17 +40,18 @@
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python",
"Topic :: Documentation :: Sphinx",
"Topic :: Documentation",
"Topic :: Software Development :: Documentation",
"Topic :: Text Processing",
"Topic :: Utilities",
],
python_requires=">=3.6",
python_requires=">=3.8",
)

0 comments on commit 2da7219

Please sign in to comment.