Skip to content

Commit 087dd00

Browse files
Merge pull request #84 from PyCalendar/fix/sphinx-apidoc-options-python-314
Resolve SPHINX_APIDOC_OPTIONS, the niquests warning, and add Python 3.14 support
2 parents 87ee429 + df0db3e commit 087dd00

22 files changed

Lines changed: 94 additions & 584 deletions

‎.github/workflows/tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
strategy:
8383
fail-fast: false
8484
matrix:
85-
python-version: ["3.10", "3.11", "3.12", "3.13"]
85+
python-version: ["3.11", "3.12", "3.13", "3.14"]
8686

8787
steps:
8888
- name: Checkout

‎Makefile‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ SPHINXAUTOBUILD = "$(realpath .venv/bin/sphinx-autobuild)"
1515
SPHINXBUILD = "$(realpath .venv/bin/sphinx-build)"
1616
SPHINXAPIDOC = "$(realpath .venv/bin/sphinx-apidoc)"
1717
TOWNCRIERPATH = "$(realpath .venv/bin/towncrier)"
18-
# TODO: determine why sphinx-apidoc ignores this environment variable
18+
# sphinx-apidoc's own SPHINX_APIDOC_OPTIONS env var is never set as a real
19+
# shell variable here, so it's passed explicitly via --automodule-options
20+
# on the apidoc target below instead.
1921
SPHINX_APIDOC_OPTIONS = ignore-module-all,members,show-inheritance,undoc-members
2022
DOCS_DIR = ./docs/
2123
BUILDDIR = ../_build
@@ -27,7 +29,7 @@ ALLSPHINXOPTS = -W -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS)
2729
VALEFILES := $(shell find $(DOCS_DIR) -type f -name "*.rst" -print) # Also add `src` for docstrings.
2830
VALEOPTS ?=
2931
ZIZMOROPTS ?=
30-
PYTHONVERSION = >=3.10,<3.15
32+
PYTHONVERSION = >=3.11,<3.15
3133

3234
# Add the following 'help' target to your Makefile
3335
# And add help text after each target name starting with '\#\#'
@@ -75,6 +77,7 @@ apidoc: .venv ## Build .rst stub file pages for API reference documentation
7577
--remove-old \
7678
--separate \
7779
--module-first \
80+
--automodule-options=$(SPHINX_APIDOC_OPTIONS) \
7881
-o reference/api \
7982
$(SOURCE) \
8083
$(SOURCE)/tests*

‎docs/conf.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ def _drop_private_bases(app, name, obj, options, bases):
196196
base was private, so the "Bases:" line never renders empty.
197197
"""
198198
kept = [
199-
base
200-
for base in bases
201-
if not (isinstance(base, str) and _PRIVATE_BASE_RE.fullmatch(base))
199+
base for base in bases if not (isinstance(base, str) and _PRIVATE_BASE_RE.fullmatch(base))
202200
]
203201
bases[:] = kept or [":py:class:`object`"]
204202

‎docs/reference/api/calendaring_jmap.async_client.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.async\_client module
55
======================================
66

77
.. automodule:: calendaring_jmap.async_client
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.client.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.client module
55
===============================
66

77
.. automodule:: calendaring_jmap.client
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.constants.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.constants module
55
==================================
66

77
.. automodule:: calendaring_jmap.constants
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.convert.ical_to_jscal.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.convert.ical\_to\_jscal module
55
================================================
66

77
.. automodule:: calendaring_jmap.convert.ical_to_jscal
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.convert.jscal_to_ical.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.convert.jscal\_to\_ical module
55
================================================
66

77
.. automodule:: calendaring_jmap.convert.jscal_to_ical
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.error.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.error module
55
==============================
66

77
.. automodule:: calendaring_jmap.error
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

‎docs/reference/api/calendaring_jmap.objects.attachment.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ calendaring\_jmap.objects.attachment module
55
===========================================
66

77
.. automodule:: calendaring_jmap.objects.attachment
8+
:ignore-module-all:
89
:members:
910
:show-inheritance:
1011
:undoc-members:

0 commit comments

Comments
 (0)