summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-10-04 14:41:16 -0700
committerGitHub <noreply@github.com>2022-10-04 14:41:16 -0700
commit664e7144ece8f0779b18f6282ed7a42e35f130ab (patch)
treeb948479b6a56d64d73d7854dcde9782b6c3fa0b1
parent4c74647afc82a1b352701a52f0f1a33891dbd3ff (diff)
downloadnumpydoc-664e7144ece8f0779b18f6282ed7a42e35f130ab.tar.gz
Suport Python 3.11 (#438)
-rw-r--r--.github/workflows/test.yml40
-rw-r--r--setup.py1
2 files changed, 2 insertions, 39 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6d2befc..eb7fa3e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu]
- python-version: ["3.7", "3.8", "3.9", "3.10"]
+ python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
sphinx-version:
["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
steps:
@@ -61,44 +61,6 @@ jobs:
make -C doc html SPHINXOPTS="-nT"
make -C doc latexpdf SPHINXOPTS="-nT"
- base:
- runs-on: ${{ matrix.os }}-latest
- strategy:
- matrix:
- os: [ubuntu, macos, windows]
- python-version: ["3.11-dev"]
- sphinx-version:
- ["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
- steps:
- - uses: actions/checkout@v3
-
- - name: Python setup
- uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
-
- - name: Setup environment
- run: |
- python -m pip install --upgrade pip wheel setuptools
- python -m pip install pytest pytest-cov
- python -m pip install ${{ matrix.sphinx-version }}
- python -m pip list
-
- - name: Install
- run: |
- python -m pip install .
- pip list
-
- - name: Run test suite
- run: pytest -v --pyargs numpydoc
-
- - name: Make sure CLI works
- run: |
- python -m numpydoc numpydoc.tests.test_main._capture_stdout
- echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
- python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
- echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
-
prerelease:
runs-on: ${{ matrix.os }}-latest
strategy:
diff --git a/setup.py b/setup.py
index e5c13d0..09cb946 100644
--- a/setup.py
+++ b/setup.py
@@ -46,6 +46,7 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
+ "Programming Language :: Python :: 3.11",
],
keywords="sphinx numpy",
author="Pauli Virtanen and others",