Skip to content

Commit

Permalink
Merge pull request #10352 from AA-Turner/sphinx-docs-build
Browse files Browse the repository at this point in the history
Don't use deprecated `setup.py build_sphinx`
  • Loading branch information
tk0miya committed Apr 17, 2022
2 parents 39311e9 + 26e00bd commit eff6930
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ def linkify_issues_in_changelog(app, docname, source):
# this path trickery is needed because this script can
# be invoked with different working directories:
# * running make in docs/
# * running python setup.py build_sphinx in the repo root dir
# * running tox -e docs in the repo root dir

with open(changelog_path) as f:
with open(changelog_path, encoding="utf-8") as f:
changelog = f.read()

def linkify(match):
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ tag_date = true
release = egg_info -Db ''
upload = upload --sign --identity=36580288

[build_sphinx]
warning-is-error = 1

[flake8]
max-line-length = 95
ignore = E116,E241,E251,E741,W504,I101
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ description =
extras =
docs
commands =
python setup.py build_sphinx {posargs}
python -m sphinx -M html ./doc ./build/sphinx -W

[testenv:docslint]
basepython = python3
Expand Down

0 comments on commit eff6930

Please sign in to comment.