Skip to content

Manage python versions#267

Merged
jku merged 2 commits into
sigstore:mainfrom
jku:manage-python-versions
Nov 2, 2025
Merged

Manage python versions#267
jku merged 2 commits into
sigstore:mainfrom
jku:manage-python-versions

Conversation

@jku

@jku jku commented Oct 30, 2025

Copy link
Copy Markdown
Member

This is an attempt to solve #266. I'd like to standardize the Python version and still keep the developer experience sensible. Specific problem situations I am trying to handle:

  • developers on Mac often have Python 3.9 (from xcode tools). No uv.
  • Debian usually has fairly recent Python but often only one and uv is not part of the OS
  • Github Runners have a lot of Pythons installed... but we don't know what they use as default (currently ubuntu image defaults to 3.14 but windows image uses 3.9)

I came up with this:

  • assume we have some Python version, do not assume uv is installed
  • When creating a venv, use a "bootstrap venv" (that uses system python) to create the actual venv so that the actual venv gets both a correct Python version and uv

@woodruffw what do you think, is this bonkers (also as potential solution for gh-action-sigstore-python)?

Also CC @aaronlew02, @loosebazooka RE discussion on #266

jku added 2 commits October 30, 2025 19:08
Currently developer experience sucks since the project may or may not
run on a specific python version for various reasons. We don't really
want to start extensively testing on multiple versions but we can start
using a standard version

Use uv in the Makefile to make sure both virtual envs use a specified
Python version. This is done with a "bootstrap" virtual env that runs on
whatever python happens to be available.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
@jku jku force-pushed the manage-python-versions branch from 24c041e to f688c04 Compare October 30, 2025 17:08
Comment thread requirements.txt
Comment thread setup/create-venv.sh
@loosebazooka loosebazooka requested review from di and woodruffw October 31, 2025 14:07
@jku

jku commented Nov 2, 2025

Copy link
Copy Markdown
Member Author

#269 is making some sort of dependency change very much required so let's try this.

@jku jku removed the request for review from woodruffw November 2, 2025 11:06
@jku jku merged commit dd19bd3 into sigstore:main Nov 2, 2025
5 checks passed
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