Skip to content

Upgrade to Python 3.11#316

Merged
Yarik-Popov merged 3 commits intomainfrom
yarik/python3.11
Feb 18, 2025
Merged

Upgrade to Python 3.11#316
Yarik-Popov merged 3 commits intomainfrom
yarik/python3.11

Conversation

@Yarik-Popov
Copy link
Contributor

@Yarik-Popov Yarik-Popov commented Feb 15, 2025

Purpose

When Python 3.10 was chosen for GS, it was expected that work on the backend would start a lot sooner i.e. S24 when version 3.11 was still in it's bug fix stage. Since, the start of work on the backend was delayed until W25, Python 3.11 is now in stable/security releases. As such it is now considered stable for GS development.

This PR upgrades the main repo to use 3.11. This version adds new features and improved performance with very little that must be done by GS developers to migrate (See below for Migration instructions). Also, the end of life has been extend by 1 year from Oct 2026 (Python 3.10) to Oct 2027 (Python 3.11).

Migration Instructions

  1. Delete your existing python virtual environment directory used for this repo. Typically the directory is called .venv or venv
  2. Follow the setup instructions for the backend in the README
  • Step 2 of the setup instructions for MacOS and Linux users
  • Step 3B of the setup instructions for WSL Windows

New Changes

  • Update README with instructions on how to install Python 3.11
  • Update python configuration files to use version 3.11
  • Update Github actions to use Python 3.11 where applicable
  • Minor README improvements

Testing

  • CI/CD
  • Backend starts successfully
    image

Outstanding Changes

  • Upgrade Python when 3.11 approaches end of life (good to upgrade around W27 or S27 at the latest) or sooner if desirable

Additional Notes

@github-actions
Copy link

Pull reviewers stats

Stats of the last 120 days for UWOrbital:

User Total reviews Time to review Total comments
Yarik-Popov 21 1d 16h 50m 245
kepler452b123 19 2d 6h 44m 90
Navtajh04 3 2d 19h 35m 32
dgobalak 2 5d 13h 35m 11

⚡️ Pull request stats

Copy link
Contributor

@kepler452b123 kepler452b123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Yarik-Popov Yarik-Popov merged commit f02d89d into main Feb 18, 2025
48 checks passed
@Yarik-Popov Yarik-Popov deleted the yarik/python3.11 branch February 18, 2025 01:58
Yarik-Popov added a commit to UWOrbital/GS-Onboarding that referenced this pull request Feb 18, 2025
# Purpose
Upgrade to Python 3.11 alongside this PR:
UWOrbital/OBC-firmware#316

# New Changes
- Upgrade python config files
- Upgrade pytest action runner

# Testing
- None

# Outstanding Changes
- Same as main repo PR
@Yarik-Popov Yarik-Popov added this to the 25W milestone Mar 9, 2025
@Yarik-Popov Yarik-Popov added the project: backend Backend tasks label Mar 20, 2025
tanay-jagadeesh pushed a commit to tanay-jagadeesh/GS-Onboarding that referenced this pull request Nov 12, 2025
# Purpose
Upgrade to Python 3.11 alongside this PR:
UWOrbital/OBC-firmware#316

# New Changes
- Upgrade python config files
- Upgrade pytest action runner

# Testing
- None

# Outstanding Changes
- Same as main repo PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: backend Backend tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants