Skip to content

Commit d08692c

Browse files
committed
spawner: Fix the incompatibility with requests 2.29.0 and urllib3 v2
Switch requests-unixsocket to the forked version.
1 parent 4761d53 commit d08692c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

jupyterhub/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUN apt-get update && \
5959

6060
# install the wheels from first stage
6161
COPY --from=builder /tmp/wheelhouse /tmp/wheelhouse
62-
RUN python3 -m pip install --no-cache /tmp/wheelhouse/*
62+
RUN python3 -m pip install --no-cache --no-deps /tmp/wheelhouse/*
6363

6464
# Resources
6565
RUN mkdir /var/jupyterhub

jupyterhub/spawner/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def run(self):
4040
description = """Coursewarespawner: A custom spawner for Jupyterhub.""",
4141
long_description = "Spawn single-user servers with Docker.",
4242
platforms = "Linux, Mac OS X",
43-
install_requires = ['requests-unixsocket', 'dockerspawner'],
43+
install_requires = [
44+
'requests-unixsocket @ git+https://github.com/NII-cloud-operation/requests-unixsocket.git',
45+
'dockerspawner'
46+
],
4447
cmdclass = {
4548
'bdist_egg': bdist_egg if 'bdist_egg' in sys.argv else bdist_egg_disabled,
4649
}

0 commit comments

Comments
 (0)