Vendor discord.ext.menus until they are released to PYPI #4021

Closed
Drapersniper wants to merge 7 commits from vendor-dpy-menus into V3/feature/audio
Drapersniper commented 2020-06-26 20:35:15 +02:00 (Migrated from github.com)

Sooner or later we will be using discord.ext.menus this PR vendors it until its officially released as there is no current release date for it.

Audio UI will be making use of these to improve performance and user interaction

Sooner or later we will be using `discord.ext.menus` this PR vendors it until its officially released as there is no current release date for it. Audio UI will be making use of these to improve performance and user interaction
tekulvw (Migrated from github.com) reviewed 2020-06-26 20:35:15 +02:00
Jackenmen (Migrated from github.com) reviewed 2020-06-26 20:35:15 +02:00
Kowlin (Migrated from github.com) reviewed 2020-06-26 20:35:15 +02:00
aikaterna (Migrated from github.com) reviewed 2020-06-26 20:35:15 +02:00
Jackenmen commented 2020-06-30 03:24:24 +02:00 (Migrated from github.com)
  • vendor folder needs to be excluded from black check
  • there should (imo) be some information about the commit at which the vendor is for our convenience
    • just having that info in commit message works too
  • there's been a new commit; it's not all that important to include but I figured it's worth mentioning
  • this was mentioned earlier but I'm repeating it here so that it's not forgotten:
    there should be info about the exclusion from guarantees in docs
- vendor folder needs to be excluded from black check - there should (imo) be some information about the commit at which the vendor is for our convenience - just having that info in commit message works too - there's been a new commit; it's not all that important to include but I figured it's worth mentioning - this was mentioned earlier but I'm repeating it here so that it's not forgotten: there should be info about the exclusion from guarantees in docs
Jackenmen commented 2020-06-30 23:05:01 +02:00 (Migrated from github.com)

One more thing that came to my mind is licensing, I know vendored folder includes LICENSE file already but we might need to have another mention about it in LICENSE file in root repo folder.

I think something like this would work:

This project vendors discord.ext.menus package (https://github.com/Rapptz/discord-ext-menus) made by Danny Y. (Rapptz) which is distributed under MIT License.
Copy of this license can be found in LICENSE file in redbot/vendored folder of this repository.

Mention of it at the end of README wouldn't hurt either, although I'm guessing that's more of a courtesy for the work Danny have done rather than actual requirement.

One more thing that came to my mind is licensing, I know `vendored` folder includes `LICENSE` file already but we might need to have another mention about it in `LICENSE` file in root repo folder. I think something like this would work: ``` This project vendors discord.ext.menus package (https://github.com/Rapptz/discord-ext-menus) made by Danny Y. (Rapptz) which is distributed under MIT License. Copy of this license can be found in LICENSE file in redbot/vendored folder of this repository. ``` Mention of it at the end of `README` wouldn't hurt either, although I'm guessing that's more of a courtesy for the work Danny have done rather than actual requirement.
Jackenmen commented 2020-07-04 19:36:18 +02:00 (Migrated from github.com)

I think there's an unwritten convention to put vendored packages in _vendor/vendor folders (some examples:
pip, setuptools, pipenv, poetry), or at least I have never seen other names used. We could also use _vendor rather than vendor since we don't guarantee it anyway, but I guess there's nothing wrong with people using it as long as the docs say it's excluded from guarantees.
Another thing is that it seems a little unnecessary to include everything from the discord-ext-menus repo instead of just the package itself (+ LICENSE).
Also, is there any reason for us not to use namespace packages? I see that you also made the discord.ext namespace package into a regular one as well.

I think there's an unwritten convention to put vendored packages in `_vendor`/`vendor` folders (some examples: [pip](https://github.com/pypa/pip/tree/master/src/pip/_vendor), [setuptools](https://github.com/pypa/setuptools/tree/master/setuptools/_vendor), [pipenv](https://github.com/pypa/pipenv/tree/master/pipenv/vendor), [poetry](https://github.com/python-poetry/poetry/tree/master/poetry/_vendor)), or at least I have never seen other names used. We could also use `_vendor` rather than `vendor` since we don't guarantee it anyway, but I guess there's nothing wrong with people using it as long as the docs say it's excluded from guarantees. Another thing is that it seems a little unnecessary to include *everything* from the `discord-ext-menus` repo instead of just the package itself (+ LICENSE). Also, is there any reason for us not to use namespace packages? I see that you also made the `discord.ext` namespace package into a regular one as well.
Drapersniper commented 2020-07-06 14:55:19 +02:00 (Migrated from github.com)

Closing in favour of #4039 so that it goes into V3/develop

Closing in favour of #4039 so that it goes into V3/develop

Pull request closed

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!4021
No description provided.