Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure all developers are on Python 3.8 #2254

Closed
emilk opened this issue May 29, 2023 · 4 comments
Closed

Make sure all developers are on Python 3.8 #2254

emilk opened this issue May 29, 2023 · 4 comments
Labels
🧑‍💻 dev experience developer experience (excluding CI) 🐍 Python API Python logging API

Comments

@emilk
Copy link
Member

emilk commented May 29, 2023

Python 3.8 is our minimum supported version. Everything that works in 3.8 is likely to work in future Python version (Python is good at backwards compatibility).

The problem is that sometimes we developers add new features for e.g. 3.11 and then only notice once it fails on CI in cryptic ways, or worse, fails at run-time for things that aren't covered by CI.

I'm not sure how we enforce a specific Python version though. Perhaps we need to look to Conda or https://github.com/mitsuhiko/rye

@emilk emilk added the 🧑‍💻 dev experience developer experience (excluding CI) label May 29, 2023
@abey79
Copy link
Member

abey79 commented May 29, 2023

FWIW, MacPorts will let you install multiple (major) versions of Python interpreters without fuss. It's been my go-to Python installation method for ages. Here is what I currently have installed:

$ python3.8 --version
Python 3.8.16
$ python3.9 --version
Python 3.9.16
$ python3.10 --version
Python 3.10.11
$ python3.11 --version
Python 3.11.3

Edit: obviously that applies on macOS only.

@emilk
Copy link
Member Author

emilk commented Aug 8, 2023

homebrew also supports this:

❯ brew search python@3.
==> Formulae
boost-python3    [email protected][email protected][email protected]       [email protected]       [email protected] ✔

❯ python3.10 --version
Python 3.10.12

@emilk emilk added the 🐍 Python API Python logging API label Aug 8, 2023
@adeebshihadeh
Copy link

adeebshihadeh commented Sep 2, 2024

We use uv for openpilot and love it. It replaced pyenv, pip, and poetry for us.

https://github.com/astral-sh/uv / https://docs.astral.sh/uv/

@abey79
Copy link
Member

abey79 commented Oct 21, 2024

Closing this because CI has been invented so that developper aren't force to use outdated tools :)

@abey79 abey79 closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI) 🐍 Python API Python logging API
Projects
None yet
Development

No branches or pull requests

3 participants