Skip to content

Commit badd706

Browse files
committed
# Conflicts: # .github/workflows/main.yml # docs/conf.py
2 parents a86428c + b4f0ae6 commit badd706

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ jobs:
1616
distutils:
1717
- local
1818
python:
19-
- 3.7-dev
20-
- 3.10-dev
19+
- "3.7"
20+
- "3.10"
2121
# disabled due to #3365
22-
# - 3.11-dev
23-
- pypy-3.7
22+
# - "3.11"
23+
# Workaround for actions/setup-python#508
24+
dev:
25+
- -dev
2426
platform:
2527
- ubuntu-latest
2628
- macos-latest
2729
- windows-latest
2830
include:
31+
- python: pypy3.9
32+
platform: ubuntu-latest
2933
- platform: ubuntu-latest
3034
python: "3.10"
3135
distutils: stdlib
@@ -38,7 +42,7 @@ jobs:
3842
- name: Setup Python
3943
uses: actions/setup-python@v4
4044
with:
41-
python-version: ${{ matrix.python }}
45+
python-version: ${{ matrix.python }}${{ matrix.dev }}
4246
- uses: actions/cache@v3
4347
id: cache
4448
with:
@@ -149,7 +153,7 @@ jobs:
149153
- name: Setup Python
150154
uses: actions/setup-python@v4
151155
with:
152-
python-version: "3.11-dev"
156+
python-version: 3.11-dev
153157
- name: Install tox
154158
run: |
155159
python -m pip install tox

docs/conf.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
extensions = [
5+
'sphinx.ext.autodoc',
6+
'jaraco.packaging.sphinx',
7+
]
28

39
master_doc = "index"
410

11+
# Link dates and other references in the changelog
12+
extensions += ['rst.linker']
513
link_files = {
614
'../CHANGES.rst': dict(
715
using=dict(
@@ -81,7 +89,7 @@
8189
),
8290
}
8391

84-
# Be strict about any broken references:
92+
# Be strict about any broken references
8593
nitpicky = True
8694

8795
# Include Python intersphinx mapping to prevent failures
@@ -91,6 +99,9 @@
9199
'python': ('https://docs.python.org/3', None),
92100
}
93101

102+
# Preserve authored syntax for defaults
103+
autodoc_preserve_defaults = True
104+
94105
intersphinx_mapping.update({
95106
'pip': ('https://pip.pypa.io/en/latest', None),
96107
'build': ('https://pypa-build.readthedocs.io/en/latest', None),

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ testing-integration =
8787

8888
docs =
8989
# upstream
90-
sphinx
90+
sphinx >= 3.5
9191
jaraco.packaging >= 9
9292
rst.linker >= 1.9
9393
jaraco.tidelift >= 1.4

0 commit comments

Comments
 (0)