Skip to content

Commit 664e714

Browse files
Suport Python 3.11 (#438)
1 parent 4c74647 commit 664e714

File tree

2 files changed

+2
-39
lines changed

2 files changed

+2
-39
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [Ubuntu]
15-
python-version: ["3.7", "3.8", "3.9", "3.10"]
15+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
1616
sphinx-version:
1717
["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
1818
steps:
@@ -61,44 +61,6 @@ jobs:
6161
make -C doc html SPHINXOPTS="-nT"
6262
make -C doc latexpdf SPHINXOPTS="-nT"
6363
64-
base:
65-
runs-on: ${{ matrix.os }}-latest
66-
strategy:
67-
matrix:
68-
os: [ubuntu, macos, windows]
69-
python-version: ["3.11-dev"]
70-
sphinx-version:
71-
["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
72-
steps:
73-
- uses: actions/checkout@v3
74-
75-
- name: Python setup
76-
uses: actions/setup-python@v4
77-
with:
78-
python-version: ${{ matrix.python-version }}
79-
80-
- name: Setup environment
81-
run: |
82-
python -m pip install --upgrade pip wheel setuptools
83-
python -m pip install pytest pytest-cov
84-
python -m pip install ${{ matrix.sphinx-version }}
85-
python -m pip list
86-
87-
- name: Install
88-
run: |
89-
python -m pip install .
90-
pip list
91-
92-
- name: Run test suite
93-
run: pytest -v --pyargs numpydoc
94-
95-
- name: Make sure CLI works
96-
run: |
97-
python -m numpydoc numpydoc.tests.test_main._capture_stdout
98-
echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
99-
python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
100-
echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
101-
10264
prerelease:
10365
runs-on: ${{ matrix.os }}-latest
10466
strategy:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def read(fname):
4646
"Programming Language :: Python :: 3.8",
4747
"Programming Language :: Python :: 3.9",
4848
"Programming Language :: Python :: 3.10",
49+
"Programming Language :: Python :: 3.11",
4950
],
5051
keywords="sphinx numpy",
5152
author="Pauli Virtanen and others",

0 commit comments

Comments
 (0)