Skip to content

Commit

Permalink
Bump hypothesis-python version to 5.3.0 and update changelog
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
DRMacIver committed Jan 21, 2020
1 parent c25dcbf commit 825c1d5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
12 changes: 0 additions & 12 deletions hypothesis-python/RELEASE.rst

This file was deleted.

17 changes: 17 additions & 0 deletions hypothesis-python/docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ on `PyPI <https://pypi.org/project/hypothesis/>`__.
Hypothesis 5.x
==============

.. _v5.3.0:

------------------
5.3.0 - 2020-01-21
------------------

The standard library :mod:`ipaddress` module is new in Python 3, and this release
adds the new :func:`~hypothesis.strategies.ip_addresses` strategy to generate
:class:`~python:ipaddress.IPv4Address`\ es and/or
:class:`~python:ipaddress.IPv6Address`\ es (depending on the ``v`` and ``network``
arguments).

If you use them in type annotations, :func:`~hypothesis.strategies.from_type` now
has strategies registered for :mod:`ipaddress` address, network, and interface types.

The provisional strategies for IP address strings are therefore deprecated.

.. _v5.2.1:

------------------
Expand Down
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/provisional.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def ip4_addr_strings() -> SearchStrategy[str]:
note_deprecation(
"Use `ip_addresses(v=4).map(str)` instead of `ip4_addr_strings()`; "
"the provisional strategy is less flexible and will be removed.",
since="RELEASEDAY",
since="2020-01-21",
)
return ip_addresses(v=4).map(str)

Expand All @@ -174,6 +174,6 @@ def ip6_addr_strings() -> SearchStrategy[str]:
note_deprecation(
"Use `ip_addresses(v=6).map(str)` instead of `ip6_addr_strings()`; "
"the provisional strategy is less flexible and will be removed.",
since="RELEASEDAY",
since="2020-01-21",
)
return ip_addresses(v=6).map(str)
2 changes: 1 addition & 1 deletion hypothesis-python/src/hypothesis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
#
# END HEADER

__version_info__ = (5, 2, 1)
__version_info__ = (5, 3, 0)
__version__ = ".".join(map(str, __version_info__))

0 comments on commit 825c1d5

Please sign in to comment.