Skip to content

Commit c3e9447

Browse files
committed
Fix docs build on newer python versions
1 parent a4c15a2 commit c3e9447

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You may run the tests via::
1515

1616
Documentation pull requests welcome. The Sphinx documentation can be compiled via::
1717

18-
uv run sphinx-build -b html docs docs/_build/html
18+
uv run sphinx-build -W -b doctest -b html docs docs/_build/html
1919

2020
Bug reports welcome, even more so if they include a correct patch. Much
2121
more so if you start your patch by adding a failing unit test, and correct

docs/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pathlib
33
import sys
44

5-
from pkg_resources import get_distribution
5+
from django_select2 import __version__ as release
66

77
BASE_DIR = pathlib.Path(__file__).resolve(strict=True).parent.parent
88

@@ -20,12 +20,9 @@
2020

2121

2222
project = "Django-Select2"
23-
author = "Johannes Hoppe"
24-
copyright = "2017-2020, Johannes Hoppe"
25-
release = get_distribution("django_select2").version
23+
author = "Johannes Maron"
2624
version = ".".join(release.split(".")[:2])
2725

28-
2926
master_doc = "index" # default in Sphinx v2
3027

3128

0 commit comments

Comments
 (0)