Skip to content

Commit

Permalink
Bump version, add datetimes changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed May 12, 2017
1 parent 4ac54d5 commit 78011ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@ You should generally assume that an API is internal unless you have specific
information to the contrary.


------------------
3.9.0 - 2017-05-12
------------------

This is a feature release, adding datetime-related strategies.

- ``extra.datetime.timezones`` allows you to sample pytz timezones from
the Olsen database. Use directly in a recipe for tz-aware datetimes, or
compose with `st.none()` to allow a mix of aware and naive output.

- The new ``dates``, ``times``, ``datetimes``, and ``timedeltas`` strategies
in ``hypothesis.strategies`` are all constrained by objects of their type.
This means that you can generate dates bounded by a single day
(i.e. a single date), or datetimes constrained to the microsecond.

- ``times`` and ``datetimes`` take an optional ``timezones=`` argument, which
defaults to ``none()`` for naive times. You can use our extra strategy
based on pytz, or roll your timezones strategy with dateutil or even the stdlib.

- The old ``dates``, ``times``, and ``datetimes`` strategies in
``hypothesis.extra.datetimes`` are deprecated in favor of the new
strategies, which are more flexible and have no dependencies.

------------------
3.8.3 - 2017-05-09
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/hypothesis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@

from __future__ import division, print_function, absolute_import

__version_info__ = (3, 8, 3)
__version_info__ = (3, 9, 0)
__version__ = '.'.join(map(str, __version_info__))

0 comments on commit 78011ca

Please sign in to comment.