Skip to content

Commit

Permalink
Release notes in PR builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Oct 25, 2020
1 parent 4381620 commit 27cf0ee
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hypothesis-python/docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on `PyPI <https://pypi.org/project/hypothesis/>`__.
Hypothesis 5.x
==============

.. only:: has_release_file

--------------------
Current pull request
--------------------

.. include:: ../RELEASE.rst

.. _v5.38.0:

-------------------
Expand Down
7 changes: 7 additions & 0 deletions hypothesis-python/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"hoverxref.extension",
"sphinx_selective_exclude.eager_only",
]

templates_path = ["_templates"]
Expand All @@ -53,6 +54,12 @@
version = _d["__version__"]
release = _d["__version__"]


def setup(app):
if os.path.isfile(os.path.join(os.path.dirname(__file__), "..", "RELEASE.rst")):
app.tags.add("has_release_file")


language = None

exclude_patterns = ["_build"]
Expand Down
1 change: 1 addition & 0 deletions requirements/tools.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ restructuredtext-lint
sphinx
sphinx-hoverxref
sphinx-rtd-theme
sphinx-selective-exclude
toml
tox
twine
1 change: 1 addition & 0 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ snowballstemmer==2.0.0 # via pydocstyle, sphinx
sortedcontainers==2.2.2 # via hypothesis (hypothesis-python/setup.py)
sphinx-hoverxref==0.5b1 # via -r requirements/tools.in
sphinx-rtd-theme==0.5.0 # via -r requirements/tools.in
sphinx-selective-exclude==1.0.3 # via -r requirements/tools.in
sphinx==3.2.1 # via -r requirements/tools.in, sphinx-rtd-theme
sphinxcontrib-applehelp==1.0.2 # via sphinx
sphinxcontrib-devhelp==1.0.2 # via sphinx
Expand Down

0 comments on commit 27cf0ee

Please sign in to comment.