Skip to content

Commit 8e93a2b

Browse files
authored
Merge pull request #42 from shingo78/fix/urllib3v2-compatibility
spawner: Fix the incompatibility with requests 2.29.0 and urllib3 v2
2 parents 4761d53 + d08692c commit 8e93a2b

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)