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

DM-41528: Add Python 3.10 tests for Hub plugins #212

Merged
merged 2 commits into from
Nov 6, 2023
Merged

Conversation

rra
Copy link
Member

@rra rra commented Nov 6, 2023

The JupyterHub image currently still uses Python 3.10, so we need to test the authenticator and spawner modules with Python 3.10, but the controller requires at least Python 3.11. Add a separate CI run to test just the authenticator and spawner with a matrix of Python versions that are supported by the Hub but not the controller, and add some logic to nox to not try to install the controller dependencies if only the authenticator and spawner are being tested.

@rra rra force-pushed the tickets/DM-41528 branch 2 times, most recently from 3c94900 to 9a9bfd7 Compare November 6, 2023 17:48
The JupyterHub image currently still uses Python 3.10, so we need
to test the authenticator and spawner modules with Python 3.10, but
the controller requires at least Python 3.11. Add a separate CI
run to test just the authenticator and spawner with a matrix of
Python versions that are supported by the Hub but not the controller.

Add a new nox environment that tests the authenticator and spawner
with the frozen dependencies for JupyterHub. Exclude the Ruff rule
to change timezone.utc to UTC for the spawner, since this was added
in Python 3.11, and change the code back to timezone.utc.
@rra rra force-pushed the tickets/DM-41528 branch from 9a9bfd7 to 8b3c224 Compare November 6, 2023 17:57
When testing the authenticator and controller against pinned
dependencies, don't let them install any dependencies at all and
also pin dev dependencies. This makes the tests somewhat more
accurate.

Update Python dependencies.
@rra rra force-pushed the tickets/DM-41528 branch from aec0b50 to 6eecf86 Compare November 6, 2023 18:12
@rra rra merged commit f53b306 into main Nov 6, 2023
6 checks passed
@rra rra deleted the tickets/DM-41528 branch November 6, 2023 19:09
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.

1 participant