[V3] Major dependency update #1974
No reviewers
Labels
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 project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!1974
Loading…
Reference in a new issue
No description provided.
Delete branch "V3/refactor_deps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Alright, so this is the major dependency update we've been waiting for. These are the details of new dependency versions:
Other changes (these are up for discussion)
READTHEDOCS(since it seems to cause issues there, but nowhere else). Previously, it was being added if we weren't onREADTHEDOCS. This makes it clearer that it is in fact a requirement for installation and deployment.distrois installed conditionally using PEP 508 environment markers, which have actually been around for a while.setup_requireshas been removed - it's no longer required for the package to be installed correctly.__name__ == '__main__'guard to setup.py, although it's not entirely necessary it might be useful one day to import the module from another one.python_versionhas been updated to>=3.6,<3.8to allow the use of python 3.7. The bot itself, and all of its dependencies, are no longer incompatible with python 3.7. 🎉Accounting for breaking changes
This PR shouldn't bring any breaking changes to this library. However, there were breaking changes in aiohttp-json-rpc and discord.py which needed accounting for. We might need to keep an eye on how these have been dealt with (specifically RPC, sorry @tekulvw) in case something's been done incorrectly.
Since this will allow 3.7 usage, this should also include a 3.7 identifier for pypi
I've added the 3.7 pypi classifier, and also added a 3.7 build to tox and travis. Unfortunately with Travis, they don't have an option to use v3.7.0 of python, the latest 3.7 one they have is 3.7-dev which is actually 3.7.0a4. This'll have to do for now though.
The build failures are coming from tox trying to install a non-existent version of red-lavalink: this'll be fixed once that release has been made.
ClientSession.close()is async-only now, so these need to be moved to async or changed todetach():The only thing I found at the moment is the issue with
ClientSession.close()as @calebj pointed out. I'll continue testing as this PR evolves.The
aiohttp.ClientSession.close()calls in sync code have been changed todetach()calls as requested@ -6,24 +6,27 @@[tox]This wont work as a dependency link anymore. Something changed on github's redirection and this breaks now.
Link format should no longer point to an archive, but a commit as part of a repo.
Or we need to adjust the archive link and hope it doesn't change again. I don't like relying on that, and the redirection behavior to remain the same.
@ -6,24 +6,27 @@[tox]I don't seem to be able to reproduce the issue.
I'm not really sure if
git+links work as dependency links for a package in setup.py. But even if they did, they require all users to have git installed when installing the bot.@ -6,24 +6,27 @@[tox]I went to get full reproduction steps and can't anymore either. I'll keep an eye out for if it comes up again in some way later on at which point it can be addressed, but until I can reproduce it even semi-consistently, this can be ignored for now.
Worth noting, git is a listed dependency in all our documentation and installation instructions due to downloader's use of it.
Any news on when we might see the websockets version bump via #36 on Red-Lavalink merged?
@Redjumpman Whenever we hold a gun to someone's head and tell them to press the big green button 😁
This is no longer blocked!
I've gone and done some extra stuff now. Here are the details:
pipenv install --devat the start, since the only dependency it needs is tox. Now it just installs and runs tox.dependency_links.txtfile and added it to theMANIFEST.inbecause we're starting to copy the discord.py commit hash all over the place. This serves as a single place to change the commit hash whenever we update our discord.py version, and is used by tox, setup.py and RTD.docsextra instead.[dev-packages]in Pipfile now just reference the extras[test,docs,style]since this reduces more boilerplate, and it seems to work fine.Beyond needing to specify the versioning in discord.py to get it to install without using a cached version, I haven't found any breakage on python3.6 or python3.7 in any of the core cogs. This has a 👍 from me pending that change.
@ -0,0 +1 @@https://github.com/Rapptz/discord.py/tarball/8ccb98d395537b1c9acc187e1647dfdd07bb831b#egg=discord.py-1.0.0a0This needs to be listed as
or else this: https://gist.github.com/mikeshardmind/2c84190bc3d972e18b5566928a4627f6
happens
I'm also going to continue the prior recommendation on this being changed to the below, but the above is sufficient.
@ -0,0 +1 @@https://github.com/Rapptz/discord.py/tarball/8ccb98d395537b1c9acc187e1647dfdd07bb831b#egg=discord.py-1.0.0a0Good catch @mikeshardmind, just fixed that up. Gonna stick to a tarball link for now though.
This looks ready to ship now.
I also agree that this is ready.
+1 from me now.
Alright, this is being merged 🎉 Thanks @Redjumpman @calebj and @mikeshardmind for reviewing :)