CONTRIBUTING.md should say that Python 3.8 is required #6458

Closed
opened 2024-10-01 13:27:36 +02:00 by Chovin · 3 comments
Chovin commented 2024-10-01 13:27:36 +02:00 (Migrated from github.com)

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 newenv with Python 3.12 installed, this error appears

python3.8 -m venv --clear .venv
make: python3.8: No such file or directory
make: *** [newenv] Error 1

apparently the CONTRIBUTING.md should be 3.8, not 3.8 or greater: convo

Anything else?

No response

### 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](https://github.com/Cog-Creators/Red-DiscordBot/blob/dbd71db6a8392e6fe9b9a8a33501c2595e4f7bac/CONTRIBUTING.md?plain=1#L55) is needed, but when running `make newenv` with Python 3.12 installed, this error appears ```sh python3.8 -m venv --clear .venv make: python3.8: No such file or directory make: *** [newenv] Error 1 ``` apparently the CONTRIBUTING.md should be 3.8, not 3.8 or greater: [convo](https://discord.com/channels/133049272517001216/160386989819035648/1290632459217539114) ### Anything else? _No response_
Flame442 commented 2024-10-24 02:59:41 +02:00 (Migrated from github.com)

apparently the CONTRIBUTING.md should be 3.8, not 3.8 or greater

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 make logic is hardcoded to 3.8, so that might be less realistic without modifying how that works as well).

> apparently the CONTRIBUTING.md should be 3.8, not 3.8 or greater 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 `make` logic is hardcoded to 3.8, so that might be less realistic without modifying how that works as well).
rahp124 commented 2026-10-18 22:20:18 +02:00 (Migrated from github.com)

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 newenv invokes python3.8 by default, so the setup guidance matches the Makefile. I’ll verify the wording against the setup command and open a PR.

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 newenv` invokes `python3.8` by default, so the setup guidance matches the Makefile. I’ll verify the wording against the setup command and open a PR.
Owner

Fixed by #6814, which has been merged into V3/develop.

Fixed by #6814, which has been merged into V3/develop.
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
2 participants
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#6458
No description provided.