{"action":"created","comment":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/comments/116446039","pull_request_review_id":38058218,"id":116446039,"diff_hunk":"@@ -23,6 +23,33 @@ information to the contrary.\n \n \n ------------------\n+3.9.0 - 2017-05-14\n+------------------\n+\n+This is a feature release, adding datetime-related strategies to the core strategies.\n+\n+``extra.datetime.timezones`` allows you to sample pytz timezones from\n+the Olsen database.  Use directly in a recipe for tz-aware datetimes, or\n+compose with `st.none()` to allow a mix of aware and naive output.\n+\n+The new ``dates``, ``times``, ``datetimes``, and ``timedeltas`` strategies\n+in ``hypothesis.strategies`` are all constrained by objects of their type.\n+This means that you can generate dates bounded by a single day\n+(i.e. a single date), or datetimes constrained to the microsecond.\n+\n+``times`` and ``datetimes`` take an optional ``timezones=`` argument, which\n+defaults to ``none()`` for naive times.  You can use our extra strategy\n+based on pytz, or roll your own timezones strategy with dateutil or even\n+the standard library.\n+\n+The old ``dates``, ``times``, and ``datetimes`` strategies in\n+``hypothesis.extra.datetimes`` are deprecated in favor of the new\n+core strategies, which are more flexible and have no dependencies.\n+\n+The default field mapping for DateTimeField in the Django extra now respects\n+the ``USE_TZ`` setting when choosing a strategy.","path":"docs/changes.rst","position":28,"original_position":28,"commit_id":"65be6dd1a1f68e216c1d7eedbb4feb44946f5252","original_commit_id":"65be6dd1a1f68e216c1d7eedbb4feb44946f5252","user":{"login":"DRMacIver","id":28623,"avatar_url":"https://avatars3.githubusercontent.com/u/28623?v=3","gravatar_id":"","url":"https://api.github.com/users/DRMacIver","html_url":"https://github.com/DRMacIver","followers_url":"https://api.github.com/users/DRMacIver/followers","following_url":"https://api.github.com/users/DRMacIver/following{/other_user}","gists_url":"https://api.github.com/users/DRMacIver/gists{/gist_id}","starred_url":"https://api.github.com/users/DRMacIver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DRMacIver/subscriptions","organizations_url":"https://api.github.com/users/DRMacIver/orgs","repos_url":"https://api.github.com/users/DRMacIver/repos","events_url":"https://api.github.com/users/DRMacIver/events{/privacy}","received_events_url":"https://api.github.com/users/DRMacIver/received_events","type":"User","site_admin":false},"body":"Worth referencing #439 here?\r\n\r\nAlso, I feel like I should ask you to separate this out into its own patch release, but I won't actually insist on it. ","created_at":"2017-05-15T09:25:54Z","updated_at":"2017-05-15T09:38:58Z","html_url":"https://github.com/HypothesisWorks/hypothesis-python/pull/621#discussion_r116446039","pull_request_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621","_links":{"self":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/comments/116446039"},"html":{"href":"https://github.com/HypothesisWorks/hypothesis-python/pull/621#discussion_r116446039"},"pull_request":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621"}}},"pull_request":{"url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621","id":120303718,"html_url":"https://github.com/HypothesisWorks/hypothesis-python/pull/621","diff_url":"https://github.com/HypothesisWorks/hypothesis-python/pull/621.diff","patch_url":"https://github.com/HypothesisWorks/hypothesis-python/pull/621.patch","issue_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/621","number":621,"state":"open","locked":false,"title":"New core strategies: datetimes, dates, times, timedeltas","user":{"login":"Zac-HD","id":12229877,"avatar_url":"https://avatars2.githubusercontent.com/u/12229877?v=3","gravatar_id":"","url":"https://api.github.com/users/Zac-HD","html_url":"https://github.com/Zac-HD","followers_url":"https://api.github.com/users/Zac-HD/followers","following_url":"https://api.github.com/users/Zac-HD/following{/other_user}","gists_url":"https://api.github.com/users/Zac-HD/gists{/gist_id}","starred_url":"https://api.github.com/users/Zac-HD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zac-HD/subscriptions","organizations_url":"https://api.github.com/users/Zac-HD/orgs","repos_url":"https://api.github.com/users/Zac-HD/repos","events_url":"https://api.github.com/users/Zac-HD/events{/privacy}","received_events_url":"https://api.github.com/users/Zac-HD/received_events","type":"User","site_admin":false},"body":"*This time with feeling!*  Successor to #556 and #520.  Closes #333, closes #352, closes #439, closes #441, closes #599.  (Apparently we've wanted to do something about time for a while)\r\n\r\n599 outlines most of the design lessons I learned from 556, and has a few explanatory comments I won't repeat here.\r\n\r\nI will note that I see the `timezones()` strategy largely as a placeholder: there are several ways I could reorder timezones, or allow them to be grouped and selected.  Until I've seen it used in the wild though, I'd prefer to keep it forward-compatible and let user code shape how it evolves - especially since it's trivial to copy and modify.","created_at":"2017-05-12T11:33:32Z","updated_at":"2017-05-15T09:38:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17088a37c58b1df03769591db026086bb05324a8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621/commits","review_comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621/comments","review_comment_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/621/comments","statuses_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/statuses/65be6dd1a1f68e216c1d7eedbb4feb44946f5252","head":{"label":"Zac-HD:core-time-strats","ref":"core-time-strats","sha":"65be6dd1a1f68e216c1d7eedbb4feb44946f5252","user":{"login":"Zac-HD","id":12229877,"avatar_url":"https://avatars2.githubusercontent.com/u/12229877?v=3","gravatar_id":"","url":"https://api.github.com/users/Zac-HD","html_url":"https://github.com/Zac-HD","followers_url":"https://api.github.com/users/Zac-HD/followers","following_url":"https://api.github.com/users/Zac-HD/following{/other_user}","gists_url":"https://api.github.com/users/Zac-HD/gists{/gist_id}","starred_url":"https://api.github.com/users/Zac-HD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zac-HD/subscriptions","organizations_url":"https://api.github.com/users/Zac-HD/orgs","repos_url":"https://api.github.com/users/Zac-HD/repos","events_url":"https://api.github.com/users/Zac-HD/events{/privacy}","received_events_url":"https://api.github.com/users/Zac-HD/received_events","type":"User","site_admin":false},"repo":{"id":82669519,"name":"hypothesis-python","full_name":"Zac-HD/hypothesis-python","owner":{"login":"Zac-HD","id":12229877,"avatar_url":"https://avatars2.githubusercontent.com/u/12229877?v=3","gravatar_id":"","url":"https://api.github.com/users/Zac-HD","html_url":"https://github.com/Zac-HD","followers_url":"https://api.github.com/users/Zac-HD/followers","following_url":"https://api.github.com/users/Zac-HD/following{/other_user}","gists_url":"https://api.github.com/users/Zac-HD/gists{/gist_id}","starred_url":"https://api.github.com/users/Zac-HD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zac-HD/subscriptions","organizations_url":"https://api.github.com/users/Zac-HD/orgs","repos_url":"https://api.github.com/users/Zac-HD/repos","events_url":"https://api.github.com/users/Zac-HD/events{/privacy}","received_events_url":"https://api.github.com/users/Zac-HD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zac-HD/hypothesis-python","description":"Advanced property-based (QuickCheck-like) testing for Python","fork":true,"url":"https://api.github.com/repos/Zac-HD/hypothesis-python","forks_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/forks","keys_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/teams","hooks_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/hooks","issue_events_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/issues/events{/number}","events_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/events","assignees_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/assignees{/user}","branches_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/branches{/branch}","tags_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/tags","blobs_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/statuses/{sha}","languages_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/languages","stargazers_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/stargazers","contributors_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/contributors","subscribers_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/subscribers","subscription_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/subscription","commits_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/contents/{+path}","compare_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/merges","archive_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/downloads","issues_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/issues{/number}","pulls_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/pulls{/number}","milestones_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/milestones{/number}","notifications_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/labels{/name}","releases_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/releases{/id}","deployments_url":"https://api.github.com/repos/Zac-HD/hypothesis-python/deployments","created_at":"2017-02-21T10:56:41Z","updated_at":"2017-02-21T10:56:44Z","pushed_at":"2017-05-15T03:34:11Z","git_url":"git://github.com/Zac-HD/hypothesis-python.git","ssh_url":"git@github.com:Zac-HD/hypothesis-python.git","clone_url":"https://github.com/Zac-HD/hypothesis-python.git","svn_url":"https://github.com/Zac-HD/hypothesis-python","homepage":"http://hypothesis.works","size":6296,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HypothesisWorks:master","ref":"master","sha":"d7ebe34c1198d1750dbb759f9576da7002ef6b71","user":{"login":"HypothesisWorks","id":18481919,"avatar_url":"https://avatars2.githubusercontent.com/u/18481919?v=3","gravatar_id":"","url":"https://api.github.com/users/HypothesisWorks","html_url":"https://github.com/HypothesisWorks","followers_url":"https://api.github.com/users/HypothesisWorks/followers","following_url":"https://api.github.com/users/HypothesisWorks/following{/other_user}","gists_url":"https://api.github.com/users/HypothesisWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HypothesisWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HypothesisWorks/subscriptions","organizations_url":"https://api.github.com/users/HypothesisWorks/orgs","repos_url":"https://api.github.com/users/HypothesisWorks/repos","events_url":"https://api.github.com/users/HypothesisWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HypothesisWorks/received_events","type":"Organization","site_admin":false},"repo":{"id":8685799,"name":"hypothesis-python","full_name":"HypothesisWorks/hypothesis-python","owner":{"login":"HypothesisWorks","id":18481919,"avatar_url":"https://avatars2.githubusercontent.com/u/18481919?v=3","gravatar_id":"","url":"https://api.github.com/users/HypothesisWorks","html_url":"https://github.com/HypothesisWorks","followers_url":"https://api.github.com/users/HypothesisWorks/followers","following_url":"https://api.github.com/users/HypothesisWorks/following{/other_user}","gists_url":"https://api.github.com/users/HypothesisWorks/gists{/gist_id}","starred_url":"https://api.github.com/users/HypothesisWorks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HypothesisWorks/subscriptions","organizations_url":"https://api.github.com/users/HypothesisWorks/orgs","repos_url":"https://api.github.com/users/HypothesisWorks/repos","events_url":"https://api.github.com/users/HypothesisWorks/events{/privacy}","received_events_url":"https://api.github.com/users/HypothesisWorks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HypothesisWorks/hypothesis-python","description":"Advanced property-based (QuickCheck-like) testing for Python","fork":false,"url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python","forks_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/forks","keys_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/teams","hooks_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/hooks","issue_events_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/events{/number}","events_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/events","assignees_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/assignees{/user}","branches_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/branches{/branch}","tags_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/tags","blobs_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/statuses/{sha}","languages_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/languages","stargazers_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/stargazers","contributors_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/contributors","subscribers_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/subscribers","subscription_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/subscription","commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/contents/{+path}","compare_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/merges","archive_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/downloads","issues_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues{/number}","pulls_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls{/number}","milestones_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/milestones{/number}","notifications_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/labels{/name}","releases_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/releases{/id}","deployments_url":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/deployments","created_at":"2013-03-10T13:51:19Z","updated_at":"2017-05-15T01:56:30Z","pushed_at":"2017-05-15T08:57:54Z","git_url":"git://github.com/HypothesisWorks/hypothesis-python.git","ssh_url":"git@github.com:HypothesisWorks/hypothesis-python.git","clone_url":"https://github.com/HypothesisWorks/hypothesis-python.git","svn_url":"https://github.com/HypothesisWorks/hypothesis-python","homepage":"http://hypothesis.works","size":6499,"stargazers_count":1900,"watchers_count":1900,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":170,"mirror_url":null,"open_issues_count":113,"forks":170,"open_issues":113,"watchers":1900,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621"},"html":{"href":"https://github.com/HypothesisWorks/hypothesis-python/pull/621"},"issue":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/621"},"comments":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/issues/621/comments"},"review_comments":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621/comments"},"review_comment":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/pulls/621/commits"},"statuses":{"href":"https://api.github.com/repos/HypothesisWorks/hypothesis-python/statuses/65be6dd1a1f68e216c1d7eedbb4feb44946f5252"}}}}
{"actor":{"display_login":"DRMacIver"}}