jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.02k stars 338 forks source link

Only upgrade jupyterhub in user env when upgrading tljh, ensure pip>=23.1.2 in user env #890

Closed consideRatio closed 1 year ago

consideRatio commented 1 year ago

Additional changes

consideRatio commented 1 year ago

From live meeting chat with input from Min and Simon

EDIT: I did pip install --upgrade pip in hub env, but pip install pip>=23.1.2 in user env.

consideRatio commented 1 year ago

@minrk @manics modified the git history of this PR to make it a bit more slimmed and easy to follow after trying some things and going back on them.

I've updated the title and PR description to reflect this.

Note that it was messy to inspect the hub env as we install the hub env after user env, and that we have unit test for ensure_user_environment function that runs without assumptions on a hub env. So, I went for pip install --upgrade <jupyterhub version constraint from hub env requirements file> instead.