update pipenv to 2022.1.8

pipenv 2018 doesn't actually clear its cache when asked to

2021.5.29 is the last to support 2.7, 3.5
pull/1126/head
Min RK 2022-02-01 14:51:13 +01:00
rodzic 757799516d
commit e7c93b0fc8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 809C6E46EAA899F4
1 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -11,6 +11,7 @@ import re
import toml
from ...semver import parse_version as V
from ..conda import CondaBuildPack
VERSION_PAT = re.compile(r"\d+(\.\d+)*")
@ -87,10 +88,15 @@ class PipfileBuildPack(CondaBuildPack):
"""scripts to run prior to staging the repo contents"""
scripts = super().get_preassemble_scripts()
# install pipenv to install dependencies within Pipfile.lock or Pipfile
if V(self.python_version) < V("3.6"):
# last pipenv version to support 2.7, 3.5
pipenv_version = "2021.5.29"
else:
pipenv_version = "2022.1.8"
scripts.append(
(
"${NB_USER}",
"${KERNEL_PYTHON_PREFIX}/bin/pip install --no-cache-dir pipenv==2018.11.26",
f"${{KERNEL_PYTHON_PREFIX}}/bin/pip install --no-cache-dir pipenv=={pipenv_version}",
)
)
return scripts