diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst deleted file mode 100644 index 2a2eaaddc6..0000000000 --- a/hypothesis-python/RELEASE.rst +++ /dev/null @@ -1,6 +0,0 @@ -RELEASE_TYPE: minor - -This release deprecates use of :func:`~hypothesis.assume` and ``reject()`` -outside of property-based tests, because these functions work by raising a -special exception (:issue:`3743`). It also fixes some type annotations -(:issue:`3753`). diff --git a/hypothesis-python/docs/changes.rst b/hypothesis-python/docs/changes.rst index 0ce085c287..f6f23370fa 100644 --- a/hypothesis-python/docs/changes.rst +++ b/hypothesis-python/docs/changes.rst @@ -18,6 +18,17 @@ Hypothesis 6.x .. include:: ../RELEASE.rst +.. _v6.87.0: + +------------------- +6.87.0 - 2023-09-25 +------------------- + +This release deprecates use of :func:`~hypothesis.assume` and ``reject()`` +outside of property-based tests, because these functions work by raising a +special exception (:issue:`3743`). It also fixes some type annotations +(:issue:`3753`). + .. _v6.86.2: ------------------- diff --git a/hypothesis-python/src/hypothesis/control.py b/hypothesis-python/src/hypothesis/control.py index 96f6d3c432..eb1768c565 100644 --- a/hypothesis-python/src/hypothesis/control.py +++ b/hypothesis-python/src/hypothesis/control.py @@ -28,7 +28,7 @@ def reject() -> NoReturn: if _current_build_context.value is None: note_deprecation( "Using `reject` outside a property-based test is deprecated", - since="RELEASEDAY", + since="2023-09-25", has_codemod=False, ) raise UnsatisfiedAssumption @@ -44,7 +44,7 @@ def assume(condition: object) -> bool: if _current_build_context.value is None: note_deprecation( "Using `assume` outside a property-based test is deprecated", - since="RELEASEDAY", + since="2023-09-25", has_codemod=False, ) if not condition: diff --git a/hypothesis-python/src/hypothesis/version.py b/hypothesis-python/src/hypothesis/version.py index d817c17fa6..e05257cc75 100644 --- a/hypothesis-python/src/hypothesis/version.py +++ b/hypothesis-python/src/hypothesis/version.py @@ -8,5 +8,5 @@ # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. -__version_info__ = (6, 86, 2) +__version_info__ = (6, 87, 0) __version__ = ".".join(map(str, __version_info__))