Update d.py to 1.6.0, aiohttp to 3.7.3, Red-Lavalink to 0.7.2 #4728

Merged
Jackenmen merged 4 commits from V3/dpy_1.6 into V3/develop 2021-02-01 14:49:51 +01:00
Jackenmen commented 2021-01-13 03:56:54 +01:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature
  • Dependency update

Description of the changes

  • Update d.py to 1.6.0, aiohttp to 3.7.3, Red-Lavalink to 0.7.2 (the last one because of the dependency conflict with aiohttp 3.7+)
  • Remove suppression of deprecation warnings that are no longer relevant with the update of aiohttp
  • Change things that require changing after bumping d.py 1.6
    • in this update, it's only some max concurrency things in Command.prepare()
  • Remove two random AttributeError exception catching that doesn't make sense at least since d.py 1.1...

After this PR gets merged, #3529 should be updated appropriately.

### Type - [ ] Bugfix - [ ] Enhancement - [ ] New feature - [x] Dependency update ### Description of the changes - Update d.py to 1.6.0, aiohttp to 3.7.3, Red-Lavalink to 0.7.2 (the last one because of the dependency conflict with aiohttp 3.7+) - Remove suppression of deprecation warnings that are no longer relevant with the update of aiohttp - Change things that require changing after bumping d.py 1.6 - in this update, it's only some max concurrency things in `Command.prepare()` - Remove two random `AttributeError` exception catching that doesn't make sense at least since d.py 1.1... After this PR gets merged, #3529 should be updated appropriately.
Bakersbakebread (Migrated from github.com) approved these changes 2021-01-13 13:00:24 +01:00
Drapersniper commented 2021-01-13 13:19:23 +01:00 (Migrated from github.com)

RLL 0.7.2 hasn't been release yet?

RLL 0.7.2 hasn't been release yet?
Jackenmen commented 2021-01-13 13:21:39 +01:00 (Migrated from github.com)

RLL 0.7.2 hasn't been release yet?

Nope, the current version is 0.7.1. I've only made the PR that requires us to make RLL 0.7.2 release 10 hours ago:
https://github.com/Cog-Creators/Red-Lavalink/pull/87

> RLL 0.7.2 hasn't been release yet? Nope, the current version is 0.7.1. I've only made the PR that requires us to make RLL 0.7.2 release 10 hours ago: https://github.com/Cog-Creators/Red-Lavalink/pull/87
Jackenmen commented 2021-01-17 16:58:29 +01:00 (Migrated from github.com)

Closed&reopened because I am really annoyed by that one failing check.

*Closed&reopened because I am really annoyed by that one failing check.*
rohitp30 (Migrated from github.com) approved these changes 2021-01-22 00:04:26 +01:00
phenom4n4n (Migrated from github.com) approved these changes 2021-01-31 23:01:22 +01:00
ltzmax (Migrated from github.com) approved these changes 2021-01-31 23:13:45 +01:00
OofChair (Migrated from github.com) approved these changes 2021-01-31 23:43:26 +01:00
PredaaA (Migrated from github.com) approved these changes 2021-01-31 23:53:49 +01:00
flaree (Migrated from github.com) approved these changes 2021-01-31 23:56:00 +01:00
Kreusada (Migrated from github.com) approved these changes 2021-02-01 00:21:08 +01:00
Ghost approved these changes 2021-02-01 01:10:16 +01:00
madebylydia (Migrated from github.com) approved these changes 2021-02-01 01:54:40 +01:00
aikaterna commented 2021-02-01 02:24:52 +01:00 (Migrated from github.com)

Thanks for the input, folks that have been testing d.py 1.6 on your bots. I'm going to approve this based on your guys' approvals and after talking with folks about the RLL bump as well.

Thanks for the input, folks that have been testing d.py 1.6 on your bots. I'm going to approve this based on your guys' approvals and after talking with folks about the RLL bump as well.
aikaterna (Migrated from github.com) approved these changes 2021-02-01 02:25:16 +01:00
NeuroAssassin (Migrated from github.com) approved these changes 2021-02-01 03:20:21 +01:00
bobloy (Migrated from github.com) requested changes 2021-02-01 14:43:13 +01:00
bobloy (Migrated from github.com) commented 2021-02-01 14:42:47 +01:00
        except (
            discord.ClientException,
            discord.ext.commands.UserInputError,
            discord.ext.commands.CommandOnCooldown,
        ) as e:
            if self._max_concurrency is not None:
                await self._max_concurrency.release(ctx)
            raise e

Raw except should instead specify the exceptions it's expecting.
I included the three that _parse_arguments and _prepare_cooldowns could throw, but all might not be appropriate.

Also, please modify the imports to import UserInputError and CommandOnCooldown rather than accepting this suggestion outright.

```suggestion except ( discord.ClientException, discord.ext.commands.UserInputError, discord.ext.commands.CommandOnCooldown, ) as e: if self._max_concurrency is not None: await self._max_concurrency.release(ctx) raise e ``` Raw except should instead specify the exceptions it's expecting. I included the three that `_parse_arguments` and `_prepare_cooldowns` could throw, but all might not be appropriate. Also, please modify the imports to import `UserInputError` and `CommandOnCooldown` rather than accepting this suggestion outright.
Jackenmen (Migrated from github.com) reviewed 2021-02-01 14:48:40 +01:00
Jackenmen (Migrated from github.com) commented 2021-02-01 14:48:40 +01:00

This has been brought up before and it will remain as is because this is pretty much a copy of what d.py is doing and this way it's easier to maintain and ensures that the behavior between d.py and Red remains identical.

This has been brought up before and it will remain as is because this is pretty much a copy of what d.py is doing and this way it's easier to maintain and ensures that the behavior between d.py and Red remains identical.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4728
No description provided.