CONTRIBUTING.md should say that Python 3.8 is required #6458
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 milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot#6458
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What component of Red (cog, command, API) would you like to see improvements on?
CONTRIBUTING.md
Describe the enhancement you're suggesting.
Currently CONTRIBUTING.md says that 3.8 or greater is needed, but when running
make newenvwith Python 3.12 installed, this error appearsapparently the CONTRIBUTING.md should be 3.8, not 3.8 or greater: convo
Anything else?
No response
For the majority of changes, the particular version used will not make a difference, as most changes will work regardless of (supported) version. The main thing we run into sometimes is newer type hinting syntaxes only supported on later versions of Python. Changes you make must work on all supported Python versions, so the most correct answer would be to test on all of them. But that is unrealistic, and the CI logic handles a good chunk of that by running Red on each supported version. It is more likely to mistakenly try to use something from a newer Python version than it is to add something that is too old (if you use the most updated version of docs possible regardless), so developing on the oldest version supported is the safest middleground for ensuring your code will likely work across versions, and is what we would generally recommend.
That being said, it isn't currently following the convention of explicitly defining a range of supported versions, with the range being updated manually as more/different versions are supported. It should either be updated to advise always using 3.8.1, with a condensed explanation why, or provide the full range of supported versions with an explicit greatest version (though, the
makelogic is hardcoded to 3.8, so that might be less realistic without modifying how that works as well).I’m taking issue #6458. I’ll clarify that Red’s contributor environment uses Python 3.8.1 as the oldest supported release and that
make newenvinvokespython3.8by default, so the setup guidance matches the Makefile. I’ll verify the wording against the setup command and open a PR.Fixed by #6814, which has been merged into V3/develop.