Skip to content

Upgrade to Python 3.11#12

Merged
Yarik-Popov merged 1 commit intomainfrom
yarik/python3.11
Feb 18, 2025
Merged

Upgrade to Python 3.11#12
Yarik-Popov merged 1 commit intomainfrom
yarik/python3.11

Conversation

@Yarik-Popov
Copy link
Contributor

@Yarik-Popov Yarik-Popov commented Feb 15, 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

Copy link

@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

Copy link

@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 added a commit to UWOrbital/OBC-firmware that referenced this pull request Feb 18, 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](https://github.com/user-attachments/assets/4bcb60fc-ed30-443d-8e07-a1d10afc750b)

# 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
- Upgraded GS onboarding Python 3.11 version with this PR:
UWOrbital/GS-Onboarding#12
@Yarik-Popov Yarik-Popov merged commit 12596fb into main Feb 18, 2025
0 of 3 checks passed
@Yarik-Popov Yarik-Popov deleted the yarik/python3.11 branch February 20, 2025 01:23
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants