Skip to content

Conversation

@dependabot-preview
Copy link

Bumps praw from 6.3.1 to 7.0.0.

Changelog

Sourced from praw's changelog.

7.0.0 (2020/04/24)

Added

  • config_interpolation parameter for .Reddit supporting basic and extended modes.
  • Add .Redditors.partial_redditors that returns lightweight redditor objects that contain only a few fields. This is useful for resolving Redditor IDs to their usernames in bulk.
  • .User.friends has a new parameter user that takes either an instance of .Redditor or a string containing a redditor name and returns an instance of .Redditor if the authenticated user is friends with the user, otherwise throws an exception.
  • .SubmissionModeration.flair has the parameter flair_template_id for applying flairs with template IDs.
  • ~.Emoji.update supports modifying an emoji's permissions.
  • ~.SubredditEmoji.add now supports optionally passing booleans to set an emoji's permissions upon upload.
  • Methods .SubredditLinkFlairTemplates.update and .SubredditRedditorFlairTemplates.update contain a new parameter, fetch, that toggles the automatic fetching of existing data from Reddit. It is set to True by default.
  • Values in methods .SubredditLinkFlairTemplates.update and .SubredditRedditorFlairTemplates.update that are left as the defaults will no longer be over-written if the fetch parameter is set to True, but will fill in existing values for the flair template.
  • The parameter text for methods .SubredditLinkFlairTemplates.update and .SubredditRedditorFlairTemplates.update is no longer required.
  • There is a new method, .Subreddit.post_requirements, to fetch a subreddit's post requirements.
  • Method .SubmissionModeration.sticky will now ignore the Confict exception generated by trying to sticky the same post multiple times.
  • A new method .CommentModeration.show will uncollapse a comment that was collapsed because of Crowd Control
  • Methods .Subreddit.submit_image and .Subreddit.submit_video will throw .TooLargeMediaException if the submitted media is rejected by Reddit due to the size of the media.
  • Class .Reddit has an attribute, validate_on_submit, that can be set after class initialization that causes methods .Subreddit.submit, .Subreddit.submit_image, .Subreddit.submit_video, and .Submission.edit to check that the submission matches a subreddit's post validation rules. This attribute will be functionally useless once Reddit implements their change. This attribute will be deprecated on the next release after Reddit's change, and will be removed on the next major release after Reddit's change.

In May-June 2020, Reddit will force all submissions to run through

a subreddit's validation rules.

  • Introduced a data class, .RedditErrorItem, to represent an individual error item returned from Reddit.
  • Class .RedditAPIException now serves as a container for the .RedditErrorItems. You can access the items by doing RedditAPIException.items, which returns a list.
  • .APIException is an alias to .RedditAPIException.
  • Parameter discussion_type to methods .Subreddit.submit, .Subreddit.submit_image, and .Subreddit.submit_video to support submitting as a live discussion (set to CHAT).
  • Instances of .Trophy can be compared for equality with each other.
  • .Reddit has a new configurable parameter, timeout. This defaults to 16 seconds. It controls how long PRAW will wait for a response before throwing an exception.
  • PRAW now handles ratelimit errors returned as instances of .RedditAPIException.
  • .Reddit has one new parameter, ratelimit_seconds . The parameter configures the maximum amount of seconds to catch ratelimits for. It defaults to 5 seconds when not specified.

Changed

  • prawcore.BadRequest should no longer be raised. Instead a more useful .RedditAPIException instance will be raised.
  • Set the default comment sort to confidence instead of best because it turns out best isn't actually the correct value for the parameter.

Deprecated

  • .APIException is deprecated and slated for removal in PRAW 8.0.

Fixed

  • .SubredditFlair.update will not error out when the flair text contains quote marks.
... (truncated)
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [praw](https://github.com/praw-dev/praw) from 6.3.1 to 7.0.0.
- [Release notes](https://github.com/praw-dev/praw/releases)
- [Changelog](https://github.com/praw-dev/praw/blob/master/CHANGES.rst)
- [Commits](praw-dev/praw@v6.3.1...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Apr 27, 2020
@dependabot-preview
Copy link
Author

Superseded by #25.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/praw-7.0.0 branch June 23, 2020 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant