Skip to content

Commit

Permalink
Import pipenv utils from new location (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
elacuesta authored Apr 12, 2022
1 parent c300382 commit dca1b31
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shub/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ def _is_pipfile(name):

def _get_pipfile_requirements(tmpdir=None):
try:
from pipenv.utils import convert_deps_to_pip, prepare_pip_source_args
# moved in pipenv==2022.4.8
from pipenv.utils.dependencies import convert_deps_to_pip
from pipenv.utils.indexes import prepare_pip_source_args
except ImportError:
raise ImportError('You need pipenv installed to deploy with Pipfile')
try:
from pipenv.utils import convert_deps_to_pip, prepare_pip_source_args
except ImportError:
raise ImportError('You need pipenv installed to deploy with Pipfile')
try:
with open('Pipfile.lock') as f:
pipefile = json.load(f)
Expand Down

0 comments on commit dca1b31

Please sign in to comment.