Skip to content

Commit badff28

Browse files
committed
# Conflicts: # docs/conf.py
2 parents 53e42d6 + b4f0ae6 commit badff28

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,19 @@ jobs:
77
strategy:
88
matrix:
99
python:
10-
- 3.7
11-
- '3.10'
12-
- '3.11'
10+
- "3.7"
11+
- "3.10"
12+
- "3.11"
13+
# Workaround for actions/setup-python#508
14+
dev:
15+
- -dev
1316
platform:
1417
- ubuntu-latest
1518
- macos-latest
1619
- windows-latest
20+
include:
21+
- python: pypy3.9
22+
platform: ubuntu-latest
1723
runs-on: ${{ matrix.platform }}
1824
steps:
1925
- uses: actions/checkout@v3
@@ -24,7 +30,7 @@ jobs:
2430
- name: Setup Python
2531
uses: actions/setup-python@v4
2632
with:
27-
python-version: ${{ matrix.python }}-dev
33+
python-version: ${{ matrix.python }}${{ matrix.dev }}
2834
- name: Install tox
2935
run: |
3036
python -m pip install tox
@@ -74,7 +80,7 @@ jobs:
7480
- name: Setup Python
7581
uses: actions/setup-python@v4
7682
with:
77-
python-version: "3.11-dev"
83+
python-version: 3.11-dev
7884
- name: Install tox
7985
run: |
8086
python -m pip install tox

docs/conf.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#!/usr/bin/env python3
22

3-
extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
3+
extensions = [
4+
'sphinx.ext.autodoc',
5+
'jaraco.packaging.sphinx',
6+
]
47

58
master_doc = "index"
69

10+
# Link dates and other references in the changelog
11+
extensions += ['rst.linker']
712
link_files = {
813
'../CHANGES.rst': dict(
914
using=dict(GH='https://github.com'),
@@ -28,7 +33,7 @@
2833
)
2934
}
3035

31-
# Be strict about any broken references:
36+
# Be strict about any broken references
3237
nitpicky = True
3338

3439
# Include Python intersphinx mapping to prevent failures
@@ -38,6 +43,11 @@
3843
'python': ('https://docs.python.org/3', None),
3944
}
4045

46+
# Preserve authored syntax for defaults
47+
autodoc_preserve_defaults = True
48+
49+
extensions += ['jaraco.tidelift']
50+
4151
intersphinx_mapping.update(
4252
importlib_resources=(
4353
'https://importlib-resources.readthedocs.io/en/latest/',
@@ -51,5 +61,3 @@
5161
('py:class', 'importlib_metadata.SelectableGroups'),
5262
('py:class', 'importlib_metadata._meta._T'),
5363
]
54-
55-
extensions += ['jaraco.tidelift']

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ testing =
5454

5555
docs =
5656
# upstream
57-
sphinx
57+
sphinx >= 3.5
5858
jaraco.packaging >= 9
5959
rst.linker >= 1.9
6060
jaraco.tidelift >= 1.4

0 commit comments

Comments
 (0)